Class “EventObject”
Base class for all events fired by the framework. Instances may include additional properties, which are documented together with the event type. Change events also have a value
property.
When the trigger method is called with a new instance of EventObject
, type
, target
and timeStamp
are initialized automatically.
Type: | EventObject<TargetType> extends Object |
Generics: | TargetType: The type of the target. Defaults to undefined . |
Constructor: | public |
Singleton: | No |
Namespace: | tabris |
Direct subclasses: | None |
JSX Support: | No |
Constructor
new EventObject()
Properties
target
The object that fired the event.
Type: | TargetType |
Settable: | No |
This property can only be set via constructor. Once set, it cannot change anymore.
timeStamp
The time at which the event was created, in milliseconds.
Type: | number |
Settable: | No |
This property can only be set via constructor. Once set, it cannot change anymore.
type
The event type.
Type: | string |
Settable: | No |
This property can only be set via constructor. Once set, it cannot change anymore.