|
|
@ -76,11 +76,11 @@ public class FormWidgetDefinePaneFactoryBase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static RN createWidgetDefinePane(XCreator creator, FormDesigner designer, Widget widget, Operator operator) { |
|
|
|
public static RN createWidgetDefinePane(XCreator creator, FormDesigner designer, Widget widget, Operator operator) { |
|
|
|
Appearance dn = defineMap.get(widget.getClass()); |
|
|
|
if(isExtraXWidget(widget)){ |
|
|
|
if(dn == null){ |
|
|
|
|
|
|
|
WidgetDefinePane widgetDefinePane = new WidgetDefinePane(creator, designer); |
|
|
|
WidgetDefinePane widgetDefinePane = new WidgetDefinePane(creator, designer); |
|
|
|
return new RN(widgetDefinePane, widgetDefinePane.title4PopupWindow()); |
|
|
|
return new RN(widgetDefinePane, widgetDefinePane.title4PopupWindow()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Appearance dn = defineMap.get(widget.getClass()); |
|
|
|
DataModify<Widget> definePane = null; |
|
|
|
DataModify<Widget> definePane = null; |
|
|
|
try { |
|
|
|
try { |
|
|
|
Constructor con = dn.getDefineClass().getConstructor(XCreator.class); |
|
|
|
Constructor con = dn.getDefineClass().getConstructor(XCreator.class); |
|
|
@ -92,6 +92,10 @@ public class FormWidgetDefinePaneFactoryBase { |
|
|
|
return new RN(definePane, dn.getDisplayName()); |
|
|
|
return new RN(definePane, dn.getDisplayName()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static boolean isExtraXWidget(Widget widget){ |
|
|
|
|
|
|
|
return defineMap.get(widget.getClass()) == null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static class RN { |
|
|
|
public static class RN { |
|
|
|
private DataModify<Widget> definePane; |
|
|
|
private DataModify<Widget> definePane; |
|
|
|
private String cardName; |
|
|
|
private String cardName; |
|
|
|