|
Smalltalk/X WebserverDocumentation of class 'UserConfirmation': |
|
|
Class: UserConfirmationInheritance:Object | +--GenericException | +--Notification | +--UserConfirmation | +--ProvideAnswerNotification
Description:
This confirmation query is used when a user confirmation is required
somewhere within a model's operation (i.e. in non-GUI code).
Instead of directly asking via Dialog confirm... messages,
this should be raised.
Its default behavior is the same as the above dialog.
However, the query can be caught and answered by an exceoptn (a query-) handler,
to suppress these GUI interactions in situations, where they are not wanted.
This is a much better approach to the alternatives:
passing additional 'doConfirm' arguments down from the high level caller
keeping the doConfirm settings in a passed down flag object
keeping the flag in a global (very bad)
keeping it in a class var (almost as bad)
Notice: that's one of the nice consequences of proceedable exceptions.
Related information:
Query
Notification
Exception
Instance protocol:accessing
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 08:35:59 GMT
|