eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SelectionInHierarchy':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SelectionInHierarchy


Inheritance:

   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

Description:


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.


Related information:

    HierarchyNode
    SelectionInHierarchyView
    SelectionInTree
    SelectionInTreeView
    TreeItem

Instance protocol:

accessing
o  getHierarchyNodeForContents: something
return the hierarchyNode whose contents is something

o  list
Answer a collection of nodes representing the
list of currently viewed objects.

o  root: aHierarchyNode
Set the root object - this means initialization.

o  selectedPath
Answer the pathName to the currently selected node.

o  setHideToChildren: aBoolean startingAt: aHierarchyNode
set the hide-Falg to aBoolean starting at aHierarchyNode down

o  showCompleteHierarchyStartingAtNode: aHierarchyNode
Set the hide-Flag to false for the hierarchy starting at aHierarchyNode

accessing-sequencable
o  addChildAndSubChildren: aHierarchyNode below: existingHierarchyNode after: aChild
Add a new HierarchyNode to the tree.

o  addChildAndSubChildren: aHierarchyNode below: existingHierarchyNode at: anIndex

adding & removing
o  add: aChild below: aParent
add a new HierarchyNode to the tree.

o  add: aChild belowIndex: aParentIndex
Add a new HierarchyNode to the tree below the node
which is found in the list at anIndex.

o  remove: aHierarchyNode
Remove aHierarchyNode and all its children.

o  removeBelow: existingHierarchyNode
Remove all children below an existingHierarchyNode .

o  removeBelowIndex: anIndex
Remove all the children of aHierarchyNode
which is found in the list at anIndex.

o  removeIndex: anIndex
Remove the HierarchyNode and all its children
which is found in the list at anIndex.

hierarchy manipulation
o  collapse
If possible, collapse the tree at the currently selected node.
The tree structure can be restored again with #expand.

o  collapseAll
If possible, collapse the tree at the currently selected node.
A latter #expand will show the next hierarchy level

o  expand
If possible, expand the tree
at the currently selected node.

o  expandAll
If possible, expand the tree completely to all leaves
at the currently selected node.

o  hideShow
If possible, expand or collaps the tree
at the currently selected node.

private
o  setNewList
Travers the tree and build a new list.

selection
o  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.

o  selectedNode
returns current selected node or nil

o  selection
get the selection or nil

o  selection: anIndexOrNil
set the selection

o  selectionIndex
get the selection or nil

o  selectionIndex: anIndexOrNil
set the selection

testing & debugging
o  root
get the root node



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 10:41:24 GMT