Browse Source

REPORT-14862 简道云插件适配10.0,数据集部分代码同步过来

bugfix/10.0
zack 6 years ago
parent
commit
41e206b1c4
  1. 22
      designer-base/src/main/java/com/fr/design/dialog/BasicPane.java

22
designer-base/src/main/java/com/fr/design/dialog/BasicPane.java

@ -2,13 +2,18 @@ package com.fr.design.dialog;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.design.gui.itextfield.UITextField; import com.fr.design.gui.itextfield.UITextField;
import com.fr.design.i18n.Toolkit;
import com.fr.stable.core.PropertyChangeAdapter;
import com.fr.design.utils.gui.GUICoreUtils; import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.stable.core.PropertyChangeAdapter;
import javax.swing.*; import javax.swing.JPanel;
import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentEvent;
import java.awt.*; import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Window;
/* /*
* _denny: 这里的BasicPane通常会有populate & update方法 * _denny: 这里的BasicPane通常会有populate & update方法
@ -300,6 +305,7 @@ public abstract class BasicPane extends JPanel {
public static class NamePane extends BasicPane { public static class NamePane extends BasicPane {
private UITextField nameTextField; private UITextField nameTextField;
private UILabel Name;
private BasicPane centerPane; private BasicPane centerPane;
private UILabel showfield; private UILabel showfield;
private PropertyChangeAdapter changeListener; private PropertyChangeAdapter changeListener;
@ -308,8 +314,9 @@ public abstract class BasicPane extends JPanel {
this.setLayout(new BorderLayout(4, 4)); this.setLayout(new BorderLayout(4, 4));
nameTextField = new UITextField(30); nameTextField = new UITextField(30);
Name = new UILabel(Toolkit.i18nText("Fine-Design_Basic_Name") + ":");
JPanel northPane = new JPanel(new BorderLayout(4, 4)); JPanel northPane = new JPanel(new BorderLayout(4, 4));
northPane.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Name") + ":"), BorderLayout.WEST); northPane.add(Name, BorderLayout.WEST);
northPane.add(nameTextField, BorderLayout.CENTER); northPane.add(nameTextField, BorderLayout.CENTER);
northPane.add(showfield = new UILabel(" "), BorderLayout.EAST); northPane.add(showfield = new UILabel(" "), BorderLayout.EAST);
showfield.setForeground(new Color(204, 0, 1)); showfield.setForeground(new Color(204, 0, 1));
@ -343,6 +350,11 @@ public abstract class BasicPane extends JPanel {
} }
} }
public void setVisible(boolean isVisible) {
this.nameTextField.setVisible(isVisible);
this.Name.setVisible(isVisible);
}
public String getObjectName() { public String getObjectName() {
return this.nameTextField.getText().trim(); return this.nameTextField.getText().trim();
} }

Loading…
Cancel
Save