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.IconMessagePanel

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

public class IconMessagePanel
extends MessagePanel
The IconMessagePanel implements the forms of the XmMessageBox which have icons - ie. those where it XmNdialogType resource is set to XmDIALOG_ERROR, XmDIALOG_INFORMATION, XmDIALOG_QUESTION, XmDIALOG_WARNING, or XmDIALOG_WORKING. A set of standard icons are provided; other Components can be used in their place for a less Motif-y look.

See Also:
Serialized Form

Field Summary
static java.awt.Component kErrorIcon
          A standard icon component for error dialogs
static java.awt.Component kInfoIcon
          A standard icon component for information dialogs
static java.awt.Component kQuestionIcon
          A standard icon component for question dialogs
static java.awt.Component kWarningIcon
          A standard icon component for warning dialogs
static java.awt.Component kWorkingIcon
          A standard icon component for working dialogs
 
Fields inherited from class uk.co.ist.mwt.MessagePanel
CANCEL_EVENT, FIRST_EVENT, HELP_EVENT, LAST_EVENT, OK_EVENT
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
IconMessagePanel()
          Constructs a new IconMessagePanel with default settings
 
Method Summary
java.awt.Component getIcon()
          Gets the icon component for this Panel
void setIcon(java.awt.Component icon)
          Sets the icon component for this Panel
 
Methods inherited from class uk.co.ist.mwt.MessagePanel
action, add
 
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

kErrorIcon

public static java.awt.Component kErrorIcon
A standard icon component for error dialogs

kInfoIcon

public static java.awt.Component kInfoIcon
A standard icon component for information dialogs

kQuestionIcon

public static java.awt.Component kQuestionIcon
A standard icon component for question dialogs

kWarningIcon

public static java.awt.Component kWarningIcon
A standard icon component for warning dialogs

kWorkingIcon

public static java.awt.Component kWorkingIcon
A standard icon component for working dialogs
Constructor Detail

IconMessagePanel

public IconMessagePanel()
Constructs a new IconMessagePanel with default settings
Method Detail

setIcon

public void setIcon(java.awt.Component icon)
Sets the icon component for this Panel
Parameters:
icon - the component to use

getIcon

public java.awt.Component getIcon()
Gets the icon component for this Panel
Returns:
the component or null if the layout has been changed to a non-IconDlogTemplateLayout.

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