meta.event

meta.event class describes MATLAB® class events

Description

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).

Obtain a meta.event object from the meta.class Events property, which contains a cell array of meta.event objects, one for each event defined by the class. For example:

mco = ?classname;
eventcell = mco.Events;
eventcell{1}.Name; % name of first event

Use the metaclass function to obtain a meta.class object from a class instance:

mco = metaclass(obj);

Properties

PropertyPurpose
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.

  • public — unrestricted access

  • protected — access from methods in class or derived classes

  • private — access by class methods only (not from derived classes)

NotifyAccess

Determines where code can trigger the event.

  • public — any code can trigger event

  • protected — can trigger event from methods in class or derived classes

  • private — can trigger event by class methods only (not from derived classes)

DefiningClassThe meta.class object representing the class that defines this event.

See Also

meta.class, meta.property, meta.method, metaclass

Events — Sending and Responding to Messages

Obtaining Information About Classes with Meta-Classes

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS