Package org.eclipse.jface.viewers
Class TreeExpansionEvent
java.lang.Object
java.util.EventObject
org.eclipse.jface.viewers.TreeExpansionEvent
- All Implemented Interfaces:
Serializable
Event object describing a tree node being expanded
or collapsed. The source of these events is the tree viewer.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTreeExpansionEvent
(AbstractTreeViewer source, Object element) Creates a new event for the given source and element. -
Method Summary
Modifier and TypeMethodDescriptionReturns the element that got expanded or collapsed.Returns the originator of the event.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
TreeExpansionEvent
Creates a new event for the given source and element.- Parameters:
source
- the tree viewerelement
- the element
-
-
Method Details
-
getElement
Returns the element that got expanded or collapsed.- Returns:
- the element
-
getTreeViewer
Returns the originator of the event.- Returns:
- the originating tree viewer
-