Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.loihl.swing
Class InfoDialog  view InfoDialog download InfoDialog.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bycom.loihl.swing.InfoDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.awt.event.WindowListener

public class InfoDialog
extends java.awt.Dialog
implements java.awt.event.ActionListener, java.awt.event.WindowListener


Nested Class Summary
 
Nested classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  int m_HEIGHT
           
private  java.lang.String m_Message
           
private  java.awt.Label m_MessageLabel
           
private  java.awt.Button m_OKButton
           
private  int m_WIDTH
           
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
InfoDialog(java.awt.Frame parent, java.lang.String infoMessage)
          InfoDialog constructor: Handle simple reference to the Frame passed in.
InfoDialog(java.awt.Frame parent, java.lang.String infoMessage, boolean modal)
          InfoDialog constructor: Establishes title from the Frame parent, Allows the modal setting of java.awt.Dialog to be determined by user.
InfoDialog(java.awt.Frame parent, java.lang.String programName, java.lang.String infoMessage, boolean modal)
          InfoDialog constructor: Full constructor that allows setting of program name separate from the parent Frame's title.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Method:actionPerformed Description: actionEvent handler for InfoDialog Class
private  java.awt.Label getMessageLabel()
          Method: getMessageLabel Description: Return the m_MessageLabel object for this InfoDialog object.
private  java.awt.Button getOKButton()
          Method: getOKButton Description: Return the m_OKButton object for this InfoDialog object.
private  void initConnections()
          Method: initConnections Description: Add event Listeners to this InfoDialog
private  void initialize()
          Method:initialise Description:Build the dialog window and be ready to display it.
 void windowActivated(java.awt.event.WindowEvent e)
          Method: windowActivated Description: Method to handle windowActivated events for the WindowListener interface.
 void windowClosed(java.awt.event.WindowEvent e)
          Method:windowClosed Description: Method to handle windowClosed events for the WindowListener interface.
 void windowClosing(java.awt.event.WindowEvent e)
          Method: windowClosing Description: Method to handle windowClosing events for the WindowListener interface.
 void windowDeactivated(java.awt.event.WindowEvent e)
          Method: windowActivated Description: Method to handle windowActivated events for the WindowListener interface.
 void windowDeiconified(java.awt.event.WindowEvent e)
          Method: windowDeiconified Description: Method to handle windowDeiconified events for the WindowListener interface.
 void windowIconified(java.awt.event.WindowEvent e)
          Method: windowIconified Description: Method to handle windowIconified events for the WindowListener interface.
 void windowOpened(java.awt.event.WindowEvent e)
          Method: windowOpened Description: Method to handle windowOpened events for the WindowListener interface.
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_MessageLabel

private java.awt.Label m_MessageLabel

m_OKButton

private java.awt.Button m_OKButton

m_Message

private java.lang.String m_Message

m_WIDTH

private final int m_WIDTH
See Also:
Constant Field Values

m_HEIGHT

private final int m_HEIGHT
See Also:
Constant Field Values
Constructor Detail

InfoDialog

public InfoDialog(java.awt.Frame parent,
                  java.lang.String infoMessage)
InfoDialog constructor: Handle simple reference to the Frame passed in. Defaults to modal window


InfoDialog

public InfoDialog(java.awt.Frame parent,
                  java.lang.String infoMessage,
                  boolean modal)
InfoDialog constructor: Establishes title from the Frame parent, Allows the modal setting of java.awt.Dialog to be determined by user.


InfoDialog

public InfoDialog(java.awt.Frame parent,
                  java.lang.String programName,
                  java.lang.String infoMessage,
                  boolean modal)
InfoDialog constructor: Full constructor that allows setting of program name separate from the parent Frame's title.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Method:actionPerformed Description: actionEvent handler for InfoDialog Class

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getOKButton

private java.awt.Button getOKButton()
Method: getOKButton Description: Return the m_OKButton object for this InfoDialog object. Creates it if it doesn't already exist.


getMessageLabel

private java.awt.Label getMessageLabel()
Method: getMessageLabel Description: Return the m_MessageLabel object for this InfoDialog object. Creates it if it doesn't already exist.


initConnections

private void initConnections()
Method: initConnections Description: Add event Listeners to this InfoDialog


initialize

private void initialize()
Method:initialise Description:Build the dialog window and be ready to display it.


windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Method: windowActivated Description: Method to handle windowActivated events for the WindowListener interface.

Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Method:windowClosed Description: Method to handle windowClosed events for the WindowListener interface.

Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Method: windowClosing Description: Method to handle windowClosing events for the WindowListener interface.

Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Method: windowActivated Description: Method to handle windowActivated events for the WindowListener interface.

Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Method: windowDeiconified Description: Method to handle windowDeiconified events for the WindowListener interface.

Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Method: windowIconified Description: Method to handle windowIconified events for the WindowListener interface.

Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Method: windowOpened Description: Method to handle windowOpened events for the WindowListener interface.

Specified by:
windowOpened in interface java.awt.event.WindowListener