GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — EventObject | @maxgraph/core

  • EventObject

Class EventObject

EventObject is a wrapper for all properties of a single event.

Additionally, it also offers functions to consume the event and check if it was consumed as follows:

evt.consume();
INV: evt.isConsumed() == true
  • Defined in view/event/EventObject.ts:33
Index

Constructors

constructor

Properties

consumed name properties

Methods

consume getName getProperties getProperty isConsumed

Constructors

constructor

  • new EventObject(name?: string, ...args: any[]): EventObject

    Constructs a new event object with the specified name. An optional sequence of key, value pairs can be appended to define properties.

    Example:

    new EventObject("eventName", key1, val1, .., keyN, valN)
    

    Parameters

    • name: string = ''
    • ...args: any[]

    Returns EventObject

    • Defined in view/event/EventObject.ts:47

Properties

consumed

consumed: boolean = false

Holds the consumed state. Default is false.

  • Defined in view/event/EventObject.ts:79

name

name: string

Holds the name.

  • Defined in view/event/EventObject.ts:69

properties

properties: EventProperties

Holds the properties as an associative array.

  • Defined in view/event/EventObject.ts:74

Methods

consume

  • consume(): void

    Consumes the event.

    Returns void

    • Defined in view/event/EventObject.ts:112

getName

  • getName(): string

    Returns .

    Returns string

    • Defined in view/event/EventObject.ts:84

getProperties

  • getProperties(): EventProperties

    Returns .

    Returns EventProperties

    • Defined in view/event/EventObject.ts:91

getProperty

  • getProperty(key: string): any

    Returns the property for the given key.

    Parameters

    • key: string

    Returns any

    • Defined in view/event/EventObject.ts:98

isConsumed

  • isConsumed(): boolean

    Returns true if the event has been consumed.

    Returns boolean

    • Defined in view/event/EventObject.ts:105

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Properties
consumednameproperties
Methods
consumegetNamegetPropertiesgetPropertyisConsumed
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.