org.apache.batik.util.gui
public class LanguageDialog extends JDialog implements ActionMap
Nested Class Summary | |
---|---|
protected class | LanguageDialog.CancelButtonAction
The action associated with the 'Cancel' button |
protected class | LanguageDialog.OKButtonAction
The action associated with the 'OK' button |
static class | LanguageDialog.Panel
The language selection panel. |
Field Summary | |
---|---|
protected static ResourceBundle | bundle
The resource bundle |
static int | CANCEL_OPTION
The return value if 'Cancel' is chosen. |
protected Map | listeners
The map that contains the listeners |
static int | OK_OPTION
The return value if 'OK' is chosen. |
protected LanguageDialog.Panel | panel
The user languages panel. |
protected static ResourceManager | resources
The resource manager |
protected int | returnCode
The last return code. |
protected static String | RESOURCES
The resource file name |
Constructor Summary | |
---|---|
LanguageDialog(JFrame f)
Creates a new LanguageDialog object. |
Method Summary | |
---|---|
protected JPanel | createButtonsPanel()
Creates the OK/Cancel buttons panel |
Action | getAction(String key)
Returns the action associated with the given string
or null on error |
String | getLanguages()
Returns the user languages. |
void | setLanguages(String s)
Sets the user languages. |
int | showDialog()
Shows the dialog. |
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found todo does it throw ?? seems to return null
Returns: OK_CANCEL or CANCEL_OPTION.