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

@DefaultProperty(value="body")
public class Alert
extends Dialog

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


Nested Class Summary
 class Alert.OptionSequence
          Option sequence implementation.
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Window
Window.ActionMapping, Window.ActionMappingSequence, Window.IconImageSequence, Window.Skin
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container
Container.EDT_Checker
 
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()
           
Alert(MessageType messageType, String message, Sequence<?> options)
           
Alert(MessageType messageType, String message, Sequence<?> options, boolean modal)
           
Alert(MessageType messageType, String message, Sequence<?> options, Component body)
           
Alert(MessageType messageType, String message, Sequence<?> options, Component body, boolean modal)
           
Alert(String message)
           
 
Method Summary
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, String title, Component body, Window owner, DialogCloseListener dialogCloseListener)
           
static void alert(MessageType messageType, String message, Window owner)
           
static void alert(MessageType messageType, String message, Window owner, DialogCloseListener dialogCloseListener)
           
static void alert(String message, Window owner)
           
 ListenerList<AlertListener> getAlertListeners()
           
 Component getBody()
           
 String getMessage()
           
 MessageType getMessageType()
           
 Alert.OptionSequence getOptions()
           
 Object getSelectedOption()
           
 int getSelectedOptionIndex()
           
 void setBody(Component body)
           
 void setMessage(String message)
           
 void setMessageType(MessageType messageType)
           
 void setOptions(Sequence<?> options)
           
 void setOptions(String options)
           
 void setSelectedOption(Object selectedOption)
           
 void setSelectedOptionIndex(int selectedOption)
           
 
Methods inherited from class org.apache.pivot.wtk.Dialog
close, close, getDialogCloseListener, getDialogListeners, getDialogStateListeners, getResult, isClosing, isModal, open, open, open, open, setModal
 
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, getIcons, getOwnedWindow, getOwnedWindowCount, getOwner, getRootOwner, getTitle, getWindowActionMappingListeners, getWindowClassListeners, getWindowListeners, getWindowStateListeners, isActive, isBottomMost, isClosed, isMaximized, isOpen, isOpening, isOwner, isTopMost, keyPressed, moveToBack, open, open, requestActive, setActive, setContent, setEnabled, setIcon, setIcon, setMaximized, setParent, setTitle, setVisible
 
Methods inherited from class org.apache.pivot.wtk.Container
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getGraphics, getLength, getNamedComponent, indexOf, insert, invalidate, isAncestor, isDoubleBuffered, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, repaint, requestFocus, setDoubleBuffered, setEventDispatchThreadChecker, setFocusTraversalPolicy, store, transferFocus, update
 
Methods inherited from class org.apache.pivot.wtk.Component
clearFocus, contains, getAncestor, getAncestor, getAttribute, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getComponentStyleListeners, getComponentTooltipListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getHeight, getHeightLimits, getLocation, getMaximumHeight, getMaximumWidth, getMenuHandler, getMinimumHeight, getMinimumWidth, getMouseLocation, getName, getNamedStyles, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipDelay, getTooltipText, getTooltipWrapText, getTypedStyles, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWidthLimits, getWindow, getX, getY, indexBoundsCheck, installSkin, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyReleased, keyTyped, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseOver, reenterMouse, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, setCursor, setDragSource, setDropTarget, setFocused, setHeight, setHeightLimits, setHeightLimits, setLocation, setLocation, setMaximumHeight, setMaximumWidth, setMenuHandler, setMinimumHeight, setMinimumWidth, setName, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyleName, setStyleNames, setStyleNames, setStyles, setStyles, setTooltipDelay, setTooltipText, setTooltipWrapText, setWidth, setWidthLimits, setWidthLimits, setX, setY, 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()

Alert

public Alert(String message)

Alert

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

Alert

public Alert(MessageType messageType,
             String message,
             Sequence<?> options,
             boolean modal)

Alert

public Alert(MessageType messageType,
             String message,
             Sequence<?> options,
             Component body)

Alert

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

getMessageType

public MessageType getMessageType()

setMessageType

public void setMessageType(MessageType messageType)

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getBody

public Component getBody()

setBody

public void setBody(Component body)

getOptions

public Alert.OptionSequence getOptions()

setOptions

public void setOptions(Sequence<?> options)

setOptions

public void setOptions(String options)

getSelectedOptionIndex

public int getSelectedOptionIndex()

setSelectedOptionIndex

public void setSelectedOptionIndex(int selectedOption)

getSelectedOption

public Object getSelectedOption()

setSelectedOption

public void setSelectedOption(Object selectedOption)

getAlertListeners

public ListenerList<AlertListener> getAlertListeners()

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,
                         Window owner,
                         DialogCloseListener dialogCloseListener)

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)

alert

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