|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.myfaces.custom.tree.model.TreeModelEvent
public class TreeModelEvent
Constructor Summary | |
---|---|
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,
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)
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,
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children)
int
. The indexes in that array
must be in order, from lowest to highest.
source
- the Object responsible for generating the eventpath
- 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 highestchildren
- an array containing the inserted, removed, or changed objectspublic TreeModelEvent(Object source, TreePath path, int[] childIndices, Object[] children)
source
- the Object responsible for generating the eventpath
- 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 itemschildren
- an array containing the inserted, removed, or changed objectsTreeModelEvent(Object,Object[],int[],Object[])
public TreeModelEvent(Object source, Object[] path)
source
- the Object responsible for generating the eventpath
- an array of Object identifying the path to the parent of the modified item(s)public TreeModelEvent(Object source, TreePath path)
source
- the Object responsible for generating the eventpath
- a TreePath object that identifies the path to the parent of the modified item(s)Method Detail |
---|
public Object getSource()
public TreePath getTreePath()
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.
public Object[] getChildren()
getChildIndices
. If this is a removal event the
returned objects are no longer children of the parent node.
public int[] getChildIndices()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |