|
Class: SelectionInHierarchy
Object
|
+--Model
|
+--SelectionInHierarchy
- Package:
- stx:libwidg2
- Category:
- Interface-Support-Models
- Version:
- rev:
1.16
date: 2018/12/24 13:11:18
- user: cg
- file: SelectionInHierarchy.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
- Author:
- W. Olberding AEG Factory Automation
THIS CLASS IS OBSOLETE - use HierarchicalListView
model for a selection in a hierarchical list.
See examples in SelectionInHierarchyView.
Notice: this class was provided for free by a customer
It is more or less obsoleted by SelectionInTree, which provides
similar (but more sphisticated) functionality.
SelectionInHierarchy remains in the system for backward compatibility.
HierarchyNode
SelectionInHierarchyView
SelectionInTree
SelectionInTreeView
TreeItem
accessing
-
getHierarchyNodeForContents: something
-
return the hierarchyNode whose contents is something
-
list
-
Answer a collection of nodes representing the
list of currently viewed objects.
-
root: aHierarchyNode
-
Set the root object - this means initialization.
-
selectedPath
-
Answer the pathName to the currently selected node.
-
setHideToChildren: aBoolean startingAt: aHierarchyNode
-
set the hide-Falg to aBoolean starting at aHierarchyNode down
-
showCompleteHierarchyStartingAtNode: aHierarchyNode
-
Set the hide-Flag to false for the hierarchy starting at aHierarchyNode
accessing-sequencable
-
addChildAndSubChildren: aHierarchyNode below: existingHierarchyNode after: aChild
-
Add a new HierarchyNode to the tree.
-
addChildAndSubChildren: aHierarchyNode below: existingHierarchyNode at: anIndex
-
adding & removing
-
add: aChild below: aParent
-
add a new HierarchyNode to the tree.
-
add: aChild belowIndex: aParentIndex
-
Add a new HierarchyNode to the tree below the node
which is found in the list at anIndex.
-
remove: aHierarchyNode
-
Remove aHierarchyNode and all its children.
-
removeBelow: existingHierarchyNode
-
Remove all children below an existingHierarchyNode .
-
removeBelowIndex: anIndex
-
Remove all the children of aHierarchyNode
which is found in the list at anIndex.
-
removeIndex: anIndex
-
Remove the HierarchyNode and all its children
which is found in the list at anIndex.
hierarchy manipulation
-
collapse
-
If possible, collapse the tree at the currently selected node.
The tree structure can be restored again with #expand.
-
collapseAll
-
If possible, collapse the tree at the currently selected node.
A latter #expand will show the next hierarchy level
-
expand
-
If possible, expand the tree
at the currently selected node.
-
expandAll
-
If possible, expand the tree completely to all leaves
at the currently selected node.
-
hideShow
-
If possible, expand or collaps the tree
at the currently selected node.
private
-
setNewList
-
Travers the tree and build a new list.
selection
-
doubleClickSelection: anIndex
-
Set the current selected object to be the element
at anIndex of the selection list.
Also expand or collapse the tree at that point.
-
selectedNode
-
returns current selected node or nil
-
selection
-
get the selection or nil
-
selection: anIndexOrNil
-
set the selection
-
selectionIndex
-
get the selection or nil
-
selectionIndex: anIndexOrNil
-
set the selection
testing & debugging
-
root
-
get the root node
|