|
|
|
@ -39,7 +39,7 @@ public class ElementCaseToolBarPane extends BasicBeanPane<FormToolBarManager[]>
|
|
|
|
|
private int row = 6; |
|
|
|
|
private DefaultTableModel toolbarButtonTableModel; |
|
|
|
|
private JTable layoutTable; |
|
|
|
|
private UICheckBox isUseToolBarCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Use_ToolBar") + ":"); // 是否使用工具栏
|
|
|
|
|
private UICheckBox isUseToolBarCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Use_ToolBar") + ":"); // 是否使用工具栏
|
|
|
|
|
|
|
|
|
|
private FormToolBarPane northToolBar; |
|
|
|
|
private FormToolBarPane southToolBar; |
|
|
|
@ -50,7 +50,7 @@ public class ElementCaseToolBarPane extends BasicBeanPane<FormToolBarManager[]>
|
|
|
|
|
toolbarButtonTableModel = new TableModel(row ,COLUMN); |
|
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
JPanel north = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
UIButton defaultButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Restore_Default")); |
|
|
|
|
UIButton defaultButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Restore_Default")); |
|
|
|
|
// 恢复默认按钮
|
|
|
|
|
defaultButton.addActionListener(new ActionListener() { |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
@ -98,7 +98,7 @@ public class ElementCaseToolBarPane extends BasicBeanPane<FormToolBarManager[]>
|
|
|
|
|
northToolBar.validate(); |
|
|
|
|
northToolBar.repaint(); |
|
|
|
|
} else { |
|
|
|
|
JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), com.fr.design.i18n.Toolkit.i18nText("FR-Designer_ChooseOneButton")); |
|
|
|
|
JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Choose_One_Button")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -123,7 +123,7 @@ public class ElementCaseToolBarPane extends BasicBeanPane<FormToolBarManager[]>
|
|
|
|
|
southToolBar.validate(); |
|
|
|
|
southToolBar.repaint(); |
|
|
|
|
} else { |
|
|
|
|
JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), com.fr.design.i18n.Toolkit.i18nText("FR-Designer_ChooseOneButton")); |
|
|
|
|
JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Choose_One_Button")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -144,13 +144,13 @@ public class ElementCaseToolBarPane extends BasicBeanPane<FormToolBarManager[]>
|
|
|
|
|
southToolBar.setBackground(Color.lightGray); |
|
|
|
|
JPanel movePane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
JPanel northContentPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
FormSettingToolBar top = new FormSettingToolBar(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_ToolBar_Top"), northToolBar); |
|
|
|
|
FormSettingToolBar top = new FormSettingToolBar(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ToolBar_Top"), northToolBar); |
|
|
|
|
northContentPane.add(top, BorderLayout.EAST); |
|
|
|
|
northContentPane.add(northToolBar, BorderLayout.CENTER); |
|
|
|
|
northContentPane.setBackground(Color.lightGray); |
|
|
|
|
|
|
|
|
|
JPanel southContentPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
FormSettingToolBar bottom = new FormSettingToolBar(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_ToolBar_Bottom"), southToolBar); |
|
|
|
|
FormSettingToolBar bottom = new FormSettingToolBar(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ToolBar_Bottom"), southToolBar); |
|
|
|
|
southContentPane.add(bottom, BorderLayout.EAST); |
|
|
|
|
southContentPane.add(southToolBar, BorderLayout.CENTER); |
|
|
|
|
southContentPane.setBackground(Color.lightGray); |
|
|
|
@ -171,7 +171,7 @@ public class ElementCaseToolBarPane extends BasicBeanPane<FormToolBarManager[]>
|
|
|
|
|
layoutTable.setColumnSelectionAllowed(false); |
|
|
|
|
layoutTable.setRowSelectionAllowed(false); |
|
|
|
|
layoutTable.setBackground(Color.WHITE); |
|
|
|
|
int columnWidth = Integer.parseInt(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_LayoutTable_Column_Width")); |
|
|
|
|
int columnWidth = Integer.parseInt(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Layout_Table_Column_Width")); |
|
|
|
|
for (int i = 0; i < layoutTable.getColumnModel().getColumnCount(); i++) { |
|
|
|
|
layoutTable.getColumnModel().getColumn(i).setPreferredWidth(columnWidth); |
|
|
|
|
} |
|
|
|
|