|
|||||||||||
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 | |
static java.lang.String |
ACTION
will probably be removed later |
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 bundle,
java.lang.String i18nKey)
Basic I18NAction. |
|
I18NAction(java.lang.String bundle,
java.lang.String i18nKey,
javax.swing.Icon icon)
I18NAction with an icon. |
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. |
void |
localeChanged(LocaleEvent event)
Updates Action.NAME when a LocaleEvent is fired. |
void |
setBundle(java.lang.String bundle)
Allow the use of a customized i18n resource bundle. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ACTION
Constructor Detail |
public I18NAction()
public I18NAction(java.lang.String i18nKey)
i18nKey
- when I18NAction receive a LocaleEvent
Action.NAME value is updated with itpublic I18NAction(java.lang.String bundle, java.lang.String i18nKey)
bundle
- where to find the i18nKeyi18nKey
- when I18NAction receive a LocaleEvent
Action.NAME value is updated with itpublic I18NAction(java.lang.String bundle, java.lang.String i18nKey, javax.swing.Icon icon)
bundle
- where to find the i18nKeyi18nKey
- when I18NAction receive a LocaleEvent
Action.NAME value is updated with iticon
- Action.SMALL_ICON valueMethod Detail |
public void setBundle(java.lang.String bundle)
bundle
- bundle bindingpublic java.lang.String getKey()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The event firedpublic void localeChanged(LocaleEvent event)
localeChanged
in interface LocaleListener
event
- contains the new Locale
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |