org.apache.batik.util.gui
public static class LanguageDialog.Panel extends JPanel implements ActionMap
Nested Class Summary | |
---|---|
protected class | LanguageDialog.Panel.AddLanguageButtonAction
The action associated with the 'add' button |
protected class | LanguageDialog.Panel.ClearLanguageButtonAction
The action associated with the 'clear' button |
protected class | LanguageDialog.Panel.DownLanguageButtonAction
The action associated with the 'down' button |
protected class | LanguageDialog.Panel.IconAndTextCellRenderer
To display icons and text in the lists. |
protected class | LanguageDialog.Panel.LanguageListSelectionListener
To manage selection modifications |
protected class | LanguageDialog.Panel.RemoveLanguageButtonAction
The action associated with the 'remove' button |
protected class | LanguageDialog.Panel.UpLanguageButtonAction
The action associated with the 'up' button |
protected class | LanguageDialog.Panel.UserListSelectionListener
To manage selection modifications |
Field Summary | |
---|---|
protected JButton | addLanguageButton
The AddLanguageButton. |
protected JButton | clearLanguageButton
The ClearLanguageButton. |
protected JButton | downLanguageButton
The DownLanguageButton. |
protected JList | languageList
The languages list |
protected DefaultListModel | languageListModel
The language list model |
protected Map | listeners
The map that contains the listeners |
protected JButton | removeLanguageButton
The RemoveLanguageButton. |
protected JButton | upLanguageButton
The UpLanguageButton. |
protected JList | userList
The user languages list |
protected DefaultListModel | userListModel
The user list model |
Constructor Summary | |
---|---|
Panel()
Creates a new Panel object. |
Method Summary | |
---|---|
Action | getAction(String key)
Returns the action associated with the given string
or null on error |
protected Icon | getCountryIcon(String code)
returns the icon associated with a country code. |
protected String | getCountryText(String code)
returns the full string associated with a country code. |
String | getLanguages()
Returns the selected user languages. |
static void | initCountryIcons()
Allows to pre-initialize icons used by the Panel
constructor. |
void | setLanguages(String str)
Sets the user languages. |
protected void | updateButtons()
Updates the state of the buttons |
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found
Panel
constructor. It is not neccessary to call it and it should
be called only once.
This method is safe to be called by another thread than the
event thread as it doesn't manipulate Swing JComponent
instances.