org.apache.pivot.wtk
Class Alert
java.lang.Object
org.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.Window
org.apache.pivot.wtk.Frame
org.apache.pivot.wtk.Dialog
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 facilitate simple
user interaction.
Constructor Summary |
Alert()
|
Alert(MessageType type,
String message,
Sequence<?> options)
|
Alert(MessageType type,
String message,
Sequence<?> options,
boolean modal)
|
Alert(MessageType type,
String message,
Sequence<?> options,
Component body)
|
Alert(MessageType messageType,
String message,
Sequence<?> options,
Component body,
boolean modal)
|
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(MessageType messageType,
String message,
Window owner,
DialogCloseListener dialogCloseListener)
|
static void |
alert(String message,
Display display)
|
static void |
alert(String message,
Window owner)
|
ListenerList<AlertListener> |
getAlertListeners()
|
Component |
getBody()
|
String |
getMessage()
|
MessageType |
getMessageType()
|
Alert.OptionSequence |
getOptions()
|
int |
getSelectedOption()
|
void |
setBody(Component body)
|
void |
setMessage(String message)
|
void |
setMessageType(MessageType messageType)
|
void |
setOptions(String options)
|
void |
setSelectedOption(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.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, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setFocusTraversalPolicy, store, transferFocus, update |
Methods inherited from class org.apache.pivot.wtk.Component |
clearFocus, getAncestor, getAttribute, 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, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseOver, reenterMouse, repaint, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, 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, toString, transferFocus, validate |
Alert
public Alert()
Alert
public Alert(MessageType type,
String message,
Sequence<?> options)
Alert
public Alert(MessageType type,
String message,
Sequence<?> options,
boolean modal)
Alert
public Alert(MessageType type,
String message,
Sequence<?> options,
Component body)
Alert
public Alert(MessageType messageType,
String message,
Sequence<?> options,
Component body,
boolean modal)
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(String options)
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,
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)