class VMApplication view source

Object that represents an application of a VM Session

Constructor

new VMApplication()

Instance members

emit(type : string, arguments… : any)
[inherits from EventListener]

Emit an event

Parameters

type string event type to emit
arguments any arguments (excluding type) will be set in event.data

getFocusedVMNode() : (NodeBase)

Get the VM Focused Node instance

Returns

(NodeBase) The VM focused node

getNode(id : number) : (NodeBase)

Get application instantiated node by its Aui Id

Parameters

id number the node id

Returns

(NodeBase) the node, if found

getSession() : (VMSession)

Get the owning session

Returns

(VMSession) The owning session

isDestroyed() : (boolean)
[inherits from EventListener]

Returns if the node is destroyed

Returns

(boolean) true if node is destroyed

when(type : string, handler : Hook, once : boolean) : (HandleRegistration)
[inherits from EventListener]

Registers a handler for this event type

Parameters

type string event type (e.g. "attribute changed")
handler Hook handler to trigger when the event type is emitted
once boolean if true, will only fire once

Returns

(HandleRegistration) a registration handle (for unbind purpose)