Package org.apache.pivot.wtk
Interface TreeViewNodeListener
-
- All Known Implementing Classes:
TerraTreeViewSkin
,TreeViewNodeListener.Adapter
,TreeViewNodeListener.Listeners
public interface TreeViewNodeListener
Tree view node listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TreeViewNodeListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
TreeViewNodeListener.Listeners
Tree view node listener list.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
nodeInserted(TreeView treeView, Sequence.Tree.Path path, int index)
Called when a node has been inserted into the tree view.default void
nodesCleared(TreeView treeView, Sequence.Tree.Path path)
Called when the nodes in a branch have been cleared.default void
nodesRemoved(TreeView treeView, Sequence.Tree.Path path, int index, int count)
Called when nodes have been removed from the tree view.default void
nodesSorted(TreeView treeView, Sequence.Tree.Path path)
Called when the nodes in a branch have been sorted.default void
nodeUpdated(TreeView treeView, Sequence.Tree.Path path, int index)
Called when a node in the tree view has been updated.
-
-
-
Method Detail
-
nodeInserted
default void nodeInserted(TreeView treeView, Sequence.Tree.Path path, int index)
Called when a node has been inserted into the tree view.- Parameters:
treeView
- The source of this event.path
- The path to the branch where the node was inserted.index
- The index of the newly inserted node within the branch.
-
nodesRemoved
default void nodesRemoved(TreeView treeView, Sequence.Tree.Path path, int index, int count)
Called when nodes have been removed from the tree view.- Parameters:
treeView
- The source of this event.path
- The path to the branch where the node(s) were removed.index
- The index to the first removed node within the branch.count
- The number of nodes that were removed, or-1
if all nodes were removed.
-
nodeUpdated
default void nodeUpdated(TreeView treeView, Sequence.Tree.Path path, int index)
Called when a node in the tree view has been updated.- Parameters:
treeView
- The source of this event.path
- Path to the branch that is the parent of the updated node.index
- Index of the updated node within the branch.
-
nodesCleared
default void nodesCleared(TreeView treeView, Sequence.Tree.Path path)
Called when the nodes in a branch have been cleared.- Parameters:
treeView
- The source of this event.path
- Path to the branch where the nodes were cleared.
-
nodesSorted
default void nodesSorted(TreeView treeView, Sequence.Tree.Path path)
Called when the nodes in a branch have been sorted.- Parameters:
treeView
- The source of this event.path
- Path to the branch where the nodes were sorted.
-
-