|
|
|
@ -111,7 +111,6 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void refreshDockingView() { |
|
|
|
|
|
|
|
|
|
designer = this.getEditingFormDesigner(); |
|
|
|
|
removeAll(); |
|
|
|
|
if (designer == null) { |
|
|
|
@ -129,7 +128,6 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
|
|
|
|
|
eventTable.setBorder(null); |
|
|
|
|
UIScrollPane esp = new UIScrollPane(eventTable); |
|
|
|
|
esp.setBorder(null); |
|
|
|
|
|
|
|
|
|
wsp = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
wsp.setBorder(null); |
|
|
|
|
mobileWidgetTable = new MobileWidgetTable(designer); |
|
|
|
@ -141,7 +139,6 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
|
|
|
|
|
centerPane.add(mobileBodyWidgetTable,BODY); |
|
|
|
|
if(hasSelectParaPane(designer)){ |
|
|
|
|
cardLayout.show(centerPane,PARA); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
cardLayout.show(centerPane,BODY); |
|
|
|
|
} |
|
|
|
@ -150,15 +147,19 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
|
|
|
|
|
wsp.add(downPanel,BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
UITabbedPane tabbedPane = new UITabbedPane(); |
|
|
|
|
|
|
|
|
|
tabbedPane.setOpaque(true); |
|
|
|
|
tabbedPane.setBorder(null); |
|
|
|
|
tabbedPane.setTabPlacement(SwingConstants.BOTTOM); |
|
|
|
|
tabbedPane.addTab(Inter.getLocText("Form-Properties"), psp); |
|
|
|
|
tabbedPane.addTab(Inter.getLocText("Form-Events"), esp); |
|
|
|
|
tabbedPane.addTab(Inter.getLocText("FR-Widget_Mobile_Terminal"), wsp); |
|
|
|
|
|
|
|
|
|
initTabPane(psp, esp, tabbedPane); |
|
|
|
|
WidgetPropertyUIProvider[] widgetAttrProviders = getExtraPropertyUIProviders(); |
|
|
|
|
addWidgetAttr(widgetAttrProviders); |
|
|
|
|
add(tabbedPane, BorderLayout.CENTER); |
|
|
|
|
propertyTable.initPropertyGroups(null); |
|
|
|
|
eventTable.refresh(); |
|
|
|
|
for (AbstractPropertyTable propertyTable : widgetPropertyTables) { |
|
|
|
|
propertyTable.initPropertyGroups(designer); |
|
|
|
|
} |
|
|
|
|
isrefresh = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void addWidgetAttr(WidgetPropertyUIProvider[] widgetAttrProviders) { |
|
|
|
|
if (widgetAttrProviders.length == 0) { |
|
|
|
|
UILabel upLabel = new UILabel(Inter.getLocText("FR-Widget_Mobile_Table"), SwingConstants.CENTER); |
|
|
|
|
upLabel.setBorder(BorderFactory.createEmptyBorder(6,0,6,0)); |
|
|
|
@ -174,13 +175,15 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
add(tabbedPane, BorderLayout.CENTER); |
|
|
|
|
propertyTable.initPropertyGroups(null); |
|
|
|
|
eventTable.refresh(); |
|
|
|
|
for (AbstractPropertyTable propertyTable : widgetPropertyTables) { |
|
|
|
|
propertyTable.initPropertyGroups(designer); |
|
|
|
|
} |
|
|
|
|
isrefresh = false; |
|
|
|
|
|
|
|
|
|
private void initTabPane(UIScrollPane psp, UIScrollPane esp, UITabbedPane tabbedPane) { |
|
|
|
|
tabbedPane.setOpaque(true); |
|
|
|
|
tabbedPane.setBorder(null); |
|
|
|
|
tabbedPane.setTabPlacement(SwingConstants.BOTTOM); |
|
|
|
|
tabbedPane.addTab(Inter.getLocText("Form-Properties"), psp); |
|
|
|
|
tabbedPane.addTab(Inter.getLocText("Form-Events"), esp); |
|
|
|
|
tabbedPane.addTab(Inter.getLocText("FR-Widget_Mobile_Terminal"), wsp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|