javax.swing.plaf.basic

Class BasicTreeUI.TreeToggleAction

public class BasicTreeUI.TreeToggleAction extends AbstractAction

For the first selected row expandedness will be toggled.
Constructor Summary
TreeToggleAction(String name)
Creates a new TreeToggleAction.
Method Summary
voidactionPerformed(ActionEvent e)
Invoked when an action occurs.
booleanisEnabled()
Returns true if the action is enabled.

Constructor Detail

TreeToggleAction

public TreeToggleAction(String name)
Creates a new TreeToggleAction.

Parameters: name is the name of Action field

Method Detail

actionPerformed

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

Parameters: e the event that occured

isEnabled

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

Returns: true if the action is enabled, false otherwise