|
|
@ -68,11 +68,11 @@ public class AlphaFineDialog extends UIDialog { |
|
|
|
private SearchListModel searchListModel; |
|
|
|
private SearchListModel searchListModel; |
|
|
|
private SwingWorker searchWorker; |
|
|
|
private SwingWorker searchWorker; |
|
|
|
//是否强制打开,因为面板是否关闭绑定了全局鼠标事件,这里需要处理一下
|
|
|
|
//是否强制打开,因为面板是否关闭绑定了全局鼠标事件,这里需要处理一下
|
|
|
|
private boolean foreOpen; |
|
|
|
private boolean forceOpen; |
|
|
|
|
|
|
|
|
|
|
|
public AlphaFineDialog(Frame parent, boolean foreOpen) { |
|
|
|
public AlphaFineDialog(Frame parent, boolean forceOpen) { |
|
|
|
super(parent); |
|
|
|
super(parent); |
|
|
|
this.foreOpen = foreOpen; |
|
|
|
this.forceOpen = forceOpen; |
|
|
|
initProperties(); |
|
|
|
initProperties(); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
initComponents(); |
|
|
|
initComponents(); |
|
|
@ -488,9 +488,9 @@ public class AlphaFineDialog extends UIDialog { |
|
|
|
Point p = k.getLocationOnScreen(); |
|
|
|
Point p = k.getLocationOnScreen(); |
|
|
|
Rectangle dialogRectangle = AlphaFineDialog.this.getBounds(); |
|
|
|
Rectangle dialogRectangle = AlphaFineDialog.this.getBounds(); |
|
|
|
Rectangle paneRectangle = new Rectangle(AlphaFinePane.createAlphaFinePane().getLocationOnScreen(), AlphaFinePane.createAlphaFinePane().getSize()); |
|
|
|
Rectangle paneRectangle = new Rectangle(AlphaFinePane.createAlphaFinePane().getLocationOnScreen(), AlphaFinePane.createAlphaFinePane().getSize()); |
|
|
|
if (!dialogRectangle.contains(p) && !paneRectangle.contains(p) && !foreOpen) { |
|
|
|
if (!dialogRectangle.contains(p) && !paneRectangle.contains(p) && !forceOpen) { |
|
|
|
AlphaFineDialog.this.dispose(); |
|
|
|
AlphaFineDialog.this.dispose(); |
|
|
|
foreOpen = false; |
|
|
|
forceOpen = false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -670,11 +670,11 @@ public class AlphaFineDialog extends UIDialog { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isForeOpen() { |
|
|
|
public boolean isForceOpen() { |
|
|
|
return foreOpen; |
|
|
|
return forceOpen; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setForeOpen(boolean foreOpen) { |
|
|
|
public void setForceOpen(boolean forceOpen) { |
|
|
|
this.foreOpen = foreOpen; |
|
|
|
this.forceOpen = forceOpen; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |