|
Smalltalk/X WebserverDocumentation of class 'Model::ModelUpdateLockedQuery': |
|
|
Class: ModelUpdateLockedQuery (private in ModelThis class is only visible from within Model.Inheritance:Object | +--GenericException | +--Notification | +--Query | +--Model::ModelUpdateLockedQuery
Description:
this query can answer true (ie. ''isLocked'') for a particular model,
while inside a updating block.
This is used for temporal blocking models to be changed
(eg. to prevent cyclic updates).
A particular application of this is found in input-field + tree selection
combinations, where entering a new value into the field changes the treeselection,
and also tree selection changes the input field's value.
Concrete: take a look at the XMLInspector's xpath field, which triggers a tree
selection change, but the selection change should not backfire on the field in this
case, whereas a regular tree-selection will change the field.
Notice:
do NOT place the query into the general value: method of Model.
This is too expensive to be done every time.
Thus, the related models need to know about the interlocking and
must do this individually.
see example
[instance variables:]
[class variables:]
Related information:Class protocol:handling
Instance protocol:defaults |
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 08:30:58 GMT
|