ch.randelshofer.quaqua
Class QuaquaTreeUI.TreeTraverseAction
java.lang.Object
javax.swing.AbstractAction
ch.randelshofer.quaqua.QuaquaTreeUI.TreeTraverseAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Enclosing class:
- QuaquaTreeUI
public class QuaquaTreeUI.TreeTraverseAction
- extends javax.swing.AbstractAction
TreeTraverseAction
is the action used for left/right keys.
Will toggle the expandedness of a node, as well as potentially
incrementing the selection.
- See Also:
- Serialized Form
Field Summary |
protected int |
direction
Determines direction to traverse, 1 means expand, -1 means
collapse. |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
direction
protected int direction
- Determines direction to traverse, 1 means expand, -1 means
collapse.
QuaquaTreeUI.TreeTraverseAction
public QuaquaTreeUI.TreeTraverseAction(int direction,
java.lang.String name)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface javax.swing.Action
- Overrides:
isEnabled
in class javax.swing.AbstractAction