From be824ed22ac3f9e79182666d384d431df7036360 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Wed, 19 Oct 2016 22:47:06 +0800 Subject: [PATCH] rt --- .../fr/design/mainframe/FormWidgetDetailPane.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java b/designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java index 84600ecb49..62128240cc 100644 --- a/designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java +++ b/designer_form/src/com/fr/design/mainframe/FormWidgetDetailPane.java @@ -126,7 +126,7 @@ public class FormWidgetDetailPane extends FormDockView{ downPanel = new UIScrollPane(new ShareWidgetPane(elCaseBindInfoList)); downPanel.setPreferredSize(new Dimension(236, rowCount * 82)); reuWidgetPanel = new JPanel(); - comboBox = new UIComboBox(getCategories()); + comboBox = new UIComboBox(getFormCategories()); comboBox.setPreferredSize(new Dimension(236, 30)); initComboBoxSelectedListener(); reuWidgetPanel.add(comboBox, BorderLayout.NORTH); @@ -151,6 +151,9 @@ public class FormWidgetDetailPane extends FormDockView{ }); } + /** + * 创建下载模板的按钮 + */ private void createDownloadButton() { downloadButton = new UIButton(); downloadButton.setIcon(BaseUtils.readIcon("/com/fr/design/form/images/showmenu.png")); @@ -175,10 +178,16 @@ public class FormWidgetDetailPane extends FormDockView{ } }); } - public String[] getCategories() { + + /** + * 获取报表块组件分类 + */ + public String[] getFormCategories() { return ShareConstants.WIDGET_CATEGORIES; } + + public void refreshDownPanel() { reuWidgetPanel.remove(downPanel); downPanel = new UIScrollPane(new ShareWidgetPane(elCaseBindInfoList));