pivot.wtk
Class Alert
java.lang.Object
pivot.wtk.Component
pivot.wtk.Container
pivot.wtk.Window
pivot.wtk.Frame
pivot.wtk.Dialog
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.
- Author:
- tvolkert, gbrown
Method Summary |
static void |
alert(MessageType type,
String message,
Display display)
|
static void |
alert(MessageType type,
String message,
Display display,
DialogCloseListener dialogCloseListener)
|
static void |
alert(MessageType type,
String message,
Window owner)
|
static void |
alert(MessageType type,
String message,
Window owner,
DialogCloseListener dialogCloseListener)
|
static void |
alert(String message,
Display display)
|
static void |
alert(String message,
Display display,
DialogCloseListener dialogCloseListener)
|
static void |
alert(String message,
Window owner)
|
static void |
alert(String message,
Window owner,
DialogCloseListener dialogCloseListener)
|
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 pivot.wtk.Dialog |
close, close, getDialogCloseListener, getDialogStateListeners, getDisabledOwner, getResult, isModal, open, open, open, open, open, open |
Methods inherited from class pivot.wtk.Window |
align, align, getActions, getActiveDescendant, getActiveWindow, getContent, getIcon, getOwnedWindow, getOwnedWindowCount, getOwner, getRootOwner, getTitle, getWindowClassListeners, getWindowListeners, getWindowStateListeners, isActive, isAuxilliary, isClosed, isClosing, isMaximized, isOpen, isOpening, isOwner, mouseDown, moveToBack, moveToFront, remove, setActive, setActiveDescendant, setActiveWindow, setContent, setDisplayable, setEnabled, setIcon, setIcon, setIcon, setMaximized, setOwner, setParent, setTitle |
Methods inherited from class pivot.wtk.Container |
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, isFocusable, iterator, load, mouseClick, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setContextKey, setFocusTraversalPolicy, setTooltip, setVisible, store, update, validate |
Methods inherited from class pivot.wtk.Component |
clearFocus, clearFocus, finalize, getAttributes, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentDragDropListeners, getComponentKeyListeners, getComponentLayoutListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponents, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, invalidate, isBlocked, isDisplayable, isEnabled, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, load, mapPointFromAncestor, mapPointToAncestor, mouseOver, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDragSource, setDropTarget, setFocused, setHeight, setLocation, setLocation, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setWidth, setX, setY, store, toString, transferFocus |
Alert
public Alert(MessageType type,
String message,
Sequence<?> options)
Alert
public Alert(MessageType type,
String message,
Sequence<?> options,
Component body)
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(String message,
Display display,
DialogCloseListener dialogCloseListener)
alert
public static void alert(MessageType type,
String message,
Display display)
alert
public static void alert(MessageType type,
String message,
Display display,
DialogCloseListener dialogCloseListener)
alert
public static void alert(String message,
Window owner)
alert
public static void alert(String message,
Window owner,
DialogCloseListener dialogCloseListener)
alert
public static void alert(MessageType type,
String message,
Window owner)
alert
public static void alert(MessageType type,
String message,
Window owner,
DialogCloseListener dialogCloseListener)