|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.fr.design.webattr; |
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
@ -22,6 +23,7 @@ import com.fr.design.javascript.JavaScriptActionPane;
|
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.layout.VerticalFlowLayout; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.JWorkBook; |
|
|
|
|
import com.fr.design.menu.ToolBarDef; |
|
|
|
@ -46,7 +48,6 @@ import com.fr.widgettheme.util.WidgetThemeDesignerUtils;
|
|
|
|
|
import com.fr.write.JavaScriptResourceInfo; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.Box; |
|
|
|
|
import javax.swing.DefaultListCellRenderer; |
|
|
|
|
import javax.swing.DefaultListModel; |
|
|
|
|
import javax.swing.ImageIcon; |
|
|
|
@ -170,7 +171,7 @@ public class EditToolBar extends BasicPane {
|
|
|
|
|
splitPane.setDividerLocation(120); |
|
|
|
|
this.add(splitPane); |
|
|
|
|
list.addListSelectionListener(listSelectionListener); |
|
|
|
|
JPanel backgroundPane = FRGUIPaneFactory.createVerticalFlowLayout_Pane(true, 0, 0, 0); |
|
|
|
|
JPanel backgroundPane = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
|
UIButton bgButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Background")); |
|
|
|
|
defaultCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Default_Background")); |
|
|
|
|
bgButton.addActionListener(actioner); |
|
|
|
@ -419,7 +420,7 @@ public class EditToolBar extends BasicPane {
|
|
|
|
|
double rowSize[] = {p, p}; |
|
|
|
|
double columnSize[] = {p, p}; |
|
|
|
|
|
|
|
|
|
Component[][] coms = new Component[][]{{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Widget_Printer_Alias") + ":"), nameField}, {new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Widget_Icon") + ":"), iconPane}}; |
|
|
|
|
Component[][] coms = new Component[][]{{new UILabel(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Widget_Printer_Alias"), ":")), nameField}, {new UILabel(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Widget_Icon"), ":")), iconPane}}; |
|
|
|
|
|
|
|
|
|
JPanel nameIconPane = TableLayoutHelper.createTableLayoutPane(coms, rowSize, columnSize); |
|
|
|
|
|
|
|
|
@ -444,6 +445,7 @@ public class EditToolBar extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.add(centerPane, BorderLayout.CENTER); |
|
|
|
|
BidiUtils.applyOrientationByLocale(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -452,13 +454,13 @@ public class EditToolBar extends BasicPane {
|
|
|
|
|
|
|
|
|
|
button = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_User_Defined_Event")); |
|
|
|
|
customPane.add(button); |
|
|
|
|
customPane.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Edit") + "JS", null)); |
|
|
|
|
customPane.setBorder(GUICoreUtils.createTitledBorder(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Edit"), "JS"), null)); |
|
|
|
|
button.addActionListener(l); |
|
|
|
|
return customPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel getExport() { |
|
|
|
|
JPanel export = FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane(); |
|
|
|
|
JPanel export = FRGUIPaneFactory.createVerticalFlowLayout_Pane(true, VerticalFlowLayout.TOP, 0, 0); |
|
|
|
|
// export.setLayout(new BoxLayout(export, BoxLayout.Y_AXIS));
|
|
|
|
|
pdf = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Output_PDF")); |
|
|
|
|
excelP = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Output_Excel_Page")); |
|
|
|
@ -467,35 +469,27 @@ public class EditToolBar extends BasicPane {
|
|
|
|
|
word = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Output_Word")); |
|
|
|
|
image = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Image")); |
|
|
|
|
export.add(pdf); |
|
|
|
|
export.add(Box.createVerticalStrut(2)); |
|
|
|
|
export.add(excelP); |
|
|
|
|
export.add(Box.createVerticalStrut(2)); |
|
|
|
|
export.add(excelO); |
|
|
|
|
export.add(Box.createVerticalStrut(2)); |
|
|
|
|
export.add(excelS); |
|
|
|
|
export.add(Box.createVerticalStrut(2)); |
|
|
|
|
export.add(word); |
|
|
|
|
export.add(Box.createVerticalStrut(2)); |
|
|
|
|
export.add(image); |
|
|
|
|
for (int i = 0; i < ArrayUtils.getLength(exportToolBarProviders); i++) { |
|
|
|
|
export = exportToolBarProviders[i].updateCenterPane(export); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Form_Button_Property"), null)); |
|
|
|
|
export.setBorder(GUICoreUtils.createTitledBorder(Toolkit.i18nText("Fine-Design_Report_Set_Form_Button_Property"), null)); |
|
|
|
|
return export; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel getEmail() { |
|
|
|
|
JPanel email = FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane(); |
|
|
|
|
JPanel email = FRGUIPaneFactory.createVerticalFlowLayout_Pane(true, VerticalFlowLayout.TOP, 0, 0); |
|
|
|
|
customConsignee = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Custom_Consignee")); |
|
|
|
|
consigneeByDepartment = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Consignee_By_Department")); |
|
|
|
|
consigneeByRole = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Consignee_By_Role")); |
|
|
|
|
email.add(customConsignee); |
|
|
|
|
email.add(Box.createVerticalStrut(2)); |
|
|
|
|
email.add(consigneeByDepartment); |
|
|
|
|
email.add(Box.createVerticalStrut(2)); |
|
|
|
|
email.add(consigneeByRole); |
|
|
|
|
email.add(Box.createVerticalStrut(2)); |
|
|
|
|
|
|
|
|
|
email.setBorder(GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Form_Button_Property"), null)); |
|
|
|
|
return email; |
|
|
|
|