|
|
@ -2,6 +2,7 @@ package com.fr.design.webattr; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.ConfigManager; |
|
|
|
import com.fr.base.ConfigManager; |
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
import com.fr.config.Configuration; |
|
|
|
import com.fr.config.Configuration; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
@ -45,10 +46,10 @@ public class WriteToolBarPane extends AbstractEditToolBarPane { |
|
|
|
private UILabel sheetShowLocationLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Sheet_Label_Page_Display_Position")); |
|
|
|
private UILabel sheetShowLocationLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Sheet_Label_Page_Display_Position")); |
|
|
|
private UIRadioButton centerRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Center_Display")); |
|
|
|
private UIRadioButton centerRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Center_Display")); |
|
|
|
private UIRadioButton leftRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Left_Display")); |
|
|
|
private UIRadioButton leftRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Left_Display")); |
|
|
|
private UILabel rptShowLocationLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Show_Location") + ":", UILabel.LEFT); |
|
|
|
private UILabel rptShowLocationLabel = new UILabel(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Show_Location"), ":"), BidiUtils.rtl() ? UILabel.RIGHT : UILabel.LEFT); |
|
|
|
private UICheckBox isUseToolBarCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Use_ToolBar")); |
|
|
|
private UICheckBox isUseToolBarCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Use_ToolBar")); |
|
|
|
private UIButton editToolBarButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Edit")); |
|
|
|
private UIButton editToolBarButton = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Edit")); |
|
|
|
private UILabel showListenersLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Editing_Listeners") + ":"); |
|
|
|
private UILabel showListenersLabel = new UILabel(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Editing_Listeners"), ":")); |
|
|
|
private UICheckBox unloadCheck; |
|
|
|
private UICheckBox unloadCheck; |
|
|
|
private UICheckBox showWidgets; |
|
|
|
private UICheckBox showWidgets; |
|
|
|
private UICheckBox isAutoStash;//自动暂存
|
|
|
|
private UICheckBox isAutoStash;//自动暂存
|
|
|
@ -65,20 +66,20 @@ public class WriteToolBarPane extends AbstractEditToolBarPane { |
|
|
|
bottomRadioButton.setSelected(true); |
|
|
|
bottomRadioButton.setSelected(true); |
|
|
|
sheetButtonGroup.add(topRadioButton); |
|
|
|
sheetButtonGroup.add(topRadioButton); |
|
|
|
sheetButtonGroup.add(bottomRadioButton); |
|
|
|
sheetButtonGroup.add(bottomRadioButton); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{sheetShowLocationLabel, topRadioButton, bottomRadioButton}, FlowLayout.LEFT)); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{sheetShowLocationLabel, topRadioButton, bottomRadioButton}, BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT)); |
|
|
|
|
|
|
|
|
|
|
|
//Sean:报表显示位置
|
|
|
|
//Sean:报表显示位置
|
|
|
|
ButtonGroup rptButtonGroup = new ButtonGroup(); |
|
|
|
ButtonGroup rptButtonGroup = new ButtonGroup(); |
|
|
|
leftRadioButton.setSelected(true); |
|
|
|
leftRadioButton.setSelected(true); |
|
|
|
rptButtonGroup.add(leftRadioButton); |
|
|
|
rptButtonGroup.add(leftRadioButton); |
|
|
|
rptButtonGroup.add(centerRadioButton); |
|
|
|
rptButtonGroup.add(centerRadioButton); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{rptShowLocationLabel, centerRadioButton, leftRadioButton}, FlowLayout.LEFT)); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{rptShowLocationLabel, centerRadioButton, leftRadioButton}, BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT)); |
|
|
|
|
|
|
|
|
|
|
|
colorBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Face_Write_Current_Edit_Row_Background") + ":"); |
|
|
|
colorBox = new UICheckBox(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Set_Face_Write_Current_Edit_Row_Background"), ":")); |
|
|
|
colorBox.setSelected(false); |
|
|
|
colorBox.setSelected(false); |
|
|
|
colorBox.addActionListener(colorListener); |
|
|
|
colorBox.addActionListener(colorListener); |
|
|
|
colorButton = new UINoThemeColorButton(BaseUtils.readIcon("/com/fr/design/images/gui/color/background.png")); |
|
|
|
colorButton = new UINoThemeColorButton(BaseUtils.readIcon("/com/fr/design/images/gui/color/background.png")); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{colorBox, colorButton}, FlowLayout.LEFT)); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{colorBox, colorButton}, BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT)); |
|
|
|
|
|
|
|
|
|
|
|
unloadCheck = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Unload_Check")); |
|
|
|
unloadCheck = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Unload_Check")); |
|
|
|
unloadCheck.setSelected(true); |
|
|
|
unloadCheck.setSelected(true); |
|
|
@ -87,7 +88,7 @@ public class WriteToolBarPane extends AbstractEditToolBarPane { |
|
|
|
showWidgets.setSelected(false); |
|
|
|
showWidgets.setSelected(false); |
|
|
|
isAutoStash = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Write_Auto_Stash")); |
|
|
|
isAutoStash = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Write_Auto_Stash")); |
|
|
|
isAutoStash.setSelected(false); |
|
|
|
isAutoStash.setSelected(false); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{unloadCheck, showWidgets, isAutoStash}, FlowLayout.LEFT)); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{unloadCheck, showWidgets, isAutoStash}, BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT)); |
|
|
|
|
|
|
|
|
|
|
|
editToolBarButton.addActionListener(editBtnListener); |
|
|
|
editToolBarButton.addActionListener(editBtnListener); |
|
|
|
isUseToolBarCheckBox.setSelected(true); |
|
|
|
isUseToolBarCheckBox.setSelected(true); |
|
|
@ -98,9 +99,9 @@ public class WriteToolBarPane extends AbstractEditToolBarPane { |
|
|
|
editToolBarButton.setEnabled(isUseToolBarCheckBox.isSelected()); |
|
|
|
editToolBarButton.setEnabled(isUseToolBarCheckBox.isSelected()); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{isUseToolBarCheckBox, editToolBarButton}, FlowLayout.LEFT)); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(new Component[]{isUseToolBarCheckBox, editToolBarButton}, BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT)); |
|
|
|
northPane.add(new UILabel()); |
|
|
|
northPane.add(new UILabel()); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(showListenersLabel, FlowLayout.LEFT)); |
|
|
|
northPane.add(GUICoreUtils.createFlowPane(showListenersLabel, BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT)); |
|
|
|
eventPane = new EventPane(new WebWrite().supportedEvents()); |
|
|
|
eventPane = new EventPane(new WebWrite().supportedEvents()); |
|
|
|
JPanel center = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel center = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
center.add(eventPane, BorderLayout.CENTER); |
|
|
|
center.add(eventPane, BorderLayout.CENTER); |
|
|
@ -109,6 +110,7 @@ public class WriteToolBarPane extends AbstractEditToolBarPane { |
|
|
|
ToolBarManager toolBarManager = ToolBarManager.createDefaultWriteToolBar(); |
|
|
|
ToolBarManager toolBarManager = ToolBarManager.createDefaultWriteToolBar(); |
|
|
|
toolBarManager.setToolBarLocation(Location.createTopEmbedLocation()); |
|
|
|
toolBarManager.setToolBarLocation(Location.createTopEmbedLocation()); |
|
|
|
this.toolBarManagers = new ToolBarManager[]{toolBarManager}; |
|
|
|
this.toolBarManagers = new ToolBarManager[]{toolBarManager}; |
|
|
|
|
|
|
|
BidiUtils.applyOrientationByLocale(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private ActionListener editBtnListener = new ActionListener() { |
|
|
|
private ActionListener editBtnListener = new ActionListener() { |
|
|
|