com.droplets.api.event
Class TreeClickEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.droplets.api.event.ClickEvent
              |
              +--com.droplets.api.event.TreeClickEvent
All Implemented Interfaces:
java.io.Serializable

public class TreeClickEvent
extends ClickEvent

Event fired when a tree node is clicked.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TreeClickEvent(Tree source, TreeNode node)
          Constructs a new TreeClickEvent
TreeClickEvent(Tree source, TreeNode node, boolean isDoubleClick)
          Construct a new TreeClickEvent with double click flag.
 
Method Summary
 Tree getSourceTree()
          Type-safe method to return the source object of this event, since we know it's a Tree.
 TreeNode getTreeNode()
          Method to return the node in the tree that was clicked.
 boolean isTreeClickEvent()
          Method to determine if this ClickEvent is actually a TreeClickEvent.
 
Methods inherited from class com.droplets.api.event.ClickEvent
getIsDoubleClick, getSourceComponent, setIsDoubleClick
 
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

TreeClickEvent

public TreeClickEvent(Tree source,
                      TreeNode node)
Constructs a new TreeClickEvent
Parameters:
source - the tree that was clicked
node - the node in the tree that was clicked

TreeClickEvent

public TreeClickEvent(Tree source,
                      TreeNode node,
                      boolean isDoubleClick)
Construct a new TreeClickEvent with double click flag.
Parameters:
source - the tree that was clicked
node - the node in the tree that was clicked
isDoubleClick - flag stating if the event is a double click
Method Detail

getSourceTree

public Tree getSourceTree()
Type-safe method to return the source object of this event, since we know it's a Tree.
Returns:
the tree that was clicked

getTreeNode

public TreeNode getTreeNode()
Method to return the node in the tree that was clicked.
Returns:
the node that was clicked

isTreeClickEvent

public boolean isTreeClickEvent()
Method to determine if this ClickEvent is actually a TreeClickEvent.
Overrides:
isTreeClickEvent in class ClickEvent


Copyright © Droplets, 2001. All Rights Reserved.