com.droplets.api.event
Class TreeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.droplets.api.event.TreeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class TreeEvent
- extends java.util.EventObject
An event sent from Tree
to its listeners.
Two types of events are currently supported: selection and expansion.
- 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 |
NODE_SELECTED
public static final int NODE_SELECTED
NODE_UNSELECTED
public static final int NODE_UNSELECTED
NODE_WILL_EXPAND
public static final int NODE_WILL_EXPAND
NODE_WILL_COLLAPSE
public static final int NODE_WILL_COLLAPSE
NODE_CHECKBOX_VALUE_CHANGED
public static final int NODE_CHECKBOX_VALUE_CHANGED
newSelectedEvent
public static TreeEvent newSelectedEvent(Tree source,
TreeNode node)
- Create and return node selected event.
- Parameters:
node
- The tree node that was selected.- Returns:
- The TreeEvent.
newUnselectedEvent
public static TreeEvent newUnselectedEvent(Tree source,
TreeNode node)
- Create and return node un-selected event.
- Parameters:
node
- The tree node that was un-selected.- Returns:
- The TreeEvent.
newWillExpandEvent
public static TreeEvent newWillExpandEvent(Tree source,
TreeNode node)
- Create and return tree will expand event.
- Parameters:
node
- The tree node that will expand.- Returns:
- The TreeEvent.
newWillCollapseEvent
public static TreeEvent newWillCollapseEvent(Tree source,
TreeNode node)
- Create and return tree will collapse event.
- Parameters:
node
- The tree node that will collapse.- Returns:
- The TreeEvent.
newCheckboxValueChangedEvent
public static TreeEvent newCheckboxValueChangedEvent(Tree source,
TreeNode node)
- Create and return tree node checkbox value change event.
- Parameters:
node
- The tree node whose checkbox value changed.checked
- The new checkbox value.- Returns:
- The TreeEvent.
getEventType
public int getEventType()
- Gets the type of the event.
getTreeNode
public TreeNode getTreeNode()
- Gets the tree node.
getSourceTree
public Tree getSourceTree()
- Gets the source
Tree
.
Copyright © Droplets, 2001. All Rights Reserved.