public abstract class TreeAdapter extends Object implements TreeListener
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.
TreeListener,
TreeEvent,
Sample code and further information| Constructor and Description |
|---|
TreeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
treeCollapsed(TreeEvent e)
Sent when a tree branch is collapsed.
|
void |
treeExpanded(TreeEvent e)
Sent when a tree branch is expanded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittreeCollapsedAdapter, treeExpandedAdapterpublic void treeCollapsed(TreeEvent e)
treeCollapsed in interface TreeListenere - an event containing information about the tree operationpublic void treeExpanded(TreeEvent e)
treeExpanded in interface TreeListenere - an event containing information about the tree operation
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.