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
addlistener
creates a listener that is tied to the lifecycle of the objects being listened to. However, creating a listener by calling theevent.proplistener
constructor or callinglistener
creates a listener that is not tied to the lifecycle of the objects.The
event.proplistener
and theevent.listener
classes 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