|
Class: AbstractHierarchicalItemWithModel
Object
|
+--AbstractHierarchicalItem
|
+--AbstractHierarchicalItemWithModel
|
+--CompactHierarchicalItem
|
+--HierarchicalItem
- Package:
- stx:libwidg2
- Category:
- Views-Support
- Version:
- rev:
1.4
date: 2021/12/02 19:27:02
- user: cg
- file: AbstractHierarchicalItemWithModel.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
- Author:
- Claus Gittinger
documentation to be added.
[instance variables:]
[class variables:]
queries
-
isAbstract
-
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.
accessing-mvc
-
fetchModel
-
fetches the hierachicalList model by walking along the parent chain
up to an item which already knows its model.
This is a slightly less stupid implementation than the iinherited one
-
model
-
returns the hierachicalList model; fetches it if not yet known
This fixes the stupid implementation of the old HierarchicalItem,
by caching the fetched model (behaving the same, if there is no model)
-
model: aHierarchicalList
-
sets the hierachicalList model or nil.
If never set, the old (stupid) code which walks along the parent chain
will fetch the model o the fly.
By setting it explicitly, when the item is created, this is avoided.
-
modelOrNil
-
returns the hierachicalList model or nil.
Does NOT fetch the model if nil
|