|
|
@ -95,26 +95,19 @@ public class FormWidgetDetailPane extends FormDockView{ |
|
|
|
clearDockingView(); |
|
|
|
clearDockingView(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
reuWidgetPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel esp = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
reuWidgetPanel.setBorder(null); |
|
|
|
esp.setBorder(null); |
|
|
|
|
|
|
|
if (elCaseBindInfoList == null) { |
|
|
|
if (elCaseBindInfoList == null) { |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
} |
|
|
|
} |
|
|
|
initReuWidgetPanel(); |
|
|
|
initReuWidgetPanel(); |
|
|
|
esp.add(reuWidgetPanel, BorderLayout.CENTER); |
|
|
|
|
|
|
|
createDownloadButton(); |
|
|
|
createDownloadButton(); |
|
|
|
JPanel widgetPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); |
|
|
|
initMenuPanel(); |
|
|
|
widgetPane.setBorder(BorderFactory.createEmptyBorder(3, 10, 3, 3)); |
|
|
|
|
|
|
|
widgetPane.add(new UILabel(Inter.getLocText("FR-Designer_LocalWidget"), |
|
|
|
|
|
|
|
SwingConstants.HORIZONTAL), BorderLayout.WEST); |
|
|
|
|
|
|
|
widgetPane.add(downloadButton, BorderLayout.EAST); |
|
|
|
|
|
|
|
esp.add(widgetPane,BorderLayout.NORTH); |
|
|
|
|
|
|
|
tabbedPane = new UITabbedPane(); |
|
|
|
tabbedPane = new UITabbedPane(); |
|
|
|
tabbedPane.setOpaque(true); |
|
|
|
tabbedPane.setOpaque(true); |
|
|
|
tabbedPane.setBorder(null); |
|
|
|
tabbedPane.setBorder(null); |
|
|
|
tabbedPane.setTabPlacement(SwingConstants.BOTTOM); |
|
|
|
tabbedPane.setTabPlacement(SwingConstants.BOTTOM); |
|
|
|
tabbedPane.addTab(Inter.getLocText("FR-Engine_Report"), esp); |
|
|
|
tabbedPane.addTab(Inter.getLocText("FR-Engine_Report"), reuWidgetPanel); |
|
|
|
tabbedPane.addTab(Inter.getLocText("FR-Designer-Form-ToolBar_Chart"), new JPanel()); |
|
|
|
tabbedPane.addTab(Inter.getLocText("FR-Designer-Form-ToolBar_Chart"), new JPanel()); |
|
|
|
add(tabbedPane, BorderLayout.CENTER); |
|
|
|
add(tabbedPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
@ -124,16 +117,25 @@ public class FormWidgetDetailPane extends FormDockView{ |
|
|
|
* 初始化组件共享和复用面板 |
|
|
|
* 初始化组件共享和复用面板 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void initReuWidgetPanel() { |
|
|
|
private void initReuWidgetPanel() { |
|
|
|
int rowCount = (elCaseBindInfoList.length + 1)/2; |
|
|
|
|
|
|
|
downPanel = new UIScrollPane(new ShareWidgetPane(elCaseBindInfoList)); |
|
|
|
downPanel = new UIScrollPane(new ShareWidgetPane(elCaseBindInfoList)); |
|
|
|
downPanel.setPreferredSize(new Dimension(236, rowCount * 82)); |
|
|
|
reuWidgetPanel.add(downPanel); |
|
|
|
reuWidgetPanel = new JPanel(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 初始化菜单栏面板 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private void initMenuPanel() { |
|
|
|
|
|
|
|
JPanel menutPane = new JPanel(); |
|
|
|
|
|
|
|
menutPane.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
|
|
|
menutPane.setBorder(BorderFactory.createEmptyBorder(5, 8, 3, 3)); |
|
|
|
|
|
|
|
menutPane.add(new UILabel(Inter.getLocText("FR-Designer_LocalWidget"), |
|
|
|
|
|
|
|
SwingConstants.HORIZONTAL), BorderLayout.WEST); |
|
|
|
|
|
|
|
menutPane.add(downloadButton, BorderLayout.EAST); |
|
|
|
comboBox = new UIComboBox(getFormCategories()); |
|
|
|
comboBox = new UIComboBox(getFormCategories()); |
|
|
|
comboBox.setPreferredSize(new Dimension(236, 30)); |
|
|
|
comboBox.setPreferredSize(new Dimension(240, 30)); |
|
|
|
initComboBoxSelectedListener(); |
|
|
|
initComboBoxSelectedListener(); |
|
|
|
reuWidgetPanel.add(comboBox, BorderLayout.NORTH); |
|
|
|
menutPane.add(comboBox, BorderLayout.SOUTH); |
|
|
|
reuWidgetPanel.add(downPanel, BorderLayout.CENTER); |
|
|
|
reuWidgetPanel.add(menutPane,BorderLayout.NORTH); |
|
|
|
reuWidgetPanel.setBorder(new LineBorder(Color.gray)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initComboBoxSelectedListener() { |
|
|
|
private void initComboBoxSelectedListener() { |
|
|
@ -144,7 +146,7 @@ public class FormWidgetDetailPane extends FormDockView{ |
|
|
|
if (filterIndex == 0) { |
|
|
|
if (filterIndex == 0) { |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getAllBindInfoList(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
String filterName = (String) e.getItem(); |
|
|
|
String filterName = comboBox.getSelectedItem().toString(); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getFilterBindInfoList(filterName); |
|
|
|
elCaseBindInfoList = ShareLoader.getLoader().getFilterBindInfoList(filterName); |
|
|
|
} |
|
|
|
} |
|
|
|
refreshDownPanel(); |
|
|
|
refreshDownPanel(); |
|
|
@ -193,7 +195,6 @@ public class FormWidgetDetailPane extends FormDockView{ |
|
|
|
public void refreshDownPanel() { |
|
|
|
public void refreshDownPanel() { |
|
|
|
reuWidgetPanel.remove(downPanel); |
|
|
|
reuWidgetPanel.remove(downPanel); |
|
|
|
downPanel = new UIScrollPane(new ShareWidgetPane(elCaseBindInfoList)); |
|
|
|
downPanel = new UIScrollPane(new ShareWidgetPane(elCaseBindInfoList)); |
|
|
|
//todo:这个地方有问题
|
|
|
|
|
|
|
|
reuWidgetPanel.add(downPanel); |
|
|
|
reuWidgetPanel.add(downPanel); |
|
|
|
repaintContainer(); |
|
|
|
repaintContainer(); |
|
|
|
|
|
|
|
|
|
|
|