|
| enum | { kDefaultIID = IID_IOBSERVER } |
| |
| bool16 | fDetachSubjectsOnDelete |
| |
| PMIID | fAttachIID |
| |
| const UIDRef | fThisRef |
| |
| bool16 | fEnabled |
| |
This implementation handles updating of the scroll bars and updates the table cell widget (kTableCellWidgetBoss).
| Binds the C implementation class onto its ImplementationID making the C code callable by the application * TableCellObserver::TableCellObserver | ( | IPMUnknown * | boss | ) | |
Constructor.
- Parameters
| boss | interface ptr from boss object on which this interface is aggregated. |
| TableCellObserver::~TableCellObserver | ( | | ) | |
| virtual |
| void TableCellObserver::AutoAttach | ( | void | | ) | |
| virtual |
Called by the application to allow the observer to attach to the subjects to be observed. AutoAttach is only called for registered observers of widgets. When AutoAttach is called from the app, we attach ourselves to scrollbars.
Reimplemented from CObserver.
| void TableCellObserver::AutoDetach | ( | void | | ) | |
| virtual |
Called by the application to allow the observer to detach from the subjects being observed. AutoDetach is only called for registered observers of widgets. When AutoDetach is called from the app, we detach ourselves to scrollbars.
Reimplemented from CObserver.
| void TableCellObserver::Update | ( | const ClassID & | theChange, | | | ISubject * | theSubject, | | | const PMIID & | protocol, | | | void * | changedBy | | ) | | |
| virtual |
Respond to a change in an observed subject. Called by the host when the observed object changes. Called for all registered observers, and is the method through which changes are broadcast. Our observer is attached to two scrollbar widget.
- Parameters
| theChange | theChange represents the change to an object, often this is a command id. |
| theSubject | theSubject is the subject that changed. |
| protocol | protocol is the interface of the subject's boss that changed. |
| changedBy | changedBy is used to pass additional data about the change, often this is a pointer to the command that caused the change. |
Implements IObserver.