| org.osbl.client.wings.XOptionPane
XOptionPane | public class XOptionPane extends SDialog implements ActionListener(Code) | | An immodal dialog contentPane offering several options for selection (like Yes/No, etc.)
author: Armin Haaf version: $Revision: 2752 $ |
Constructor Summary | |
public | XOptionPane() | public | XOptionPane(Object message) | public | XOptionPane(Object message, int messageType) | public | XOptionPane(Object message, int messageType, int optionType) Creates an instance of JOptionPane to display a message
with the specified message type and options. | public | XOptionPane(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 | XOptionPane(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 | XOptionPane(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) | protected XButton | createLocalizedButton(String key) | protected void | fireActionPerformed(String pActionCommand) | public Object | getInputValue() | public int | getMessageType() Returns the message type. | 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, 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_MESSAGE | final public static int WARNING_MESSAGE(Code) | | |
YES_ACTION | final public static String YES_ACTION(Code) | | Actionb 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
|
customButtons | SContainer customButtons(Code) | | |
empty | final SBorder empty(Code) | | |
icon | protected SIcon icon(Code) | | |
imageLabel | final protected SLabel imageLabel(Code) | | |
messageType | protected int messageType(Code) | | |
optionButtons | final protected SContainer optionButtons(Code) | | Panel with Option Buttons
|
optionCancel | final protected XButton optionCancel(Code) | | Cancel Button
|
XOptionPane | public XOptionPane()(Code) | | Default Constructor for XOptionPane
Against the Standard Swing Implementation there is no Standard Message
|
XOptionPane | public XOptionPane(Object message, int messageType)(Code) | | |
XOptionPane | public XOptionPane(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 |
XOptionPane | public XOptionPane(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 |
XOptionPane | public XOptionPane(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 |
XOptionPane | public XOptionPane(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 |
createLocalizedButton | protected XButton createLocalizedButton(String key)(Code) | | Generic Button creation
|
fireActionPerformed | protected void fireActionPerformed(String pActionCommand)(Code) | | |
resetOptions | protected void resetOptions()(Code) | | |
setCG | public void setCG(OptionPaneCG cg)(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) | | |
showConfirmDialog | public static void showConfirmDialog(SComponent parent, Object message, String title)(Code) | | |
showConfirmDialog | public static void showConfirmDialog(SComponent parent, Object message, String title, int type)(Code) | | |
showConfirmDialog | public static void showConfirmDialog(SComponent parent, Object message, String title, int type, ActionListener al, SLayoutManager layout)(Code) | | |
showInput | public void showInput(SComponent parent, Object message, SComponent inputElement, String title)(Code) | | |
showInputDialog | public static void showInputDialog(SComponent parent, Object question, String title, int messageType, SComponent inputElement, ActionListener al)(Code) | | |
showMessageDialog | public static void showMessageDialog(SComponent parent, Object message)(Code) | | |
showMessageDialog | public static void showMessageDialog(SComponent parent, Object message, String title)(Code) | | |
showPlainMessage | public void showPlainMessage(SComponent parent, Object message, String title)(Code) | | |
showPlainMessageDialog | public static void showPlainMessageDialog(SComponent parent, Object message)(Code) | | |
showPlainMessageDialog | public static void showPlainMessageDialog(SComponent parent, Object message, String title)(Code) | | |
showQuestion | public void showQuestion(SComponent parent, Object message, String title)(Code) | | |
showQuestion | public void showQuestion(SComponent parent, Object question, String title, int type)(Code) | | |
|
|