|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.fr.design.hyperlink; |
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
@ -325,7 +324,7 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
|
|
|
|
|
// 是否有重命名属性
|
|
|
|
|
if (this.needRenamePane) { |
|
|
|
|
itemNameTextField = new UITextField(); |
|
|
|
|
Component[] renameComponents = new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Name"), ":")), itemNameTextField}; |
|
|
|
|
Component[] renameComponents = new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Name") + ":"), itemNameTextField}; |
|
|
|
|
dialogComponents.add(renameComponents); |
|
|
|
|
othersComponents.add(renameComponents); |
|
|
|
|
} |
|
|
|
@ -334,7 +333,7 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
|
|
|
|
|
private void initHeaderPanel(List<Component[]> dialogComponents, List<Component[]> othersComponents) { |
|
|
|
|
//最上方位置的面板
|
|
|
|
|
JPanel headerPane = this.setHeaderPanel(); |
|
|
|
|
Component[] headerComponents = new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Reportlet"), ":")), headerPane}; |
|
|
|
|
Component[] headerComponents = new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Reportlet") + ":"), headerPane}; |
|
|
|
|
dialogComponents.add(headerComponents); |
|
|
|
|
othersComponents.add(headerComponents); |
|
|
|
|
} |
|
|
|
@ -347,7 +346,7 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
|
|
|
|
|
targetFrameComboBox.setPreferredSize(new Dimension(100, 20)); |
|
|
|
|
JPanel targetFramePanel = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 0)); |
|
|
|
|
targetFramePanel.add(targetFrameComboBox); |
|
|
|
|
Component[] targetComponents = new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Link_Opened_In"), ":")), targetFramePanel}; |
|
|
|
|
Component[] targetComponents = new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Link_Opened_In") + ":"), targetFramePanel}; |
|
|
|
|
dialogComponents.add(targetComponents); |
|
|
|
|
othersComponents.add(targetComponents); |
|
|
|
|
} |
|
|
|
@ -358,13 +357,13 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
|
|
|
|
|
titleFiled.getUITextField().setColumns(15); |
|
|
|
|
final JPanel titlePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
|
titlePanel.add(titleFiled); |
|
|
|
|
Component[] titleComponents = new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Title"), ":")), titlePanel}; |
|
|
|
|
Component[] titleComponents = new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Title") + ":"), titlePanel}; |
|
|
|
|
dialogComponents.add(titleComponents); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initDialogSizePanel(List<Component[]> dialogComponents) {// 对话框大小
|
|
|
|
|
final JPanel sizeJPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
|
UILabel heightLabel = new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Chart_Height"), ":")); |
|
|
|
|
UILabel heightLabel = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Height") + ":"); |
|
|
|
|
heightLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10)); |
|
|
|
|
sizeJPanel.add(heightLabel); |
|
|
|
|
UINumberField heightTextFiled = new UINumberField(); |
|
|
|
@ -374,7 +373,7 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
|
|
|
|
|
heightTextFiled.setPreferredSize(new Dimension(40, 20)); |
|
|
|
|
sizeJPanel.add(heightTextFiled); |
|
|
|
|
this.setHeightTextFiled(heightTextFiled); |
|
|
|
|
UILabel widthLabel = new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Designer_Width"), ":")); |
|
|
|
|
UILabel widthLabel = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Designer_Width") + ":"); |
|
|
|
|
widthLabel.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 10)); |
|
|
|
|
sizeJPanel.add(widthLabel); |
|
|
|
|
UINumberField widthTextFiled = new UINumberField(); |
|
|
|
@ -385,7 +384,7 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
|
|
|
|
|
sizeJPanel.add(widthTextFiled); |
|
|
|
|
this.setWidthTextFiled(widthTextFiled); |
|
|
|
|
sizeJPanel.setVisible(true); |
|
|
|
|
dialogComponents.add(new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Size"), ":")), sizeJPanel}); |
|
|
|
|
dialogComponents.add(new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Size") + ":"), sizeJPanel}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initDialogLocationPanel(List<Component[]> dialogComponents) { |
|
|
|
@ -440,13 +439,13 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
|
|
|
|
|
center.addChangeListener(actionListener); |
|
|
|
|
custom.addChangeListener(actionListener); |
|
|
|
|
|
|
|
|
|
dialogComponents.add(new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Show_Position"), ":")), locationPanel}); |
|
|
|
|
dialogComponents.add(new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Show_Position") + ":"), locationPanel}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initFooterPanel(List<Component[]> dialogComponents, List<Component[]> othersComponents) { |
|
|
|
|
// 最下方的配置面板
|
|
|
|
|
// 参数传递方式
|
|
|
|
|
Component[] footerComponents = new Component[]{new UILabel(BidiUtils.reverseConcatenateStrings(Toolkit.i18nText("Fine-Design_Basic_Reportlet_Parameter_Type"), ":")), this.setFootPanel()}; |
|
|
|
|
Component[] footerComponents = new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Reportlet_Parameter_Type") + ":"), this.setFootPanel()}; |
|
|
|
|
dialogComponents.add(footerComponents); |
|
|
|
|
othersComponents.add(footerComponents); |
|
|
|
|
} |
|
|
|
|