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