Packagecom.yworks.bridge.util
Classpublic class EventObject
InheritanceEventObject Inheritance YObject Inheritance Object
Subclasses GraphEvent

EventObjects represent events. Typically applications subclass this class to add event specific information.

See also

java.util.EventListener


Public Properties
 PropertyDefined By
  source : Object
[read-only] Answers the event source.
EventObject
Protected Properties
 PropertyDefined By
  _source : Object
The event source.
EventObject
Public Methods
 MethodDefined By
  
EventObject(source:Object, init:Boolean = true)
Constructs a new instance of this class.
EventObject
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
EventObject
 Inherited
hashCode():int
YObject
  
[static] Constructs a new instance of this class.
EventObject
  
toString():String
Answers the string representation of this EventObject.
EventObject
Protected Methods
 MethodDefined By
  
initEventObject(source:Object):void
Initializes this object.
EventObject
Property Detail
_sourceproperty
protected var _source:Object

The event source.

sourceproperty 
source:Object  [read-only]

Answers the event source.


Implementation
    public function get source():Object
Constructor Detail
EventObject()Constructor
public function EventObject(source:Object, init:Boolean = true)

Constructs a new instance of this class.

Parameters
source:Object — the object which fired the event
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
getClass()method
override public function getClass():Class

Returns
Class
initEventObject()method 
protected final function initEventObject(source:Object):void

Initializes this object. See the documentation of the corresponding factory method newEventObject() for details.

Parameters

source:Object

See also

newEventObject()method 
public static function newEventObject(source:Object):EventObject

Constructs a new instance of this class.

Parameters

source:Object — the object which fired the event

Returns
EventObject
toString()method 
public function toString():String

Answers the string representation of this EventObject.

Returns
String — the string representation of this EventObject