eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'AbstractHierarchicalItemWithModel':

Home

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

Class: AbstractHierarchicalItemWithModel


Inheritance:

   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

Description:


documentation to be added.


[instance variables:]

[class variables:]


Related information:



Class protocol:

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


Instance protocol:

accessing-mvc
o  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

o  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)

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

o  modelOrNil
returns the hierachicalList model or nil.
Does NOT fetch the model if nil



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 04:00:17 GMT