public class BasicTreeUI.TreeTraverseAction extends javax.swing.AbstractAction
| Modifier and Type | Field and Description |
|---|---|
protected int |
direction
Determines direction to traverse, 1 means expand, -1 means collapse.
|
| Constructor and Description |
|---|
BasicTreeUI.TreeTraverseAction(int direction,
java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
|
boolean |
isEnabled()
Returns true if the action is enabled.
|
protected int direction
public BasicTreeUI.TreeTraverseAction(int direction, java.lang.String name)
direction - to traversename - is the name of the directionpublic void actionPerformed(java.awt.event.ActionEvent e)
e - the event that occuredpublic boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionAbstractAction.setEnabled(boolean)