diff --git a/designer_form/src/com/fr/design/designer/properties/mobile/ElementCasePropertyUI.java b/designer_form/src/com/fr/design/designer/properties/mobile/ElementCasePropertyUI.java index 065e3cd6e..f84bafc29 100644 --- a/designer_form/src/com/fr/design/designer/properties/mobile/ElementCasePropertyUI.java +++ b/designer_form/src/com/fr/design/designer/properties/mobile/ElementCasePropertyUI.java @@ -21,7 +21,7 @@ public class ElementCasePropertyUI extends AbstractWidgetPropertyUIProvider { @Override public AbstractPropertyTable createWidgetAttrTable() { - return new ElementCasePropertyTable(xCreator); + return null; } @Override diff --git a/designer_form/src/com/fr/design/mainframe/WidgetPropertyPane.java b/designer_form/src/com/fr/design/mainframe/WidgetPropertyPane.java index ff6a8c640..d5878a095 100644 --- a/designer_form/src/com/fr/design/mainframe/WidgetPropertyPane.java +++ b/designer_form/src/com/fr/design/mainframe/WidgetPropertyPane.java @@ -123,9 +123,11 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetPrope extraPane.initPropertyGroups(designer); } } -// for (AbstractPropertyTable propertyTable : widgetPropertyTables) { -// propertyTable.initPropertyGroups(designer); -// } + if (widgetPropertyTables != null) { + for (AbstractPropertyTable propertyTable : widgetPropertyTables) { + propertyTable.initPropertyGroups(designer); + } + } } /** @@ -224,12 +226,14 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetPrope mobileExtraPropertyPanes.add(extraPane); wsp.add(extraPane); } -// AbstractPropertyTable propertyTable = widgetAttrProvider.createWidgetAttrTable(); -// widgetPropertyTables.add(propertyTable); -// designer.addDesignerEditListener(new WidgetPropertyDesignerAdapter(formWidgetCardPane)); -// -// UIScrollPane uiScrollPane = new UIScrollPane(getExtraBodyTable(propertyTable)); -// wsp.add(uiScrollPane); + AbstractPropertyTable propertyTable = widgetAttrProvider.createWidgetAttrTable(); + if (propertyTable != null) { + widgetPropertyTables.add(propertyTable); + designer.addDesignerEditListener(new WidgetPropertyDesignerAdapter(formWidgetCardPane)); + + UIScrollPane uiScrollPane = new UIScrollPane(getExtraBodyTable(propertyTable)); + wsp.add(uiScrollPane); + } } } }