public class

BasicTreeUI.TreeTraverseAction

extends AbstractAction
java.lang.Object
   ↳ javax.swing.AbstractAction
     ↳ javax.swing.plaf.basic.BasicTreeUI.TreeTraverseAction

Class Overview

TreeTraverseAction is the action used for left/right keys. Will toggle the expandedness of a node, as well as potentially incrementing the selection.

Summary

[Expand]
Inherited Constants
From interface javax.swing.Action
Fields
protected int direction Determines direction to traverse, 1 means expand, -1 means collapse.
[Expand]
Inherited Fields
From class javax.swing.AbstractAction
Public Constructors
BasicTreeUI.TreeTraverseAction(int direction, String name)
Public Methods
void actionPerformed(ActionEvent e)
boolean isEnabled()
Returns true if the action is enabled.
[Expand]
Inherited Methods
From class javax.swing.AbstractAction
From class java.lang.Object
From interface java.awt.event.ActionListener
From interface javax.swing.Action

Fields

protected int direction

Determines direction to traverse, 1 means expand, -1 means collapse.

Public Constructors

public BasicTreeUI.TreeTraverseAction (int direction, String name)

Public Methods

public void actionPerformed (ActionEvent e)

public boolean isEnabled ()

Returns true if the action is enabled.

Returns
  • true if the action is enabled, false otherwise