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 |
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 |
TreeClickEvent
public TreeClickEvent(Tree source,
TreeNode node)
- Constructs a new
TreeClickEvent
- Parameters:
source
- the tree that was clickednode
- 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 clickednode
- the node in the tree that was clickedisDoubleClick
- flag stating if the event is a double click
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.