| Contents | Index |
The meta.event class provides information about MATLAB class events. The read/write properties of the meta.event class correspond to event attributes and are specified only from within class definitions.
You can query the read-only properties of the meta.event object to obtain information that is specified syntactically by the class (for example, to obtain the name of the class defining the event).
You cannot instantiate a meta.event object directly. Obtain a meta.event object from the meta.class EventList property, which contains an array of meta.event objects, one for each event defined by the class. For example, replace ClassName with the name of the class whose events you want to query:
mco = ?ClassName;
elist = mco.EventList;
elist(1).Name; % name of first event in list
Use the metaclass function to obtain a meta.class object from a class instance:
mco = metaclass(obj);
| Property | Purpose |
|---|---|
| Name read only | Name of the event. |
| Description read only | Currently not used |
| DetailedDescription read only | Currently not used |
| Hidden | If true, the event does not appear in the list of events returned by the events function (or other event listing functions or viewers) |
| ListenAccess | Determines where you can create listeners for the event.
|
| NotifyAccess | Determines where code can trigger the event.
|
| DefiningClass | The meta.class object representing the class that defines this event. |
meta.class | meta.method | meta.property | metaclass
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |