|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.batik.util.gui.LanguageDialog.Panel
public static class LanguageDialog.Panel
The language selection panel.
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 |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
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 |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
LanguageDialog.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 |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected JList userList
protected JList languageList
protected DefaultListModel userListModel
protected DefaultListModel languageListModel
protected JButton addLanguageButton
protected JButton removeLanguageButton
protected JButton upLanguageButton
protected JButton downLanguageButton
protected JButton clearLanguageButton
protected Map listeners
Constructor Detail |
---|
public LanguageDialog.Panel()
Method Detail |
---|
public static void initCountryIcons()
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.
public String getLanguages()
public void setLanguages(String str)
protected void updateButtons()
protected String getCountryText(String code)
protected Icon getCountryIcon(String code)
public Action getAction(String key) throws MissingListenerException
getAction
in interface ActionMap
key
- the key mapped with the action to get
MissingListenerException
- if the action is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |