Top Description Constructors Methods
org.eclipse.swt.events

public abstract Class TreeAdapter

extends Object
implements TreeListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.events.TreeListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

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.

See Also
TreeListener, TreeEvent, Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
treeCollapsed(TreeEvent
an event containing information about the tree operation
e
)

Implements org.eclipse.swt.events.TreeListener.treeCollapsed.

Sent when a tree branch is collapsed.
public void
treeExpanded(TreeEvent
an event containing information about the tree operation
e
)

Implements org.eclipse.swt.events.TreeListener.treeExpanded.

Sent when a tree branch is expanded.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TreeAdapterback to summary
public TreeAdapter()

Method Detail

treeCollapsedback to summary
public void treeCollapsed(TreeEvent e)

Implements org.eclipse.swt.events.TreeListener.treeCollapsed.

Sent when a tree branch is collapsed. The default behavior is to do nothing.

Parameters
e:TreeEvent

an event containing information about the tree operation

Annotations
@Override
treeExpandedback to summary
public void treeExpanded(TreeEvent e)

Implements org.eclipse.swt.events.TreeListener.treeExpanded.

Sent when a tree branch is expanded. The default behavior is to do nothing.

Parameters
e:TreeEvent

an event containing information about the tree operation

Annotations
@Override