public abstract class TreeAdapter extends Object implements TreeListener
TreeListener
interface.
Classes that wish to deal with TreeEvent
s 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 informationConstructor 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, wait
treeCollapsedAdapter, treeExpandedAdapter
public void treeCollapsed(TreeEvent e)
treeCollapsed
in interface TreeListener
e
- an event containing information about the tree operationpublic void treeExpanded(TreeEvent e)
treeExpanded
in interface TreeListener
e
- an event containing information about the tree operation
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.