package com.vci.client.logon.base; import java.awt.Dialog; import java.awt.Frame; import java.awt.GraphicsConfiguration; import java.awt.HeadlessException; import com.vci.client.ClientSession; import com.vci.client.ui.swing.components.VCIJDialog; public class BaseJDialog extends VCIJDialog{ /** * */ private static final long serialVersionUID = 1L; /** * @throws HeadlessException */ public BaseJDialog() throws HeadlessException { // TODO Auto-generated constructor stub } /** * @param owner * @throws HeadlessException */ public BaseJDialog(Frame owner) throws HeadlessException { super(owner); // TODO Auto-generated constructor stub } /** * @param owner * @throws HeadlessException */ public BaseJDialog(Dialog owner) throws HeadlessException { super(owner); // TODO Auto-generated constructor stub } /** * @param owner * @param modal * @throws HeadlessException */ public BaseJDialog(Frame owner, boolean modal) throws HeadlessException { super(owner, modal); // TODO Auto-generated constructor stub } /** * @param owner * @param title * @throws HeadlessException */ public BaseJDialog(Frame owner, String title) throws HeadlessException { super(owner, title); // TODO Auto-generated constructor stub } /** * @param owner * @param modal * @throws HeadlessException */ public BaseJDialog(Dialog owner, boolean modal) throws HeadlessException { super(owner, modal); // TODO Auto-generated constructor stub } /** * @param owner * @param title * @throws HeadlessException */ public BaseJDialog(Dialog owner, String title) throws HeadlessException { super(owner, title); // TODO Auto-generated constructor stub } /** * @param owner * @param title * @param modal * @throws HeadlessException */ public BaseJDialog(Frame owner, String title, boolean modal) throws HeadlessException { super(owner, title, modal); // TODO Auto-generated constructor stub } /** * @param owner * @param title * @param modal * @throws HeadlessException */ public BaseJDialog(Dialog owner, String title, boolean modal) throws HeadlessException { super(owner, title, modal); // TODO Auto-generated constructor stub } /** * @param owner * @param title * @param modal * @param gc */ public BaseJDialog(Frame owner, String title, boolean modal, GraphicsConfiguration gc) { super(owner, title, modal, gc); // TODO Auto-generated constructor stub } /** * @param owner * @param title * @param modal * @param gc * @throws HeadlessException */ public BaseJDialog(Dialog owner, String title, boolean modal, GraphicsConfiguration gc) throws HeadlessException { super(owner, title, modal, gc); // TODO Auto-generated constructor stub } /** * 显示模态窗口 */ @Override public void setVisible(boolean b) { // 取得clientSession的参数,进行判断,如果超时就不显示模态窗口,否则就显示。 super.setVisible(!ClientSession.isTimeOutFlag() && b); } }