public class BasicTreeUI.TreeHomeAction extends javax.swing.AbstractAction
| Modifier and Type | Field and Description |
|---|---|
protected int |
direction
The direction, either home or end
|
| Constructor and Description |
|---|
BasicTreeUI.TreeHomeAction(int dir,
java.lang.String name)
Creates a new TreeHomeAction instance.
|
| 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.TreeHomeAction(int dir, java.lang.String name)
dir - the direction to go to, -1 for home,
1 for endname - the name of the actionpublic void actionPerformed(java.awt.event.ActionEvent e)
e - is the event that occuredpublic boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionAbstractAction.setEnabled(boolean)