|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractAction
org.workingfrog.i18n.swing.I18NAction
i18n version of javax.swing.AbstractAction
| Nested Class Summary |
| Nested classes inherited from class javax.swing.AbstractAction |
|
| Field Summary |
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
I18NAction()
Default constructor for children. |
|
I18NAction(java.lang.String i18nKey)
Basic I18NAction. |
|
I18NAction(java.lang.String i18nKey,
javax.swing.Icon icon)
Basic I18NAction. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
Must be implemented by children. |
java.lang.String |
getKey()
Used when Action.NAME needs an update. |
java.lang.Object |
getValue(java.lang.String key)
|
void |
localeChanged(LocaleEvent event)
Updates Action.NAME when a LocaleEvent is fired. |
void |
putValue(java.lang.String key,
java.lang.Object newValue)
Allow the use of a customized i18n resource bundle. |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public I18NAction()
public I18NAction(java.lang.String i18nKey)
i18nKey - when I18NAction receive a LocaleEvent
Action.NAME value is updated with it
public I18NAction(java.lang.String i18nKey,
javax.swing.Icon icon)
i18nKey - when I18NAction receive a LocaleEvent
Action.NAME value is updated with it| Method Detail |
public void putValue(java.lang.String key,
java.lang.Object newValue)
putValue in interface javax.swing.Actionpublic java.lang.Object getValue(java.lang.String key)
getValue in interface javax.swing.Actionpublic java.lang.String getKey()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerevent - The event firedpublic void localeChanged(LocaleEvent event)
localeChanged in interface LocaleListenerevent - contains the new Locale
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||