|
|
@ -2,7 +2,7 @@ package com.fr.design.widget; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.data.DataCreatorUI; |
|
|
|
import com.fr.design.data.DataCreatorUI; |
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
import com.fr.design.dialog.AttrScrollPane; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
@ -51,38 +51,24 @@ public class CellWidgetCardPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
this.removeAll(); |
|
|
|
this.removeAll(); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
final JPanel jPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasicScrollPane basicScrollPane = new BasicScrollPane() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected JPanel createContentPane() { |
|
|
|
|
|
|
|
return jPanel; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void populateBean(Object ob) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected String title4PopupWindow() { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
this.add(basicScrollPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//k
|
|
|
|
//k
|
|
|
|
tabbedPane = new CardLayout(); |
|
|
|
tabbedPane = new CardLayout(); |
|
|
|
center = new JPanel(tabbedPane); |
|
|
|
center = new JPanel(tabbedPane); |
|
|
|
jPanel.add(center, BorderLayout.CENTER); |
|
|
|
this.add(center, BorderLayout.CENTER); |
|
|
|
jPanel.setBorder(BorderFactory.createEmptyBorder(0, IntervalConstants.INTERVAL_L6, 0, 0)); |
|
|
|
|
|
|
|
attriTabPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
attriTabPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
eventTabPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
eventTabPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
|
|
|
eventTabPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 10)); |
|
|
|
initPaneList(); |
|
|
|
initPaneList(); |
|
|
|
eventPane = initWidgetEventPane(pane); |
|
|
|
eventPane = initWidgetEventPane(pane); |
|
|
|
eventTabPane.add(eventPane, BorderLayout.CENTER); |
|
|
|
eventTabPane.add(eventPane, BorderLayout.CENTER); |
|
|
|
//k
|
|
|
|
//k
|
|
|
|
center.add(attriTabPane, Inter.getLocText("FR-Designer_Attribute")); |
|
|
|
BasicScrollPane basicScrollPane = new AttrScrollPane() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected JPanel createContentPane() { |
|
|
|
|
|
|
|
return attriTabPane; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
center.add(basicScrollPane, Inter.getLocText("FR-Designer_Attribute")); |
|
|
|
center.add(eventTabPane, Inter.getLocText("FR-Designer_Event")); |
|
|
|
center.add(eventTabPane, Inter.getLocText("FR-Designer_Event")); |
|
|
|
final String[] tabTitles = new String[]{Inter.getLocText("FR-Designer_Attribute"), Inter.getLocText("FR-Designer_Event")}; |
|
|
|
final String[] tabTitles = new String[]{Inter.getLocText("FR-Designer_Attribute"), Inter.getLocText("FR-Designer_Event")}; |
|
|
|
|
|
|
|
|
|
|
@ -100,7 +86,8 @@ public class CellWidgetCardPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
UIExpandablePane uiExpandablePane = new UIExpandablePane(Inter.getLocText("FR-Designer_Basic"), 280, 24, widgetPropertyPane); |
|
|
|
UIExpandablePane uiExpandablePane = new UIExpandablePane(Inter.getLocText("FR-Designer_Basic"), 280, 24, widgetPropertyPane); |
|
|
|
|
|
|
|
|
|
|
|
attriTabPane.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); |
|
|
|
|
|
|
|
|
|
|
|
attriTabPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10)); |
|
|
|
attriTabPane.add(uiExpandablePane, BorderLayout.NORTH); |
|
|
|
attriTabPane.add(uiExpandablePane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
|
|
attriCardPane = FRGUIPaneFactory.createCardLayout_S_Pane(); |
|
|
|
attriCardPane = FRGUIPaneFactory.createCardLayout_S_Pane(); |
|
|
|