Package org.apache.pivot.wtk
Class Prompt
- java.lang.Object
-
- org.apache.pivot.wtk.Component
-
- org.apache.pivot.wtk.Container
-
- org.apache.pivot.wtk.Window
-
- org.apache.pivot.wtk.Sheet
-
- org.apache.pivot.wtk.Prompt
-
- All Implemented Interfaces:
java.lang.Iterable<Component>
,Sequence<Component>
,ConstrainedVisual
,Visual
@DefaultProperty("body") public class Prompt extends Sheet
Class representing a "prompt", a sheet commonly used to facilitate simple user interaction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Prompt.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.EDTChecker
-
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
Constructors Constructor Description Prompt()
Prompt(java.lang.String message)
Prompt(MessageType messageType, java.lang.String message, Sequence<?> options)
Prompt(MessageType messageType, java.lang.String message, Sequence<?> options, Component body)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Component
getBody()
java.lang.String
getMessage()
MessageType
getMessageType()
Prompt.OptionSequence
getOptions()
ListenerList<PromptListener>
getPromptListeners()
java.lang.Object
getSelectedOption()
int
getSelectedOptionIndex()
static void
prompt(java.lang.String message, Window owner)
static void
prompt(MessageType messageType, java.lang.String message, Component body, Window owner)
static void
prompt(MessageType messageType, java.lang.String message, Component body, Window owner, SheetCloseListener sheetCloseListener)
static void
prompt(MessageType messageType, java.lang.String message, Window owner)
static void
prompt(MessageType messageType, java.lang.String message, Window owner, SheetCloseListener sheetCloseListener)
void
setBody(Component body)
void
setMessage(java.lang.String message)
void
setMessageType(MessageType messageType)
void
setOptions(java.lang.String options)
void
setOptions(Sequence<?> options)
void
setSelectedOption(java.lang.Object selectedOption)
void
setSelectedOptionIndex(int selectedOption)
-
Methods inherited from class org.apache.pivot.wtk.Sheet
close, close, getResult, getSheetCloseListener, getSheetStateListeners, isClosing, open, open, open
-
Methods inherited from class org.apache.pivot.wtk.Window
align, align, clearActive, clearFocusDescendant, descendantGainedFocus, 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, moveToFront, open, open, remove, 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, descendantLostFocus, 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
checkSkin, clearFocus, contains, copyStyle, copyStyle, 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, getScreenBounds, getSize, getSkin, getStyle, getStyle, getStyleBoolean, getStyleBoolean, getStyleColor, getStyleColor, getStyleFont, getStyleFont, getStyleInt, getStyleInt, getStyles, getTextInputMethodListener, 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, offsetToScreen, putStyle, putStyle, reenterMouse, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, 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
-
-
-
-
Constructor Detail
-
Prompt
public Prompt()
-
Prompt
public Prompt(java.lang.String message)
-
Prompt
public Prompt(MessageType messageType, java.lang.String message, Sequence<?> options)
-
Prompt
public Prompt(MessageType messageType, java.lang.String message, Sequence<?> options, Component body)
-
-
Method Detail
-
getMessageType
public MessageType getMessageType()
-
setMessageType
public void setMessageType(MessageType messageType)
-
getMessage
public java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
getBody
public Component getBody()
-
setBody
public void setBody(Component body)
-
getOptions
public Prompt.OptionSequence getOptions()
-
setOptions
public void setOptions(Sequence<?> options)
-
setOptions
public void setOptions(java.lang.String options)
-
getSelectedOptionIndex
public int getSelectedOptionIndex()
-
setSelectedOptionIndex
public void setSelectedOptionIndex(int selectedOption)
-
getSelectedOption
public java.lang.Object getSelectedOption()
-
setSelectedOption
public void setSelectedOption(java.lang.Object selectedOption)
-
getPromptListeners
public ListenerList<PromptListener> getPromptListeners()
-
prompt
public static void prompt(java.lang.String message, Window owner)
-
prompt
public static void prompt(MessageType messageType, java.lang.String message, Window owner)
-
prompt
public static void prompt(MessageType messageType, java.lang.String message, Window owner, SheetCloseListener sheetCloseListener)
-
prompt
public static void prompt(MessageType messageType, java.lang.String message, Component body, Window owner)
-
prompt
public static void prompt(MessageType messageType, java.lang.String message, Component body, Window owner, SheetCloseListener sheetCloseListener)
-
-