be.ugent.caagt.swirl.actions
Class SimpleAction
AbstractAction
be.ugent.caagt.swirl.actions.SimpleAction
public abstract class SimpleAction
extends AbstractAction
Abstract action (controller) based on an internationalized description.
As with
AbstractAction
you need only define the
actionPerformed
method when you extend this class.
Also defines two new action properties for use with tool bar buttons.
static String | MEDIUM_DISABLED_ICON - The action key used for storing a medium size disabled
Icon for use with tool bar buttons.
|
static String | MEDIUM_ICON - The action key used for storing a medium size
Icon
for use with tool bar buttons.
|
SimpleAction(ResourceBundle bundle, String key, Icon icon) - Construct an action with an internationalized description
string and given icon.
|
SimpleAction(ResourceBundle bundle, String key, Icon icon, Icon mediumIcon, Icon mediumDisabledIcon) - Construct an action with an internationalized description
string and given icons.
|
MEDIUM_DISABLED_ICON
public static final String MEDIUM_DISABLED_ICON
The action key used for storing a medium size
disabled
Icon
for use with tool bar buttons. Icons registered
with this key will be used for tool bar buttons
of type
ToolBarToggleButton
or
ToolBarButton
, but not
for standard Swing buttons.
MEDIUM_ICON
public static final String MEDIUM_ICON
The action key used for storing a medium size
Icon
for use with tool bar buttons. Icons registered
with this key will be used for tool bar buttons
of type
ToolBarToggleButton
or
ToolBarButton
, but not
for standard Swing buttons.
SimpleAction
protected SimpleAction(ResourceBundle bundle,
String key,
Icon icon)
Construct an action with an internationalized description
string and given icon.
bundle
- Resource bundle which contains the description for
this action.key
- Key used for the description of this action in the bundle.icon
- Small icon to be used for menu and standard button decoration (or null).
SimpleAction
protected SimpleAction(ResourceBundle bundle,
String key,
Icon icon,
Icon mediumIcon,
Icon mediumDisabledIcon)
Construct an action with an internationalized description
string and given icons.
bundle
- Resource bundle which contains the description for
this action.key
- Key used for the description of this action in the bundle.icon
- Small icon to be used for menu and standard button decoration (or null)mediumIcon
- Medium size icon to be used for tool bar buttons (or null)mediumDisabledIcon
- Medium size icon to be used for a disabled tool bar buttons (or null)
actionPerformed
public abstract void actionPerformed(ActionEvent e)