public abstract class AbstractVFSUIAction extends Object implements 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 and Description |
|---|
AbstractVFSUIAction(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
String |
getName() |
Object |
getValue(String key) |
boolean |
isEnabled()
Cover method for
isEnabled(null). |
boolean |
isEnabled(Object sender)
Subclasses that need to conditionalize the enabled state should
override this.
|
void |
putValue(String key,
Object value) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setEnabled(boolean b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedpublic AbstractVFSUIAction(String name)
name - public final String getName()
public void setEnabled(boolean b)
setEnabled in interface Actionpublic final boolean isEnabled()
isEnabled(null).public boolean isEnabled(Object sender)
sender may be null.sender - Widget enabled state is being asked for, may be null.public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface Actionpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface ActionCopyright © 2020. All rights reserved.