ElegantJ Trees Java API Specification v1.1

com.elegantj.awt.tree
Class AWTTreeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.elegantj.awt.tree.AWTTreeEvent
All Implemented Interfaces:
java.io.Serializable

public class AWTTreeEvent
extends java.util.EventObject

AWTTreeEvent is used to notify interested parties that state has changed in the event source.

See Also:
Serialized Form

Field Summary
protected  int[] childIndices
          The indexes of the child
protected  AWTTreeNode[] children
          The childrens nodes array
protected  AWTTreeNode[] path
          The path of the node
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AWTTreeEvent(java.lang.Object source, AWTTreeNode[] path)
          Constructor of the AWTTreeEvent
AWTTreeEvent(java.lang.Object source, AWTTreeNode[] path, int[] childIndices, AWTTreeNode[] children)
          Constructor of the AWTTreeEvent
 
Method Summary
 int[] getChildIndices()
          Method which returns the array of the child indexes which are affected
 AWTTreeNode[] getChildren()
          Method which returns the array of the childrens node which are affected
 AWTTreeNode[] getPath()
          Method which returns the path of the node from itself to the root
 
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
 

Field Detail

path

protected AWTTreeNode[] path
The path of the node


childIndices

protected int[] childIndices
The indexes of the child


children

protected AWTTreeNode[] children
The childrens nodes array

Constructor Detail

AWTTreeEvent

public AWTTreeEvent(java.lang.Object source,
                    AWTTreeNode[] path,
                    int[] childIndices,
                    AWTTreeNode[] children)
Constructor of the AWTTreeEvent

Parameters:
source - The object that is the source of the event
path - The path of the node whose childrens were affected
childIndices - The int array of the child indexes
children - The nodes of the children

AWTTreeEvent

public AWTTreeEvent(java.lang.Object source,
                    AWTTreeNode[] path)
Constructor of the AWTTreeEvent

Parameters:
source - The object that is the source of the event
path - The path of the node whose childrens were affected
Method Detail

getPath

public AWTTreeNode[] getPath()
Method which returns the path of the node from itself to the root

Returns:
The AWTTreeNode array containing the path of the node

getChildren

public AWTTreeNode[] getChildren()
Method which returns the array of the childrens node which are affected

Returns:
The array of the childrens node which are affected

getChildIndices

public int[] getChildIndices()
Method which returns the array of the child indexes which are affected

Returns:
The array of the child indexes which are affected

ElegantJ Trees Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.