public class ResourceAction
extends javax.swing.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 java.lang.String |
POPUP |
static java.lang.String |
RESOURCE_CLASS |
static java.lang.String |
RESOURCE_PREFIX |
static java.lang.String |
TOGGLE_BUTTON_MODEL |
static java.lang.String |
TOOL_BAR_ICON |
static java.lang.String |
UNLOCALIZED_NAME |
static java.lang.String |
VISIBLE |
Constructor and Description |
---|
ResourceAction(UserPreferences preferences,
java.lang.Class<?> resourceClass,
java.lang.String actionPrefix)
Creates a disabled action with properties retrieved from a resource bundle
in which key starts with
actionPrefix . |
ResourceAction(UserPreferences preferences,
java.lang.Class<?> resourceClass,
java.lang.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(java.awt.event.ActionEvent ev)
Unsupported operation.
|
public static final java.lang.String RESOURCE_CLASS
public static final java.lang.String RESOURCE_PREFIX
public static final java.lang.String VISIBLE
public static final java.lang.String POPUP
public static final java.lang.String TOGGLE_BUTTON_MODEL
public static final java.lang.String TOOL_BAR_ICON
public static final java.lang.String UNLOCALIZED_NAME
public ResourceAction(UserPreferences preferences, java.lang.Class<?> resourceClass, java.lang.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, java.lang.Class<?> resourceClass, java.lang.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.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License