Package org.eclipse.swt.events
Class TreeAdapter
java.lang.Object
org.eclipse.swt.events.TreeAdapter
- All Implemented Interfaces:
- EventListener,- TreeListener,- SWTEventListener
This adapter class provides default implementations for the
 methods described by the 
TreeListener interface.
 
 Classes that wish to deal with TreeEvents can
 extend this class and override only the methods which they are
 interested in.
 
 An alternative to this class are the static helper methods
 TreeListener.treeCollapsedAdapter(java.util.function.Consumer)
 and
 TreeListener.treeExpandedAdapter(java.util.function.Consumer),
 which accept a lambda expression or a method reference that implements the event consumer.
 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSent when a tree branch is collapsed.voidSent when a tree branch is expanded.
- 
Constructor Details- 
TreeAdapterpublic TreeAdapter()
 
- 
- 
Method Details- 
treeCollapsedSent when a tree branch is collapsed. The default behavior is to do nothing.- Specified by:
- treeCollapsedin interface- TreeListener
- Parameters:
- e- an event containing information about the tree operation
 
- 
treeExpandedSent when a tree branch is expanded. The default behavior is to do nothing.- Specified by:
- treeExpandedin interface- TreeListener
- Parameters:
- e- an event containing information about the tree operation
 
 
-