Package | com.yworks.graph.model |
Class | public class PortEvent |
Inheritance | PortEvent GraphEvent flash.events.Event |
See also
Property | Defined By | ||
---|---|---|---|
graph : IGraph [read-only]
The graph that is the source of this graph event. | GraphEvent | ||
item : IModelItem [read-only]
The model item that was added, updated or removed. | GraphEvent | ||
kind : String
Gets or sets the kind of graph event this event informs about. | GraphEvent | ||
oldOwner : IPortOwner [read-only]
The owner of the port. | PortEvent |
Method | Defined By | ||
---|---|---|---|
PortEvent(type:String, item:IModelItem, oldOwner:IPortOwner, kind:String, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance. | PortEvent | ||
clone():Event [override]
| PortEvent |
oldOwner | property |
oldOwner:IPortOwner
[read-only] The owner of the port.
If the event is dispatched upon port removal this is the former owner.
public function get oldOwner():IPortOwner
PortEvent | () | Constructor |
public function PortEvent(type:String, item:IModelItem, oldOwner:IPortOwner, kind:String, graph:IGraph, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new instance.
Parameterstype:String — The type of the Event as String.
| |
item:IModelItem — The item to which this event is related.
| |
oldOwner:IPortOwner — The (former) owner of the item.
| |
kind:String — A String value which gives a closer specification of this event as defined by GraphEventKind .
| |
graph:IGraph — The graph to which this event is related.
| |
bubbles:Boolean (default = false ) — true if this event bubbles.
| |
cancelable:Boolean (default = false ) — true if this event is cancelable.
|
See also
clone | () | method |
override public function clone():Event
Returns
Event |