event.proplistener Class
Namespace: event
Superclasses: event.listener
Class defining listener objects for property events
Description
The event.proplistener is a subclass of event.listener that defines listener objects for class properties. An
event.proplistener object responds to a specific property event by executing
a callback function.
The event.proplistener class is a handle class.
Class Attributes
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
Description
pListener = event.proplistener(
creates a property listener object for one or more properties defined by the source object
eventSource,props,propEventName,callbackFcn)eventSource and identifies a function handle to the callback
function.
Input Arguments
Properties
Tips
addlistenercreates a listener that is tied to the lifecycle of the objects being listened to. However, creating a listener by calling theevent.proplistenerconstructor or callinglistenercreates a listener that is not tied to the lifecycle of the objects.The
event.proplistenerand theevent.listenerclasses are part of the same heterogeneous hierarchy. Therefore, you can create arrays that contain objects of both classes. The class of an array containing both classes of objects isevent.listener.
Version History
Introduced in R2008a