Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

event.EventData class

Package: event
Superclasses: handle

Base class for event data

Description

The event.EventData class is the base class for all data objects passed to listeners. When you trigger an event using the notify handle class method, MATLAB® assigns values to the properties of an event.EventData object and passes that object to the listener callback function (the event handler).

To provide additional information to event listeners, subclass event.EventData. For more information on custom event data, see Define Event-Specific Data.

Note

Subclasses of event.EventData must set the class ConstructOnLoad attribute to true.

Create event.EventData Object

The notify handle class method creates an event.EventData object whenever this method is called. event.EventData accepts no input arguments. Subclasses of event.EventData cannot pass arguments to the superclass constructor.

Properties

expand all

Event source object, specified as a handle to the object that generated the event.

Attributes:

SetAccessprivate
GetAccesspublic
GetObservabletrue
SetObservabletrue

Name of the event

Attributes:

SetAccessprivate
GetAccesspublic
GetObservabletrue
SetObservabletrue

Data Types: char

Events

ObjectBeingDestroyed

Triggered when object is destroyed.

Attributes

ConstructOnLoadtrue
HandleCompatibletrue

To learn about attributes of classes, see Class Attributes.

Introduced in R2008a

Was this topic helpful?