Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaTreeUI.TreeTraverseAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
QuaquaTreeUI.TreeTraverseAction(int direction, java.lang.String name)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 boolean isEnabled()
           
 
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
 

Field Detail

direction

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

Constructor Detail

QuaquaTreeUI.TreeTraverseAction

public QuaquaTreeUI.TreeTraverseAction(int direction,
                                       java.lang.String name)
Method Detail

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

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.