mrcontainer__define.pro


Name:
mrContainer
Methods:
Constructor
mrContainer::init            : constructor, no arguments

Overloaded methods
mrContainer::add             : sends notification events after adding
mrContainer::move            : sends notification event after moving
mrContainer::remove          : sends notification event after remove

Notification
mrContainer::notify          : see mrNotify::notify
mrContainer::enableNotify    : see mrNotify::enableNotify
mrContainer::disableNotify   : see mrNotify::disableNotify

Private functions
mrContainer__define          : the constructor
mrContainer::cleanup         : the destructor
Description:
An IDL_Container with added notification functionality upon
content change. Possible event types are 'add', 'remove' and 'move'.
Notifications are sent after the corresponding container method
has been executed. Notification methods are called without any
mrContainer-specific argument, i.e. only the object reference and the
event type are passed on.
Example code:
ct = obj_new('mrContainer)
ct->notify, myobj, 'notifyfunc', ['add,'remove']
...
pro myobj::notifyfunc, sender, event
print, 'Container sent a ' + event + ' event
end

Name:
mrContainer::init
Syntax:
obj = obj_new('mrContainer')
Notification is switched on by default.

Name:
mrContainer::cleanup
Description:
Free allocated memory and call superclass destructor

Name:
mrContainer::add
Syntax:
See IDL_Container
Description:
Calls IDL_Container::add and then notifies registered objects

Name:
mrContainer::move
Syntax:
See IDL_Container
Description:
Calls IDL_Container::move and then notifies registered objects

Name:
mrContainer::remove
Syntax:
See IDL_Container
Description:
Calls IDL_Container::remove and then notifies registered objects

Name:
mrContainer__define
Description:
The constructor.

Last modified: Mon Nov 29 13:30:05 2004