|
|
|
@ -18,6 +18,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @return 对话框 |
|
|
|
|
*/ |
|
|
|
@ -28,6 +29,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 对话框监听器 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -52,6 +54,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param isNeedButtonsPane 是否需要确定删除按钮 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -70,10 +73,10 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 图表类型选择时 弹出的按钮大小, 不适合用最大最小, 因为图表大小 默认是规定好的, 那么界面大小也是必须配合. |
|
|
|
|
* 并且包括 条件显示中 多个条件的大小 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 监听器 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -98,6 +101,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 对话框监听器 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -121,6 +125,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 对话框监听器 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -144,6 +149,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 对话框监听器 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -165,8 +171,33 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
return dg; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示自定义大小的窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 对话框监听器 |
|
|
|
|
* @param dimension 窗口大小 |
|
|
|
|
* @return 对话框 |
|
|
|
|
*/ |
|
|
|
|
public BasicDialog showCustomSizeWindow(Window window, DialogActionListener l, Dimension dimension) { |
|
|
|
|
BasicDialog dg; |
|
|
|
|
if (window instanceof Frame) { |
|
|
|
|
dg = new DIALOG((Frame) window); |
|
|
|
|
} else { |
|
|
|
|
dg = new DIALOG((Dialog) window); |
|
|
|
|
} |
|
|
|
|
if (l != null) { |
|
|
|
|
dg.addDialogActionListener(l); |
|
|
|
|
} |
|
|
|
|
dg.setBasicDialogSize(dimension); |
|
|
|
|
GUICoreUtils.centerWindow(dg); |
|
|
|
|
dg.setResizable(false); |
|
|
|
|
return dg; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 对话框监听器 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -189,6 +220,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @param l 对话框监听器 |
|
|
|
|
* @return 对话框 |
|
|
|
@ -213,6 +245,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 显示窗口 |
|
|
|
|
* |
|
|
|
|
* @param window 窗口 |
|
|
|
|
* @return 对话框 |
|
|
|
|
*/ |
|
|
|
@ -237,6 +270,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 作为名字面板 |
|
|
|
|
* |
|
|
|
|
* @return 面板 |
|
|
|
|
*/ |
|
|
|
|
public NamePane asNamePane() { |
|
|
|
@ -326,6 +360,7 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加属性改变的监听器 |
|
|
|
|
* |
|
|
|
|
* @param listener 监听器 |
|
|
|
|
*/ |
|
|
|
|
public void addPropertyChangeListener(PropertyChangeAdapter listener) { |
|
|
|
@ -357,7 +392,6 @@ public abstract class BasicPane extends JPanel {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* init Components |
|
|
|
|
*/ |
|
|
|
|