|
Smalltalk/X WebserverDocumentation of class 'Model': |
|
|
Class: ModelInheritance:Object | +--Model | +--ApplicationModel | +--HTTPServerSettingsAppl::PluggableServicesSettingsAppl::AvailableServiceItem | +--Menu | +--Plug | +--SelectionInHierarchy | +--SelectionInTree | +--TabItem | +--TabulatorSpecification | +--Tools::Inspector2::NavigationState | +--ValueModel
Description:
Models are things which represent information models, i.e. something
which holds the data for user interface components and on which these operate.
Basically, instances keep track of which components depend on them and
inform the dependents of any changes.
The Model class itself is abstract and not too useful, see subclasses,
especially, ValueHolder and SelectionInList.
Notice:
Actually the Model class is not really needed; since the dependency
mechanism is inherited by Object, you can take any object as a model.
However, instances of Model (and subclasses) keep the dependents locally
in an instance variable; thus speeding up access a bit.
Model redefines the dependency methods to use non-weak dependencies
(in contrast to weak dependencies used by Object).
[Instance variables:]
dependents <Collection> those objects which depend on me.
To save some storage, a single dependent
is kept directly here.
Otherwise, if there are multiple dependents,
a collection of dependents is held here.
Related information:
ValueHolder
SelectionInList
[introduction to view programming]
Class protocol:queriesInstance protocol:converting
Private classes:
ModelUpdateLockedQuery
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 06:30:52 GMT
|