public class TreeExpansionEvent extends FormEvent
An event class reporting a change in the expanded state of a tree's node.
Tree components support event listeners that are notified when a node of the tree is expanded or collapsed. These listeners are passed an event object of this type containing all data available.
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeExpansionEvent.Type
An enumeration class defining the different types of a
TreeExpansionEvent. |
source| Constructor and Description |
|---|
TreeExpansionEvent(Object source,
TreeHandler handler,
String name,
TreeExpansionEvent.Type type,
TreeNodePath path)
Creates a new instance of
TreeExpansionEvent and initializes
it. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This base implementation tests the handler and name
properties.
|
TreeNodePath |
getPath()
Returns the path to the node whose state has changed.
|
TreeHandler |
getTreeHandler()
Returns the handler for the tree component that is the source of this
event.
|
TreeExpansionEvent.Type |
getType()
Returns the type of this event.
|
int |
hashCode()
Returns a hash code for this object.
|
getHandler, getNamegetSource, toStringpublic TreeExpansionEvent(Object source, TreeHandler handler, String name, TreeExpansionEvent.Type type, TreeNodePath path)
TreeExpansionEvent and initializes
it.source - the source of this eventhandler - the component handler affected (this is a handler for a
tree component)name - the name of the componenttype - the type of this eventpath - the path to the node whose state has changedpublic TreeNodePath getPath()
public TreeHandler getTreeHandler()
public TreeExpansionEvent.Type getType()
public int hashCode()
public boolean equals(Object obj)
Copyright © 2016 The JGUIraffe Team. All rights reserved.