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.
and
TreeListener#treeExpandedAdapter(java.,
which accept a lambda expression or a method reference that implements the event consumer.
TreeListener, TreeEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | treeCollapsed(TreeEvent
an event containing information about the tree operation e)Implements org. |
| public void | treeExpanded(TreeEvent
an event containing information about the tree operation e)Implements org. |
| TreeAdapter | back to summary |
|---|---|
| public TreeAdapter() | |
| treeCollapsed | back to summary |
|---|---|
| public void treeCollapsed(TreeEvent e) Implements org. Sent when a tree branch is collapsed. The default behavior is to do nothing. | |
| treeExpanded | back to summary |
|---|---|
| public void treeExpanded(TreeEvent e) Implements org. Sent when a tree branch is expanded. The default behavior is to do nothing. | |