public class BasicTreeUI.TreeTraverseAction extends AbstractAction
| Modifier and Type | Field and Description |
|---|---|
protected int |
direction
Determines direction to traverse, 1 means expand, -1 means collapse.
|
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
BasicTreeUI.TreeTraverseAction(int direction,
String name)
Constructor
|
| 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, setEnabledprotected int direction
public BasicTreeUI.TreeTraverseAction(int direction, String name)
direction - to traversename - is the name of the directionpublic void actionPerformed(ActionEvent e)
e - the event that occuredpublic boolean isEnabled()
isEnabled in interface ActionisEnabled in class AbstractActionAbstractAction.setEnabled(boolean)