Package org.apache.pivot.wtk
Class TreeViewBranchListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.TreeViewBranchListener.Adapter
-
- All Implemented Interfaces:
TreeViewBranchListener
- Enclosing interface:
- TreeViewBranchListener
@Deprecated public static class TreeViewBranchListener.Adapter extends java.lang.Object implements TreeViewBranchListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Tree view branch listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TreeViewBranchListener
TreeViewBranchListener.Adapter, TreeViewBranchListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
branchCollapsed(TreeView treeView, Sequence.Tree.Path path)
Deprecated.Called when a tree node is collapsed.void
branchExpanded(TreeView treeView, Sequence.Tree.Path path)
Deprecated.Called when a tree node is expanded.void
branchExpandedChangeVetoed(TreeView treeView, Sequence.Tree.Path path, Vote reason)
Deprecated.Called when thepreviewBranchExpandedChange()
tally produces anything but aVote.APPROVE
result (to say NOT to expand or collapse the branch).Vote
previewBranchExpandedChange(TreeView treeView, Sequence.Tree.Path path)
Deprecated.Called before a tree node is expanded or collapsed to allow the application or the skin to refuse the operation.
-
-
-
Method Detail
-
branchExpanded
public void branchExpanded(TreeView treeView, Sequence.Tree.Path path)
Deprecated.Description copied from interface:TreeViewBranchListener
Called when a tree node is expanded. This event can be used to perform lazy loading of tree node data.- Specified by:
branchExpanded
in interfaceTreeViewBranchListener
- Parameters:
treeView
- The source of the event.path
- The path of the node that was shown.
-
branchCollapsed
public void branchCollapsed(TreeView treeView, Sequence.Tree.Path path)
Deprecated.Description copied from interface:TreeViewBranchListener
Called when a tree node is collapsed.- Specified by:
branchCollapsed
in interfaceTreeViewBranchListener
- Parameters:
treeView
- The source of the event.path
- The path of the node that was collapsed.
-
previewBranchExpandedChange
public Vote previewBranchExpandedChange(TreeView treeView, Sequence.Tree.Path path)
Deprecated.Description copied from interface:TreeViewBranchListener
Called before a tree node is expanded or collapsed to allow the application or the skin to refuse the operation.- Specified by:
previewBranchExpandedChange
in interfaceTreeViewBranchListener
- Parameters:
treeView
- The source of the event.path
- The path of the node about to be collapsed or expanded.- Returns:
- The accumulated vote as to whether to allow this expansion or collapse.
-
branchExpandedChangeVetoed
public void branchExpandedChangeVetoed(TreeView treeView, Sequence.Tree.Path path, Vote reason)
Deprecated.Description copied from interface:TreeViewBranchListener
Called when thepreviewBranchExpandedChange()
tally produces anything but aVote.APPROVE
result (to say NOT to expand or collapse the branch). The application or skin can reverse any GUI changes that may have happened in the preview method.- Specified by:
branchExpandedChangeVetoed
in interfaceTreeViewBranchListener
- Parameters:
treeView
- The source of the event.path
- The path of the node whose state will remain the same.reason
- The tallied vote result that caused the veto.
-
-