projectviewer.action
Class ExpandAllAction

java.lang.Object
  extended byprojectviewer.action.Action
      extended byprojectviewer.action.ExpandAllAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener

public class ExpandAllAction
extends Action

Expands all nodes of the current tree.

Version:
$Id: ExpandAllAction.java 6333 2005-02-10 06:31:59Z vanza $
Author:
Marcelo Vanzin (based on code from old ProjectViewer class)

Field Summary
 
Fields inherited from class projectviewer.action.Action
action, cmItem, tbButton, 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.
 javax.swing.Icon getIcon()
          Returns the icon for the action.
 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, getButton, getMenuItem, prepareForNode, setViewer
 
Methods inherited from class java.lang.Object
equals, 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

getIcon

public javax.swing.Icon getIcon()
Returns the icon for the action.

Overrides:
getIcon 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.