ElegantJ Trees Java API Specification v1.1

com.elegantj.awt.tree
Class AWTTreeSelectionEvent

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

public class AWTTreeSelectionEvent
extends java.util.EventObject

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AWTTreeSelectionEvent(java.lang.Object source, java.util.Vector selectedNodes)
          Constructor for the AWTTreeSelectionEvent
 
Method Summary
 AWTTreeNode getFirstSelectedNode()
          Method which returns the first selected node if the selected nodes array is null it returns the null
 AWTTreeNode getLastSelectedNode()
          Method which returns the last selected node if the selected nodes array is null it returns the null
 java.util.Vector getSelectedNodes()
          Returns the vector of the selected nodes
 
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

AWTTreeSelectionEvent

public AWTTreeSelectionEvent(java.lang.Object source,
                             java.util.Vector selectedNodes)
Constructor for the AWTTreeSelectionEvent

Parameters:
source - The Object that is the source of the event
selectedNodes - The vector of the selected nodes
Method Detail

getSelectedNodes

public java.util.Vector getSelectedNodes()
Returns the vector of the selected nodes

Returns:
The vector of the selected nodes

getFirstSelectedNode

public AWTTreeNode getFirstSelectedNode()
Method which returns the first selected node if the selected nodes array is null it returns the null

Returns:
The first selected node

getLastSelectedNode

public AWTTreeNode getLastSelectedNode()
Method which returns the last selected node if the selected nodes array is null it returns the null

Returns:
The last selected node

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.