public abstract class SwingAction extends AbstractActivateableAction
Modifier and Type | Field and Description |
---|---|
static String |
ELIPSIS
String suffix that indicates that an action requires further input from a user
prior to completion.
|
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
Modifier | Constructor and Description |
---|---|
protected |
SwingAction() |
protected |
SwingAction(String pText) |
protected |
SwingAction(String pText,
Icon pIcon) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent pEvt)
Try to perform wrapped action.
|
protected void |
addElipsis() |
static SwingAction |
decorateAction(Action pAction)
Wrap an ordinary action in a SwingAction.
|
abstract void |
execute()
Perform action.
|
protected int |
getModifiers() |
addActivationCriterion, getActivatableFacade, isDisplayingDisablementReasonsByDefault, isDisplayingDisablementReasonsByOverride, putValue, setDisplayingDisablementReasonsByDefault, setEnabled, stripTooltip
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, removePropertyChangeListener
public static final String ELIPSIS
protected SwingAction()
protected SwingAction(String pText)
SwingAction(String, Icon)
protected int getModifiers()
public static SwingAction decorateAction(Action pAction)
pAction
- Wrapped action.public final void actionPerformed(ActionEvent pEvt)
protected void addElipsis()
public abstract void execute()
Copyright © 2023. All rights reserved.