org.smartui
Class WindowUtility

java.lang.Object
  |
  +--org.smartui.WindowUtility
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.WindowListener

public class WindowUtility
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.WindowListener


Field Summary
static java.lang.String[] s_AbortRetryIgnore
           
static java.lang.String s_lastModalCommand
           
static java.lang.String[] s_OK
           
static java.lang.String[] s_OkCancel
           
static WindowUtility s_WindowUtility
           
static java.lang.String[] s_YesNo
           
static java.lang.String[] s_YesNoCancel
           
 
Constructor Summary
WindowUtility()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
static int findComponent(java.awt.Container cn, java.awt.Component cp)
           
static int getTextField(java.awt.TextField tf, int nDef)
           
static void selectListItem(java.awt.List lst, java.lang.String s)
           
static void setCheckBox(java.awt.CheckboxGroup cgp, java.awt.Checkbox cb)
           
static java.awt.Dialog showMessageDlg(java.awt.Frame fm, java.lang.String title, java.lang.String msg, boolean bModal, java.lang.String[] buttons)
           
static java.awt.Dialog showMessageDlgPos(java.awt.Frame fm, java.lang.String title, java.lang.String msg, boolean bModal, java.lang.String[] buttons, int x, int y)
           
static void showWindowCenter(java.awt.Container cn, java.awt.Window wn)
           
static void showWindowComponent(java.awt.Container cn, java.awt.Component cp, java.awt.Window wn)
           
 void windowActivated(java.awt.event.WindowEvent windowevent)
           
 void windowClosed(java.awt.event.WindowEvent windowevent)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent windowevent)
           
 void windowDeiconified(java.awt.event.WindowEvent windowevent)
           
 void windowIconified(java.awt.event.WindowEvent windowevent)
           
 void windowOpened(java.awt.event.WindowEvent windowevent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_lastModalCommand

public static java.lang.String s_lastModalCommand

s_WindowUtility

public static WindowUtility s_WindowUtility

s_OK

public static final java.lang.String[] s_OK

s_OkCancel

public static final java.lang.String[] s_OkCancel

s_YesNo

public static final java.lang.String[] s_YesNo

s_YesNoCancel

public static final java.lang.String[] s_YesNoCancel

s_AbortRetryIgnore

public static final java.lang.String[] s_AbortRetryIgnore
Constructor Detail

WindowUtility

public WindowUtility()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

findComponent

public static int findComponent(java.awt.Container cn,
                                java.awt.Component cp)

getTextField

public static int getTextField(java.awt.TextField tf,
                               int nDef)

selectListItem

public static void selectListItem(java.awt.List lst,
                                  java.lang.String s)

setCheckBox

public static void setCheckBox(java.awt.CheckboxGroup cgp,
                               java.awt.Checkbox cb)

showMessageDlg

public static java.awt.Dialog showMessageDlg(java.awt.Frame fm,
                                             java.lang.String title,
                                             java.lang.String msg,
                                             boolean bModal,
                                             java.lang.String[] buttons)

showMessageDlgPos

public static java.awt.Dialog showMessageDlgPos(java.awt.Frame fm,
                                                java.lang.String title,
                                                java.lang.String msg,
                                                boolean bModal,
                                                java.lang.String[] buttons,
                                                int x,
                                                int y)

showWindowCenter

public static void showWindowCenter(java.awt.Container cn,
                                    java.awt.Window wn)

showWindowComponent

public static void showWindowComponent(java.awt.Container cn,
                                       java.awt.Component cp,
                                       java.awt.Window wn)

windowActivated

public void windowActivated(java.awt.event.WindowEvent windowevent)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent windowevent)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent windowevent)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent windowevent)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent windowevent)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent windowevent)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener