endNotificationForSubscriber
endNotificationForSubscriber(subscriber: Object);
The endNotificationForSubscriber method of the Object class terminates all previous:
-
beginNotification, beginClassNotification, and beginClassesNotification requests for the specified subscriber
-
beginNotificationForIF, beginClassNotificationForIF, and beginClassesNotificationForIF requests for the specified subscriber
The subscriber parameter specifies the subscriber whose registered notifications or implemented interface notifications are to be terminated.
The following example (from the Erewhon Investments example schema supplied on the JADE release medium) shows the use of the endNotificationForSubscriber method when clearing the contents of a list box and disabling notifications for the objects that were in the list.
clear() updating; begin // End all notifications endNotificationForSubscriber(self); // The list box is being cleared so clear our selected objects list zSelectedObjects.clear; if showUpdates and zCollectionOid <> null then // Turn notifications back on for the collection itself beginNotification(zCollectionOid.asOid.Collection, Any_System_Event, Response_Continuous, NotifyCollectionUpdate); endif; inheritMethod; end;