| java.lang.Object org.wings.SComponent org.wings.SContainer org.wings.SForm org.wings.SWindow org.wings.SDialog org.wings.SOptionPane
SOptionPane | public class SOptionPane extends SDialog implements ActionListener(Code) | | An immodal dialog component offering several options for selection (like Yes/No, etc.)
author: Armin Haaf |
Constructor Summary | |
public | SOptionPane() | public | SOptionPane(Object message) | public | SOptionPane(Object message, int messageType) | public | SOptionPane(Object message, int messageType, int optionType) Creates an instance of JOptionPane to display a message
with the specified message type and options. | public | SOptionPane(Object message, int messageType, int optionType, SIcon icon) Creates an instance of JOptionPane to display a message
with the specified message type, options, and icon. | public | SOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options) Creates an instance of JOptionPane to display a message
with the specified message type, icon, and options. | public | SOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options, Object initialValue) Creates an instance of JOptionPane to display a message
with the specified message type, icon, and options, with the
initially-selected option specified. |
Method Summary | |
public void | actionPerformed(ActionEvent e) | final protected SButton | createButton(String label) | protected void | fireActionPerformed(String pActionCommand) | public Object | getInputValue() | public int | getMessageType() Returns the message type. | final public Object | getValue() | protected void | resetOptions() | public void | setCG(OptionPaneCG cg) | public void | setMessageType(int newType) Sets the option pane's message type. | public void | setOptionType(int newType) | public void | setOptions(Object[] options) | public static void | showConfirmDialog(SComponent parent, Object message, String title) | public static void | showConfirmDialog(SComponent parent, Object message, String title, ActionListener al) | public static void | showConfirmDialog(SComponent parent, Object message, String title, int type) | public static void | showConfirmDialog(SComponent parent, Object message, String title, int type, ActionListener al) | public static void | showConfirmDialog(SComponent parent, Object message, String title, int type, ActionListener al, SLayoutManager layout) | public void | showInput(SComponent parent, Object message, SComponent inputElement, String title) | public static void | showInputDialog(SComponent parent, Object question, String title, SComponent inputElement, ActionListener al) | public static void | showInputDialog(SComponent parent, Object question, String title, int messageType, SComponent inputElement, ActionListener al) | public static void | showMessageDialog(SComponent parent, Object message) | public static void | showMessageDialog(SComponent parent, Object message, String title) | public static void | showMessageDialog(SComponent parent, Object message, ActionListener al) | public static void | showMessageDialog(SComponent parent, Object message, String title, int messageType) | public static void | showMessageDialog(SComponent parent, Object message, String title, int messageType, ActionListener al) | public void | showOption(SComponent c, String title, Object message) | public void | showPlainMessage(SComponent parent, Object message, String title) | public static void | showPlainMessageDialog(SComponent parent, Object message) | public static void | showPlainMessageDialog(SComponent parent, Object message, String title) | public static void | showPlainMessageDialog(SComponent parent, Object message, ActionListener al) | public static void | showPlainMessageDialog(SComponent parent, Object message, String title, ActionListener al) | public static void | showPlainQuestionDialog(SComponent parent, Object question, String title, ActionListener al) | public void | showQuestion(SComponent parent, Object message, String title) | public void | showQuestion(SComponent parent, Object question, String title, int type) | public static void | showQuestionDialog(SComponent parent, Object question, String title, ActionListener al) | public void | showYesNo(SComponent parent, Object question, String title) | public static void | showYesNoDialog(SComponent parent, Object question, String title, ActionListener al) |
CANCEL_ACTION | final public static String CANCEL_ACTION(Code) | | Action Performed Value if Cancel is choosen
|
CANCEL_OPTION | final public static int CANCEL_OPTION(Code) | | Return value if Cancel is choosen
|
DEFAULT_OPTION | final public static int DEFAULT_OPTION(Code) | | Type meaning look and feel should not supply any options -- only
use the options from the JOptionPane.
|
ERROR_MESSAGE | final public static int ERROR_MESSAGE(Code) | | |
INFORMATION_MESSAGE | final public static int INFORMATION_MESSAGE(Code) | | |
NO_ACTION | final public static String NO_ACTION(Code) | | Action Performed Value if No is choosen
|
NO_OPTION | final public static int NO_OPTION(Code) | | Return value if no is choosen
|
OK_ACTION | final public static String OK_ACTION(Code) | | Action Performed Value if Ok is choosen
|
OK_CANCEL_OPTION | final public static int OK_CANCEL_OPTION(Code) | | Used for showConfirmDialog.
|
OK_CANCEL_RESET_OPTION | final public static int OK_CANCEL_RESET_OPTION(Code) | | Used for showConfirmDialog.
|
OK_OPTION | final public static int OK_OPTION(Code) | | Return value if Ok is choosen
|
PLAIN_MESSAGE | final public static int PLAIN_MESSAGE(Code) | | |
QUESTION_MESSAGE | final public static int QUESTION_MESSAGE(Code) | | |
RESET_OPTION | final public static int RESET_OPTION(Code) | | |
UNKNOWN_ACTION | final public static String UNKNOWN_ACTION(Code) | | Action Performed Value Unknow
|
WARNING_IMAGE | final public static SIcon WARNING_IMAGE(Code) | | Icon for Warning Dialog
|
WARNING_MESSAGE | final public static int WARNING_MESSAGE(Code) | | |
YES_ACTION | final public static String YES_ACTION(Code) | | Action Performed Value if Yes is Choosen
|
YES_NO_CANCEL_OPTION | final public static int YES_NO_CANCEL_OPTION(Code) | | Used for showConfirmDialog.
|
YES_NO_CANCEL_RESET_OPTION | final public static int YES_NO_CANCEL_RESET_OPTION(Code) | | Used for showConfirmDialog.
|
YES_NO_OPTION | final public static int YES_NO_OPTION(Code) | | Used for showConfirmDialog.
|
YES_NO_RESET_OPTION | final public static int YES_NO_RESET_OPTION(Code) | | Used for showConfirmDialog.
|
YES_OPTION | final public static int YES_OPTION(Code) | | Return Value if Yes is choosen
|
messageType | protected int messageType(Code) | | |
optionButtons | final protected SContainer optionButtons(Code) | | Panel with Option Buttons
|
optionCancel | final protected SButton optionCancel(Code) | | Cancel Button
|
SOptionPane | public SOptionPane()(Code) | | Default Constructor for SOptionPane
Against the Standard Swing Implementation there is no Standard Message
|
SOptionPane | public SOptionPane(Object message, int messageType)(Code) | | |
SOptionPane | public SOptionPane(Object message, int messageType, int optionType)(Code) | | Creates an instance of JOptionPane to display a message
with the specified message type and options.
Parameters: message - the Object to display Parameters: messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION |
SOptionPane | public SOptionPane(Object message, int messageType, int optionType, SIcon icon)(Code) | | Creates an instance of JOptionPane to display a message
with the specified message type, options, and icon.
Parameters: message - the Object to display Parameters: messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION Parameters: icon - the Icon image to display |
SOptionPane | public SOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options)(Code) | | Creates an instance of JOptionPane to display a message
with the specified message type, icon, and options.
None of the options is initially selected.
The options objects should contain either instances of
Component s, (which are added directly) or
Strings (which are wrapped in a JButton ).
If you provide Component s, you must ensure that when the
Component is clicked it messages setValue
in the created JOptionPane .
Parameters: message - the Object to display Parameters: messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION; only meaningful if theoptions parameter is null Parameters: icon - the Icon image to display Parameters: options - the choices the user can select |
SOptionPane | public SOptionPane(Object message, int messageType, int optionType, SIcon icon, Object[] options, Object initialValue)(Code) | | Creates an instance of JOptionPane to display a message
with the specified message type, icon, and options, with the
initially-selected option specified.
Parameters: message - the Object to display Parameters: messageType - the type of message to be displayed:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: optionType - the options to display in the pane:DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTIONOK_CANCEL_OPTION; only meaningful if theoptions parameter is null Parameters: icon - the Icon image to display Parameters: options - the choices the user can select Parameters: initialValue - the choice that is initially selected |
fireActionPerformed | protected void fireActionPerformed(String pActionCommand)(Code) | | |
resetOptions | protected void resetOptions()(Code) | | |
setMessageType | public void setMessageType(int newType)(Code) | | Sets the option pane's message type.
Dependent to the MessageType there wil be displayed a different Message Label
Parameters: newType - an integer specifying the kind of message to display:ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE,QUESTION_MESSAGE, or PLAIN_MESSAGEdescription: The option pane's message type. |
setOptionType | public void setOptionType(int newType)(Code) | | |
Methods inherited from org.wings.SContainer | public SComponent add(SComponent c)(Code)(Java Doc) public void add(SComponent c, Object constraint)(Code)(Java Doc) public SComponent add(SComponent c, int index)(Code)(Java Doc) public void add(SComponent c, Object constraint, int index)(Code)(Java Doc) public SComponent addComponent(SComponent c)(Code)(Java Doc) public SComponent addComponent(SComponent c, Object constraint)(Code)(Java Doc) public SComponent addComponent(SComponent c, int index)(Code)(Java Doc) public SComponent addComponent(SComponent c, Object constraint, int index)(Code)(Java Doc) public void addContainerListener(SContainerListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected void fireContainerEvent(int type, SComponent comp)(Code)(Java Doc) public SComponent getComponent(int i)(Code)(Java Doc) public int getComponentCount()(Code)(Java Doc) protected ArrayList getComponentList()(Code)(Java Doc) public SComponent[] getComponents()(Code)(Java Doc) public Object getConstraintAt(int i)(Code)(Java Doc) protected ArrayList getConstraintList()(Code)(Java Doc) public SLayoutManager getLayout()(Code)(Java Doc) public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc) public void inviteEachComponent(ComponentVisitor visitor) throws Exception(Code)(Java Doc) protected boolean isShowingChildren()(Code)(Java Doc) protected void processContainerEvent(SContainerListener listener, SContainerEvent e)(Code)(Java Doc) public void remove(SComponent c)(Code)(Java Doc) public void remove(int index)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public void removeContainerListener(SContainerListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void setCG(ContainerCG cg)(Code)(Java Doc) public void setLayout(SLayoutManager l)(Code)(Java Doc) protected void setParentFrame(SFrame f)(Code)(Java Doc) public void updateCG()(Code)(Java Doc)
|
Methods inherited from org.wings.SComponent | final public void addComponentListener(SComponentListener l)(Code)(Java Doc) public void addDynamicStyle(Style style)(Code)(Java Doc) final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void addScriptListener(ScriptListener listener)(Code)(Java Doc) public void addStyle(String additionalCssClassName)(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc) public void fireFinalEvents()(Code)(Java Doc) protected void fireKeyEvents()(Code)(Java Doc) final public void fireRenderEvent(int type)(Code)(Java Doc) public ActionMap getActionMap()(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public SBorder getBorder()(Code)(Java Doc) public ComponentCG getCG()(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) public SPopupMenu getComponentPopupMenu()(Code)(Java Doc) public Style getDynamicStyle(Selector selector)(Code)(Java Doc) public Collection getDynamicStyles()(Code)(Java Doc) public int getFocusTraversalIndex()(Code)(Java Doc) public SFont getFont()(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public int getHorizontalAlignment()(Code)(Java Doc) public InputMap getInputMap()(Code)(Java Doc) public InputMap getInputMap(int condition)(Code)(Java Doc) final protected int getListenerCount(Class type)(Code)(Java Doc) final protected Object[] getListenerList()(Code)(Java Doc) final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc) public String getLowLevelEventId()(Code)(Java Doc) final public String getName()(Code)(Java Doc) final public SContainer getParent()(Code)(Java Doc) public SFrame getParentFrame()(Code)(Java Doc) public SDimension getPreferredSize()(Code)(Java Doc) public RequestURL getRequestURL()(Code)(Java Doc) public boolean getResidesInForm()(Code)(Java Doc) public List<ScriptListener> getScriptListenerList()(Code)(Java Doc) public ScriptListener[] getScriptListeners()(Code)(Java Doc) final public Session getSession()(Code)(Java Doc) public boolean getShowAsFormComponent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public int getVerticalAlignment()(Code)(Java Doc) public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc) protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isFocusOwner()(Code)(Java Doc) public boolean isRecursivelyVisible()(Code)(Java Doc) public boolean isReloadForced()(Code)(Java Doc) protected boolean isUpdatePossible()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected String paramString()(Code)(Java Doc) protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc) protected boolean processKeyEvents(String[] values)(Code)(Java Doc) protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) final void register()(Code)(Java Doc) public void reload()(Code)(Java Doc) final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc) final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc) final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc) final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc) final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc) final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc) final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc) final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc) final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc) final public void removeComponentListener(SComponentListener l)(Code)(Java Doc) public void removeDynamicStyle(Selector selector)(Code)(Java Doc) final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc) public void removeStyle(String cssStyleClassName)(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) public void setActionMap(ActionMap actionMap)(Code)(Java Doc) public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc) public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc) public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc) public void setBackground(Color color)(Code)(Java Doc) public void setBorder(SBorder border)(Code)(Java Doc) public void setCG(ComponentCG newCG)(Code)(Java Doc) public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc) public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalIndex(int index)(Code)(Java Doc) public void setFont(SFont font)(Code)(Java Doc) public void setForeground(Color color)(Code)(Java Doc) public void setHorizontalAlignment(int alignment)(Code)(Java Doc) public void setInputMap(InputMap inputMap)(Code)(Java Doc) public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc) public void setName(String uniqueName)(Code)(Java Doc) public void setNameRaw(String uncheckedName)(Code)(Java Doc) public void setParent(SContainer parent)(Code)(Java Doc) protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc) public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc) public void setReloadForced(boolean forced)(Code)(Java Doc) public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc) public void setStyle(String cssClassName)(Code)(Java Doc) public void setToolTipText(String t)(Code)(Java Doc) public void setVerticalAlignment(int alignment)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public String toString()(Code)(Java Doc) final void unregister()(Code)(Java Doc) public void update(Update update)(Code)(Java Doc) public void updateCG()(Code)(Java Doc) public void write(Device s) throws IOException(Code)(Java Doc)
|
|
|