projectviewer.action
Class ExpandAllAction

java.lang.Object
  extended by projectviewer.action.Action
      extended by projectviewer.action.ExpandAllAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.lang.Cloneable, java.lang.Comparable<Action>, java.util.EventListener

public class ExpandAllAction
extends Action

Expands all nodes of the current tree.

Author:
Marcelo Vanzin (based on code from old ProjectViewer class)

Field Summary
 
Fields inherited from class projectviewer.action.Action
action, cmItem, viewer
 
Constructor Summary
ExpandAllAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Creates a new project.
 void expand(javax.swing.tree.TreePath path, javax.swing.JTree tree)
          Expand the given sub tree.
 java.lang.String getText()
          Returns the text to be shown on the button and/or menu item.
 
Methods inherited from class projectviewer.action.Action
clone, compareTo, equals, getMenuItem, prepareForNode, setViewer
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandAllAction

public ExpandAllAction()
Method Detail

getText

public java.lang.String getText()
Returns the text to be shown on the button and/or menu item.

Specified by:
getText in class Action

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Creates a new project.


expand

public void expand(javax.swing.tree.TreePath path,
                   javax.swing.JTree tree)
Expand the given sub tree.