|
|
|
@ -65,14 +65,10 @@ public class WidgetThemeCreatorPaneAcceptor<T> {
|
|
|
|
|
|
|
|
|
|
private void acceptEditor(Class creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() |
|
|
|
|
&& (creator == TextArea.class |
|
|
|
|
|| creator == TextEditor.class |
|
|
|
|
|| creator == NumberEditor.class |
|
|
|
|
|| creator == Password.class |
|
|
|
|
|| creator == ComboBox.class |
|
|
|
|
|| creator == ComboCheckBox.class |
|
|
|
|
|| creator == DateEditor.class |
|
|
|
|
|| creator == TreeComboBoxEditor.class) |
|
|
|
|
&& (creator == TextArea.class || creator == TextEditor.class |
|
|
|
|
|| creator == NumberEditor.class || creator == Password.class |
|
|
|
|
|| creator == ComboBox.class || creator == ComboCheckBox.class |
|
|
|
|
|| creator == DateEditor.class || creator == TreeComboBoxEditor.class) |
|
|
|
|
|| WidgetThemeDesignerUtils.isNewComboBoxTreeEditor(creator); |
|
|
|
|
if (accept) { |
|
|
|
|
insertShortCut(extraPaneList, new EditorSettingPane<>()); |
|
|
|
@ -97,12 +93,9 @@ public class WidgetThemeCreatorPaneAcceptor<T> {
|
|
|
|
|
|
|
|
|
|
private void acceptNormal(Class creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() |
|
|
|
|
&& (creator == AppendRowButton.class |
|
|
|
|
|| creator == FreeButton.class |
|
|
|
|
|| creator == DeleteRowButton.class |
|
|
|
|
|| creator == FormSubmitButton.class |
|
|
|
|
|| creator == TreeNodeToggleButton.class |
|
|
|
|
|| creator == Button.class); |
|
|
|
|
&& (creator == AppendRowButton.class || creator == FreeButton.class |
|
|
|
|
|| creator == DeleteRowButton.class || creator == FormSubmitButton.class |
|
|
|
|
|| creator == TreeNodeToggleButton.class || creator == Button.class); |
|
|
|
|
if (accept) { |
|
|
|
|
insertShortCut(extraPaneList, new NormalButtonSettingPane<>()); |
|
|
|
|
} |
|
|
|
|