|
|
|
@ -24,10 +24,26 @@ import com.fr.design.widgettheme.common.NormalButtonSettingPane;
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 参数面板控件主题窗口创建处理类 |
|
|
|
|
* 当前类型被接受时,添加对应pane到extraPaneList |
|
|
|
|
* |
|
|
|
|
* @author obo |
|
|
|
|
* @since 11.0 |
|
|
|
|
* Created on 2023/11/13 |
|
|
|
|
*/ |
|
|
|
|
public class WidgetThemeXCreaterPaneAcceptor<T> { |
|
|
|
|
|
|
|
|
|
public WidgetThemeXCreaterPaneAcceptor(){} |
|
|
|
|
public WidgetThemeXCreaterPaneAcceptor() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 处理对应的参数面板控件creator |
|
|
|
|
* 当类型判断符合时,将扩展的pane添加到list |
|
|
|
|
* |
|
|
|
|
* @param creator 控件creator |
|
|
|
|
* @param extraPaneList 扩展paneList |
|
|
|
|
*/ |
|
|
|
|
public void accept(XCreator creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
acceptEditor(creator, extraPaneList); |
|
|
|
|
acceptRoot(creator, extraPaneList); |
|
|
|
@ -41,7 +57,7 @@ public class WidgetThemeXCreaterPaneAcceptor<T> {
|
|
|
|
|
extraPaneList.add(0, pane); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void acceptEditor(XCreator creator, List<BasicBeanPane<T>> extraPaneList){ |
|
|
|
|
private void acceptEditor(XCreator creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() |
|
|
|
|
&& (creator instanceof XWrapperedFieldEditor |
|
|
|
|
|| creator instanceof XTextArea |
|
|
|
@ -53,13 +69,15 @@ public class WidgetThemeXCreaterPaneAcceptor<T> {
|
|
|
|
|
insertShortCut(extraPaneList, new ParaEditorSettingPane<>()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
private void acceptRoot(XCreator creator, List<BasicBeanPane<T>> extraPaneList){ |
|
|
|
|
|
|
|
|
|
private void acceptRoot(XCreator creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() && creator instanceof XWParameterLayout; |
|
|
|
|
if(accept) { |
|
|
|
|
if (accept) { |
|
|
|
|
insertShortCut(extraPaneList, new ParameterBackgroundStyleSettingPane()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
private void acceptTree(XCreator creator, List<BasicBeanPane<T>> extraPaneList){ |
|
|
|
|
|
|
|
|
|
private void acceptTree(XCreator creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() |
|
|
|
|
&& (creator instanceof XTreeEditor |
|
|
|
|
&& !(creator instanceof XTreeComboBoxEditor)); |
|
|
|
@ -67,19 +85,22 @@ public class WidgetThemeXCreaterPaneAcceptor<T> {
|
|
|
|
|
insertShortCut(extraPaneList, new ParaTreeEditorSettingPane<>()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
private void acceptLabel(XCreator creator, List<BasicBeanPane<T>> extraPaneList){ |
|
|
|
|
|
|
|
|
|
private void acceptLabel(XCreator creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() && creator instanceof XLabel; |
|
|
|
|
if(accept) { |
|
|
|
|
if (accept) { |
|
|
|
|
insertShortCut(extraPaneList, new LabelSettingPane<>()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
private void acceptNormal(XCreator creator, List<BasicBeanPane<T>> extraPaneList){ |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() && creator instanceof XButton; |
|
|
|
|
|
|
|
|
|
private void acceptNormal(XCreator creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() && creator instanceof XButton; |
|
|
|
|
if (accept) { |
|
|
|
|
insertShortCut(extraPaneList, new NormalButtonSettingPane<>()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
private void acceptButton(XCreator creator, List<BasicBeanPane<T>> extraPaneList){ |
|
|
|
|
|
|
|
|
|
private void acceptButton(XCreator creator, List<BasicBeanPane<T>> extraPaneList) { |
|
|
|
|
boolean accept = WidgetThemeDesignerUtils.enableWidgetEnhance() |
|
|
|
|
&& (creator instanceof XRadioGroup |
|
|
|
|
|| creator instanceof XCheckBoxGroup |
|
|
|
|