| java.lang.Object it.businesslogic.ireport.util.I18nOptionPane
I18nOptionPane | public class I18nOptionPane (Code) | | A internacionalization support for all static methods of JOptionPane.
author: Egon |
Method Summary | |
public static int | showConfirmDialog(Component parentComponent, String messageCID) Brings up a dialog with the options Yes, No and Cancel; with the title, Select an Option. | public static int | showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType) Brings up a dialog where the number of choices is determined by the optionType parameter. | public static int | showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType) Brings up a dialog where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display. | public static int | showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon) Brings up a dialog with a specified icon, where the number of choices is determined by the optionType parameter. | public static String | showInputDialog(String messageCID) Shows a question-message dialog requesting input from the user. | public static String | showInputDialog(String messageCID, String initialSelectionCIDValue) Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue. | public static String | showInputDialog(Component parentComponent, String messageCID) Shows a question-message dialog requesting input from the user parented to parentComponent. | public static String | showInputDialog(Component parentComponent, String messageCID, String initialSelectionCIDValue) Shows a question-message dialog requesting input from the user and parented to parentComponent. | public static String | showInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType) Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType. | public static String | showInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue) Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified. | public static int | showInternalConfirmDialog(Component parentComponent, String messageCID) Brings up an internal dialog panel with the options Yes, No and Cancel; with the title, Select an Option. | public static int | showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType) Brings up a internal dialog panel where the number of choices is determined by the optionType parameter. | public static int | showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType) Brings up an internal dialog panel where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display. | public static int | showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon) Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the optionType parameter. | public static String | showInternalInputDialog(Component parentComponent, String messageCID) Shows an internal question-message dialog requesting input from the user parented to parentComponent. | public static String | showInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue) Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified. | public static String | showInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType) Shows an internal dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType. | public static void | showInternalMessageDialog(Component parentComponent, String messageCID) Brings up an internal confirmation dialog panel. | public static void | showInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType) Brings up an internal dialog panel that displays a message using a default icon determined by the messageType parameter. | public static void | showInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon) Brings up a dialog displaying a message, specifying all parameters. | public static int | showInternalOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue) Brings up an internal dialog panel with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter. | public static void | showMessageDialog(Component parentComponent, String messageCID) Brings up an information-message dialog titled with the message associated with the Country ID resource bundle. | public static void | showMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType) Brings up a dialog that displays a message using a default icon determined by the messageType parameter. | public static void | showMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon) Brings up a dialog displaying a message, specifying all parameters. | public static int | showOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue) Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter. | public static int | showOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue, String firstLine) Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter. |
showConfirmDialog | public static int showConfirmDialog(Component parentComponent, String messageCID)(Code) | | Brings up a dialog with the options Yes, No and Cancel; with the title, Select an Option.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. |
showConfirmDialog | public static int showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType)(Code) | | Brings up a dialog where the number of choices is determined by the optionType parameter.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION |
showConfirmDialog | public static int showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType)(Code) | | Brings up a dialog where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display. The messageType parameter is primarily used to supply a default icon from the Look and Feel.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION Parameters: messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE |
showConfirmDialog | public static int showConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon)(Code) | | Brings up a dialog with a specified icon, where the number of choices is determined by the optionType parameter. The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION Parameters: messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the icon to display in the dialog |
showInputDialog | public static String showInputDialog(String messageCID)(Code) | | Shows a question-message dialog requesting input from the user. The dialog uses the default frame, which usually means it is centered on the screen.
Parameters: messageCID - message country identification for a message to be displayed. |
showInputDialog | public static String showInputDialog(String messageCID, String initialSelectionCIDValue)(Code) | | Shows a question-message dialog requesting input from the user, with the input value initialized to initialSelectionValue. The dialog uses the default frame, which usually means it is centered on the screen.
Parameters: messageCID - message country identification for a message to be displayed. Parameters: initialSelectionCIDValue - message country identification for the value used to initialize the input field. |
showInputDialog | public static String showInputDialog(Component parentComponent, String messageCID)(Code) | | Shows a question-message dialog requesting input from the user parented to parentComponent. The dialog is displayed on top of the Component's frame, and is usually positioned below the Component.
Parameters: messageCID - message country identification for a message to be displayed. Parameters: parentComponent - the parent Component for the dialog |
showInputDialog | public static String showInputDialog(Component parentComponent, String messageCID, String initialSelectionCIDValue)(Code) | | Shows a question-message dialog requesting input from the user and parented to parentComponent. The input value will be initialized to initialSelectionValue. The dialog is displayed on top of the Component's frame, and is usually positioned below the Component.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: initialSelectionCIDValue - message country identification for the value used to initialize the input field. |
showInputDialog | public static String showInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code) | | Shows a dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE |
showInputDialog | public static String showInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue)(Code) | | Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified. The user will able to choose from selectionValues, where null implies the user can input whatever they wish, usually by means of a JTextField. initialSelectionValue is the initial value to prompt the user with. It is up to the UI to decide how best to represent the selectionValues, but usually a JComboBox, JList, or JTextField will be used.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the Icon image to display Parameters: selectionCIDValues - message country identifications for an array of strings that gives the possible selections Parameters: initialSelectionCIDValue - message country identification for the value used to initialize the input field. |
showInternalConfirmDialog | public static int showInternalConfirmDialog(Component parentComponent, String messageCID)(Code) | | Brings up an internal dialog panel with the options Yes, No and Cancel; with the title, Select an Option.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. |
showInternalConfirmDialog | public static int showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType)(Code) | | Brings up a internal dialog panel where the number of choices is determined by the optionType parameter.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION |
showInternalConfirmDialog | public static int showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType)(Code) | | Brings up an internal dialog panel where the number of choices is determined by the optionType parameter, where the messageType parameter determines the icon to display. The messageType parameter is primarily used to supply a default icon from the Look and Feel.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION Parameters: messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE |
showInternalConfirmDialog | public static int showInternalConfirmDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon)(Code) | | Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the optionType parameter. The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: optionType - an int designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION Parameters: messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the icon to display in the dialog |
showInternalInputDialog | public static String showInternalInputDialog(Component parentComponent, String messageCID)(Code) | | Shows an internal question-message dialog requesting input from the user parented to parentComponent. The dialog is displayed in the Component's frame, and is usually positioned below the Component.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. |
showInternalInputDialog | public static String showInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon, String[] selectionCIDValues, String initialSelectionCIDValue)(Code) | | Prompts the user for input in a blocking internal dialog where the initial selection, possible selections, and all other options can be specified. The user will able to choose from selectionValues, where null implies the user can input whatever they wish, usually by means of a JTextField. initialSelectionValue is the initial value to prompt the user with. It is up to the UI to decide how best to represent the selectionValues, but usually a JComboBox, JList, or JTextField will be used.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the Icon image to display Parameters: selectionCIDValues - message country identifications for an array of strings that gives the possible selections Parameters: initialSelectionCIDValue - message country identification for the value used to initialize the input field. |
showInternalInputDialog | public static String showInternalInputDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code) | | Shows an internal dialog requesting input from the user parented to parentComponent with the dialog having the title title and message type messageType.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE |
showInternalMessageDialog | public static void showInternalMessageDialog(Component parentComponent, String messageCID)(Code) | | Brings up an internal confirmation dialog panel. The dialog is a information-message dialog titled "Message".
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. |
showInternalMessageDialog | public static void showInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code) | | Brings up an internal dialog panel that displays a message using a default icon determined by the messageType parameter.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE |
showInternalMessageDialog | public static void showInternalMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon)(Code) | | Brings up a dialog displaying a message, specifying all parameters.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the icon to display in the dialog |
showInternalOptionDialog | public static int showInternalOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue)(Code) | | Brings up an internal dialog panel with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.
If optionType is YES_NO_OPTION, or YES_NO_CANCEL_OPTION and the options parameter is null, then the options are supplied by the Look and Feel.
The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for a title to be displayed. Parameters: optionType - an integer designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION Parameters: messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the icon to display in the dialog Parameters: optionsCID - an array of message CIDs indicating the possible choices the user can make Parameters: initialCIDValue - the message CID that represents the default selection for the dialog; only meaningful if options is used; can be null an integer indicating the option chosen by the user, or CLOSED_OPTION if the user closed the dialog |
showMessageDialog | public static void showMessageDialog(Component parentComponent, String messageCID)(Code) | | Brings up an information-message dialog titled with the message associated with the Country ID resource bundle.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. |
showMessageDialog | public static void showMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType)(Code) | | Brings up a dialog that displays a message using a default icon determined by the messageType parameter.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE |
showMessageDialog | public static void showMessageDialog(Component parentComponent, String messageCID, String titleCID, int messageType, Icon icon)(Code) | | Brings up a dialog displaying a message, specifying all parameters.
Parameters: parentComponent - the parent Component for the dialog Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for the String to display in the dialog title bar Parameters: messageType - the type of message that is to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the icon to display in the dialog |
showOptionDialog | public static int showOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue)(Code) | | Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.
If optionType is YES_NO_OPTION, or YES_NO_CANCEL_OPTION and the options parameter is null, then the options are supplied by the look and feel.
The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for a title to be displayed. Parameters: optionType - an integer designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION Parameters: messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the icon to display in the dialog Parameters: optionsCID - an array of message CIDs indicating the possible choices the user can make Parameters: initialCIDValue - the message CID that represents the default selection for the dialog; only meaningful if options is used; can be null an integer indicating the option chosen by the user, or CLOSED_OPTION if the user closed the dialog |
showOptionDialog | public static int showOptionDialog(Component parentComponent, String messageCID, String titleCID, int optionType, int messageType, Icon icon, String[] optionsCID, String initialCIDValue, String firstLine)(Code) | | Brings up a dialog with a specified icon, where the initial choice is determined by the initialValue parameter and the number of choices is determined by the optionType parameter.
If optionType is YES_NO_OPTION, or YES_NO_CANCEL_OPTION and the options parameter is null, then the options are supplied by the look and feel.
The messageType parameter is primarily used to supply a default icon from the look and feel.
Parameters: parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used Parameters: messageCID - message country identification for a message to be displayed. Parameters: titleCID - message country identification for a title to be displayed. Parameters: optionType - an integer designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION Parameters: messageType - an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE Parameters: icon - the icon to display in the dialog Parameters: optionsCID - an array of message CIDs indicating the possible choices the user can make Parameters: initialCIDValue - the message CID that represents the default selection for the dialog; only meaningful if options is used; can be null Parameters: firstLine - parameter is there to precede the messageCID with some situational information, like e.g. the name of a file. an integer indicating the option chosen by the user, or CLOSED_OPTION if the user closed the dialog Typical usage for using the parameter firstLine:showOptionDialog(........, jfc.getSelectedFile().getPath() ) |
|
|