javax.swing.plaf.basic

Class BasicTreeUI.TreePageAction

public class BasicTreeUI.TreePageAction extends AbstractAction

TreePageAction handles page up and page down events.
Field Summary
protected intdirection
Specifies the direction to adjust the selection by.
Constructor Summary
TreePageAction(int direction, String name)
Constructor
Method Summary
voidactionPerformed(ActionEvent e)
Invoked when an action occurs.
booleanisEnabled()
Returns true if the action is enabled.

Field Detail

direction

protected int direction
Specifies the direction to adjust the selection by.

Constructor Detail

TreePageAction

public TreePageAction(int direction, String name)
Constructor

Parameters: direction up or down name is the name of the direction

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Invoked when an action occurs.

Parameters: e is the event that occured

isEnabled

public boolean isEnabled()
Returns true if the action is enabled.

Returns: true if the action is enabled.