org.apache.myfaces.custom.tree.model
public class TreeModelEvent extends Object
Version: $Revision: 169651 $ $Date: 2005-05-11 18:14:23 +0200 (Wed, 11 May 2005) $
Constructor Summary | |
---|---|
TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children)
Used to create an event when nodes have been changed, inserted, or
removed, identifying the path to the parent of the modified items as
an array of Objects. | |
TreeModelEvent(Object source, TreePath path, int[] childIndices, Object[] children)
Used to create an event when nodes have been changed, inserted, or
removed, identifying the path to the parent of the modified items as
a TreePath object.
| |
TreeModelEvent(Object source, Object[] path)
Used to create an event when nodes have been changed, inserted, or
removed, identifying the path to the parent of the modified items as
a TreePath object.
| |
TreeModelEvent(Object source, TreePath path)
Used to create an event when nodes have been changed, inserted, or
removed, identifying the path to the parent of the modified items as
a TreePath object.
|
Method Summary | |
---|---|
int[] | getChildIndices()
Returns the values of the child indexes. |
Object[] | getChildren()
Return the objects that are children of the node identified by
the path of this event at the locations specified by
getChildIndices . |
Object | getSource()
Answer the source of this event
|
TreePath | getTreePath()
For all events, except treeStructureChanged,
returns the parent of the changed nodes.
|
String | toString()
Returns a string that displays and identifies this object's
properties.
|
int
. The indexes in that array
must be in order, from lowest to highest.
Parameters: source the Object responsible for generating the event path an array of Object identifying the path to the parent of the modified item(s) childIndices array that specifies the index values of the removed items. The indices must be in sorted order, from lowest to highest children an array containing the inserted, removed, or changed objects
Parameters: source the Object responsible for generating the event path a TreePath object that identifies the path to the parent of the modified item(s) childIndices array that specifies the index values of the modified items children an array containing the inserted, removed, or changed objects
See Also: (Object,Object[],int[],Object[])
Parameters: source the Object responsible for generating the event path an array of Object identifying the path to the parent of the modified item(s)
Parameters: source the Object responsible for generating the event path a TreePath object that identifies the path to the parent of the modified item(s)
Returns: an array containing index locations for the children specified by the event
getChildIndices
. If this is a removal event the
returned objects are no longer children of the parent node.
Returns: an array of Object containing the children specified by the event
Returns: the source of this event
getChildIndices
are used to get a list of the effected
nodes.
The one exception to this is a treeNodesChanged event that is to
identify the root, in which case this will return the root
and getChildIndices
will return null.
Returns: the TreePath used in identifying the changed nodes.
Returns: a String representation of this object