Package org.moeaframework.util.mvc
Class LocalizedAction
java.lang.Object
javax.swing.AbstractAction
org.moeaframework.util.mvc.LocalizedAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
InvertedToggleAction
,PopupAction
,RunnableAction
,SelectValueAction
,ToggleAction
An action whose display settings are derived from localization.
action.<id>.name
- The display name (required)action.<id>.description
- The description, typically shown in a tooltip (required)action.<id>.icon
- The icon resource name (optional)
- See Also:
-
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
ConstructorsConstructorDescriptionLocalizedAction
(String id, Localization localization, Object... args) Constructs a new localized action. -
Method Summary
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
-
Constructor Details
-
LocalizedAction
Constructs a new localized action.- Parameters:
id
- the id for localizationlocalization
- the source of localization stringsargs
- any arguments used for localization
-