public class BasicTreeUI.TreeIncrementAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
protected int |
direction
Specifies the direction to adjust the selection by.
|
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
BasicTreeUI.TreeIncrementAction(int dir,
String name)
Creates a new TreeIncrementAction.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
boolean |
isEnabled()
Returns true if the action is enabled.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
protected int direction
public BasicTreeUI.TreeIncrementAction(int dir, String name)
dir
- up or down, -1
for up, 1
for downname
- is the name of the directionpublic void actionPerformed(ActionEvent e)
e
- is the event that occuredpublic boolean isEnabled()
isEnabled
in interface Action
isEnabled
in class AbstractAction
AbstractAction.setEnabled(boolean)