Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.MessagePanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--uk.co.ist.mwt.MessagePanel
Subclasses:
IconMessagePanel

public class MessagePanel
extends java.awt.Panel
The MessagePanel implements a Panel which behaves like an XmMessageBox with the XmNdialogType resource set to XmDIALOG_MESSAGE. It is used as a subclass for all other XmMessageBox types except XmDIALOG_TEMPLATE, which is implemented as a layout manager (DlogTemplateLayout) and is used by this component.

See Also:
Serialized Form

Field Summary
static int CANCEL_EVENT
          The event ID for the event fired when the 'cancel' button is pressed.
static int FIRST_EVENT
          The first event ID used by this component class
static int HELP_EVENT
          The event ID for the event fired when the 'help' button is pressed.
static int LAST_EVENT
          The last event ID used by this component class
static int OK_EVENT
          The event ID for the event fired when the 'OK' button is pressed.
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
MessagePanel()
          Constructor - creates appropriate subcomponents
 
Method Summary
boolean action(java.awt.Event evt, java.lang.Object closure)
          Action handler; posts events to state that the various auto-generated buttons have been pressed
java.awt.Component add(java.awt.Component comp)
          Adds a component; if it's a button, puts it in the correct place.
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, preferredSize, printComponents, print, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

FIRST_EVENT

public static final int FIRST_EVENT
The first event ID used by this component class

OK_EVENT

public static final int OK_EVENT
The event ID for the event fired when the 'OK' button is pressed.

CANCEL_EVENT

public static final int CANCEL_EVENT
The event ID for the event fired when the 'cancel' button is pressed.

HELP_EVENT

public static final int HELP_EVENT
The event ID for the event fired when the 'help' button is pressed.

LAST_EVENT

public static final int LAST_EVENT
The last event ID used by this component class
Constructor Detail

MessagePanel

public MessagePanel()
Constructor - creates appropriate subcomponents
Method Detail

action

public boolean action(java.awt.Event evt,
                      java.lang.Object closure)
Action handler; posts events to state that the various auto-generated buttons have been pressed
Overrides:
action in class java.awt.Component

add

public java.awt.Component add(java.awt.Component comp)
Adds a component; if it's a button, puts it in the correct place. Otherwise just adds it as normal.
Overrides:
add in class java.awt.Container

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD