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:] Class protocol:handling
Instance protocol:defaults |
|
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:40:57 GMT |