Browse Source

ff

final/10.0
yaoh.wu 6 years ago
parent
commit
5918d7186a
  1. 6
      designer-base/src/main/java/com/fr/design/hyperlink/AbstractHyperNorthPane.java
  2. 10
      designer-base/src/main/java/com/fr/design/hyperlink/ReportletHyperNorthPane.java

6
designer-base/src/main/java/com/fr/design/hyperlink/AbstractHyperNorthPane.java

@ -27,15 +27,15 @@ public abstract class AbstractHyperNorthPane<T extends Hyperlink> extends BasicB
/** /**
* 链接打开方式对话框 * 链接打开方式对话框
*/ */
UIComboBox targetFrameComboBox; private UIComboBox targetFrameComboBox;
/** /**
* 对话框高度输入框 * 对话框高度输入框
*/ */
UINumberField heightTextFiled; private UINumberField heightTextFiled;
/** /**
* 对话框宽度输入框 * 对话框宽度输入框
*/ */
UINumberField widthTextFiled; private UINumberField widthTextFiled;
public AbstractHyperNorthPane() { public AbstractHyperNorthPane() {

10
designer-base/src/main/java/com/fr/design/hyperlink/ReportletHyperNorthPane.java

@ -284,6 +284,7 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
} }
private void bindListener(final List<Component[]> dialogComponents, final List<Component[]> othersComponents) { private void bindListener(final List<Component[]> dialogComponents, final List<Component[]> othersComponents) {
final UIComboBox targetFrameComboBox = this.getTargetFrameComboBox();
targetFrameComboBox.addActionListener(new ActionListener() { targetFrameComboBox.addActionListener(new ActionListener() {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
@ -337,7 +338,8 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
private void initTargetComboBoxPanel(List<Component[]> dialogComponents, List<Component[]> othersComponents) { private void initTargetComboBoxPanel(List<Component[]> dialogComponents, List<Component[]> othersComponents) {
// 链接打开于 // 链接打开于
targetFrameComboBox = new UIComboBox(getTargetFrames()); UIComboBox targetFrameComboBox = new UIComboBox(getTargetFrames());
this.setTargetFrameComboBox(targetFrameComboBox);
targetFrameComboBox.setEditable(true); targetFrameComboBox.setEditable(true);
targetFrameComboBox.setPreferredSize(new Dimension(100, 20)); targetFrameComboBox.setPreferredSize(new Dimension(100, 20));
JPanel targetFramePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); JPanel targetFramePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
@ -361,17 +363,19 @@ public class ReportletHyperNorthPane extends AbstractHyperNorthPane<ReportletHyp
UILabel heightLabel = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Height") + ":"); UILabel heightLabel = new UILabel(Toolkit.i18nText("Fine-Design_Chart_Height") + ":");
heightLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10)); heightLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));
sizeJPanel.add(heightLabel); sizeJPanel.add(heightLabel);
heightTextFiled = new UINumberField(); UINumberField heightTextFiled = new UINumberField();
heightTextFiled.setText(String.valueOf(DEFAULT_H_VALUE)); heightTextFiled.setText(String.valueOf(DEFAULT_H_VALUE));
heightTextFiled.setPreferredSize(new Dimension(40, 20)); heightTextFiled.setPreferredSize(new Dimension(40, 20));
sizeJPanel.add(heightTextFiled); sizeJPanel.add(heightTextFiled);
this.setHeightTextFiled(heightTextFiled);
UILabel widthLabel = new UILabel(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)); widthLabel.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 10));
sizeJPanel.add(widthLabel); sizeJPanel.add(widthLabel);
widthTextFiled = new UINumberField(); UINumberField widthTextFiled = new UINumberField();
widthTextFiled.setText(String.valueOf(DEFAULT_V_VALUE)); widthTextFiled.setText(String.valueOf(DEFAULT_V_VALUE));
widthTextFiled.setPreferredSize(new Dimension(40, 20)); widthTextFiled.setPreferredSize(new Dimension(40, 20));
sizeJPanel.add(widthTextFiled); sizeJPanel.add(widthTextFiled);
this.setWidthTextFiled(widthTextFiled);
sizeJPanel.setVisible(true); sizeJPanel.setVisible(true);
dialogComponents.add(new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Size") + ":"), sizeJPanel}); dialogComponents.add(new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Dialog_Size") + ":"), sizeJPanel});
} }

Loading…
Cancel
Save