public class ResourceAction extends AbstractAction
Modifier and Type | Class and Description |
---|---|
static class |
ResourceAction.ButtonAction
An action decorator for buttons.
|
static class |
ResourceAction.MenuItemAction
An action decorator for menu items.
|
static class |
ResourceAction.PopupMenuItemAction
An action decorator for popup menu items.
|
static class |
ResourceAction.ToolBarAction
An action decorator for tool bar buttons.
|
Modifier and Type | Field and Description |
---|---|
static String |
POPUP |
static String |
TOGGLE_BUTTON_MODEL |
changeSupport, enabled
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 and Description |
---|
ResourceAction(UserPreferences preferences,
Class<?> resourceClass,
String actionPrefix)
Creates a disabled action with properties retrieved from a resource bundle
in which key starts with
actionPrefix . |
ResourceAction(UserPreferences preferences,
Class<?> resourceClass,
String actionPrefix,
boolean enabled)
Creates an action with properties retrieved from a resource bundle
in which key starts with
actionPrefix . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ev)
Unsupported operation.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static final String POPUP
public static final String TOGGLE_BUTTON_MODEL
public ResourceAction(UserPreferences preferences, Class<?> resourceClass, String actionPrefix)
actionPrefix
.preferences
- user preferences used to retrieve localized properties of the actionresourceClass
- the class used as a context to retrieve localized properties of the actionactionPrefix
- prefix used in resource bundle to search action propertiespublic ResourceAction(UserPreferences preferences, Class<?> resourceClass, String actionPrefix, boolean enabled)
actionPrefix
.preferences
- user preferences used to retrieve localized description of the actionresourceClass
- the class used as a context to retrieve localized properties of the actionactionPrefix
- prefix used in resource bundle to search action propertiesenabled
- true
if the action should be enabled at creation.public void actionPerformed(ActionEvent ev)
© Copyrights 2006-2016 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License