org.apache.cocoon.forms.formmodel.tree
Class TreeSelectionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.apache.cocoon.forms.event.WidgetEvent
          extended byorg.apache.cocoon.forms.formmodel.tree.TreeSelectionEvent
All Implemented Interfaces:
Serializable

public class TreeSelectionEvent
extends WidgetEvent

An event fired when the selection of a Tree changes.

Version:
$Id: TreeSelectionEvent.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TreeSelectionEvent(Tree source, TreePath[] paths, boolean allNew)
           
TreeSelectionEvent(Tree source, TreePath[] paths, boolean[] areNew)
           
TreeSelectionEvent(Tree source, TreePath path, boolean isNew)
           
 
Method Summary
 TreePath getPath()
          Get the first path element.
 TreePath[] getPaths()
          Get paths that have been added or removed from the selection.
 Tree getTree()
           
 boolean isAddedPath()
          Is the first path a new addition to the selection?
 boolean isAddedPath(int index)
          Was the indexth path added to the selection?
 
Methods inherited from class org.apache.cocoon.forms.event.WidgetEvent
getSourceWidget
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeSelectionEvent

public TreeSelectionEvent(Tree source,
                          TreePath path,
                          boolean isNew)

TreeSelectionEvent

public TreeSelectionEvent(Tree source,
                          TreePath[] paths,
                          boolean[] areNew)

TreeSelectionEvent

public TreeSelectionEvent(Tree source,
                          TreePath[] paths,
                          boolean allNew)
Method Detail

getTree

public Tree getTree()

getPath

public TreePath getPath()
Get the first path element.


isAddedPath

public boolean isAddedPath()
Is the first path a new addition to the selection?


getPaths

public TreePath[] getPaths()
Get paths that have been added or removed from the selection.


isAddedPath

public boolean isAddedPath(int index)
Was the indexth path added to the selection?



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.