info.aduna.clustermap.action
Class TreeSortAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.aduna.clustermap.action.TreeSortAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
TreeSortNameAction, TreeSortOriginalOrderAction, TreeSortSizeAction

public abstract class TreeSortAction
extends AbstractAction

Abstract super class of Actions that let the user sort the siblings of a tree node in a ClassTree.

See Also:
Serialized Form

Field Summary
 
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
TreeSortAction(String name, Icon icon, ClassTree tree)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
abstract  void sort(DefaultMutableTreeNode[] nodes, ClassTree originatingTree)
          Sort the specified array of tree nodes according to some criterion.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeSortAction

public TreeSortAction(String name,
                      Icon icon,
                      ClassTree tree)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

sort

public abstract void sort(DefaultMutableTreeNode[] nodes,
                          ClassTree originatingTree)
Sort the specified array of tree nodes according to some criterion.



Copyright © 1997-2008 Aduna. All Rights Reserved.