About Implementing Notification

Concrete classes that inherit from the abstract INotifier class must implement its protocol. This includes the following:

The IStandardNotifier class implements the notifier protocol and provides the base support for nonvisual parts. For visual parts, the notifier protocol is implemented in subclasses of IWindow. The notification under the IWindow classes occurs primarily using the existing handler classes.

To implement notification, your new nonvisual part can either inherit from IStandardNotifier or contain an IStandardNotifier instance. To use inheritance, specify IStandardNotifier (or a derived notifier class) as the base class when you create the part in VisualAge. If you do not specify a standard notifier as the base class, VisualAge assumes you want the part to notify using containment and generates the appropriate source code by default.

You can override the notification behavior that is provided by default through containment; this requires you write some code to be included in the generated class code. Follow these steps:


Related concepts
Notifiers and Observers

Related procedures
Preparing for Code Generation