javax.swing.plaf.basic
public class BasicTreeUI.TreeHomeAction extends AbstractAction
| Field Summary | |
|---|---|
| protected int | direction The direction, either home or end |
| Constructor Summary | |
|---|---|
| TreeHomeAction(int dir, String name)
Creates a new TreeHomeAction instance.
| |
| Method Summary | |
|---|---|
| void | actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
| boolean | isEnabled()
Returns true if the action is enabled.
|
Parameters: dir the direction to go to, -1 for home,
1 for end name the name of the action
Parameters: e is the event that occured
Returns: true if the action is enabled.