Package be.gaudry.swing.action
Class LocalizableAction
java.lang.Object
javax.swing.AbstractAction
be.gaudry.swing.action.LocalizableAction
- All Implemented Interfaces:
ILocalized
,ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
AutoLocalizedAction
Allows localization by invoking the
ILocalized.setLanguage()
method.
Provided by the broldev.core.swing project.- Since:
- 1.0 (Mar 27, 2009), broldev.core.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Mar 27, 2009)
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorDescriptionBuilds aLanguageObserverAction
object with a default description string and default icon.LocalizableAction(String name)
Builds aLanguageObserverAction
object with the specified description string and a default icon.LocalizableAction(String name, Icon icon)
Builds aLanguageObserverAction
object with the specified description string and a the specified icon. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is called in the constructor before theILocalized.setLanguage()
methodprotected void
init()
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
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
Methods inherited from interface be.gaudry.model.locale.ILocalized
setLanguage
-
Constructor Details
-
LocalizableAction
public LocalizableAction()Builds aLanguageObserverAction
object with a default description string and default icon. -
LocalizableAction
Builds aLanguageObserverAction
object with the specified description string and a default icon.- Parameters:
name
- description of the action
-
LocalizableAction
Builds aLanguageObserverAction
object with the specified description string and a the specified icon.- Parameters:
name
- description of the actionicon
- image of the action
-
-
Method Details
-
init
protected void init() -
doOnCreate
protected void doOnCreate()This method is called in the constructor before theILocalized.setLanguage()
method
-