org.apache.pivot.wtk
Class Alert

java.lang.Object
  extended by org.apache.pivot.wtk.Component
      extended by org.apache.pivot.wtk.Container
          extended by org.apache.pivot.wtk.Window
              extended by org.apache.pivot.wtk.Frame
                  extended by org.apache.pivot.wtk.Dialog
                      extended by org.apache.pivot.wtk.Alert
All Implemented Interfaces:
Iterable<Component>, Sequence<Component>, ConstrainedVisual, Visual

public class Alert
extends Dialog

Class representing an "alert", a dialog commonly used to perform simple user interaction.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Window
Window.ActionMapping, Window.ActionMappingSequence, Window.Skin
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree<T>
 
Constructor Summary
Alert(MessageType type, String message, Sequence<?> options)
           
Alert(MessageType type, String message, Sequence<?> options, Component body)
           
 
Method Summary
static void alert(MessageType messageType, String message, Component body, Display display)
           
static void alert(MessageType messageType, String message, Component body, Display display, DialogCloseListener dialogCloseListener)
           
static void alert(MessageType messageType, String message, Component body, Window owner)
           
static void alert(MessageType messageType, String message, Component body, Window owner, DialogCloseListener dialogCloseListener)
           
static void alert(MessageType messageType, String message, Display display)
           
static void alert(MessageType messageType, String message, Window owner)
           
static void alert(String message, Display display)
           
static void alert(String message, Window owner)
           
 ListenerList<AlertListener> getAlertListeners()
           
 Component getBody()
           
 String getMessage()
           
 MessageType getMessageType()
           
 Object getOption(int index)
           
 int getOptionCount()
           
 int getSelectedOption()
           
 void setSelectedOption(int selectedOption)
           
 
Methods inherited from class org.apache.pivot.wtk.Dialog
close, close, getDialogCloseListener, getDialogStateListeners, getResult, isClosing, isModal, open, open, open, open
 
Methods inherited from class org.apache.pivot.wtk.Frame
descendantGainedFocus, descendantLostFocus, getFrameListeners, getMenuBar, moveToFront, remove, setMenuBar
 
Methods inherited from class org.apache.pivot.wtk.Window
align, align, clearActive, clearFocusDescendant, descendantRemoved, getActionMappings, getActiveWindow, getClientArea, getContent, getFocusDescendant, getIcon, getOwnedWindow, getOwnedWindowCount, getOwner, getRootOwner, getTitle, getWindowActionMappingListeners, getWindowClassListeners, getWindowListeners, getWindowStateListeners, isActive, isClosed, isMaximized, isOpen, isOpening, isOwner, keyReleased, moveToBack, open, open, requestActive, setActive, setContent, setEnabled, setIcon, setIcon, setIcon, setMaximized, setParent, setTitle, setVisible
 
Methods inherited from class org.apache.pivot.wtk.Container
add, clear, containsFocus, descendantAdded, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setContextKey, setFocusTraversalPolicy, store, transferFocus, update
 
Methods inherited from class org.apache.pivot.wtk.Component
clearFocus, getAttributes, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHeight, getLocation, getMaximumPreferredHeight, getMaximumPreferredWidth, getMenuHandler, getMinimumPreferredHeight, getMinimumPreferredWidth, getParent, getPreferredHeight, getPreferredHeight, getPreferredHeightLimits, getPreferredSize, getPreferredWidth, getPreferredWidth, getPreferredWidthLimits, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installThemeSkin, invalidate, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyTyped, load, mapPointFromAncestor, mapPointToAncestor, mouseOver, reenterMouse, repaint, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setAutomationID, setCursor, setCursor, setDragSource, setDropTarget, setHeight, setLocation, setLocation, setMaximumPreferredHeight, setMaximumPreferredWidth, setMenuHandler, setMinimumPreferredHeight, setMinimumPreferredWidth, setPreferredHeight, setPreferredHeightLimits, setPreferredHeightLimits, setPreferredSize, setPreferredSize, setPreferredWidth, setPreferredWidthLimits, setPreferredWidthLimits, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setWidth, setX, setY, store, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Alert

public Alert(MessageType type,
             String message,
             Sequence<?> options)

Alert

public Alert(MessageType type,
             String message,
             Sequence<?> options,
             Component body)
Method Detail

getMessageType

public MessageType getMessageType()

getMessage

public String getMessage()

getOption

public Object getOption(int index)

getOptionCount

public int getOptionCount()

getBody

public Component getBody()

getSelectedOption

public int getSelectedOption()

setSelectedOption

public void setSelectedOption(int selectedOption)

getAlertListeners

public ListenerList<AlertListener> getAlertListeners()

alert

public static void alert(String message,
                         Display display)

alert

public static void alert(MessageType messageType,
                         String message,
                         Display display)

alert

public static void alert(MessageType messageType,
                         String message,
                         Component body,
                         Display display)

alert

public static void alert(MessageType messageType,
                         String message,
                         Component body,
                         Display display,
                         DialogCloseListener dialogCloseListener)

alert

public static void alert(String message,
                         Window owner)

alert

public static void alert(MessageType messageType,
                         String message,
                         Window owner)

alert

public static void alert(MessageType messageType,
                         String message,
                         Component body,
                         Window owner)

alert

public static void alert(MessageType messageType,
                         String message,
                         Component body,
                         Window owner,
                         DialogCloseListener dialogCloseListener)