BiEventManager

This is the core class for the UI event system. Attach this to a browser window object to forward browser events to the correct component.

There is usually no need to use this class. It is created as needed by the core components

This class extends BiObject and therefore all methods and fields available for BiObject are also available for BiEventManager .

Constructor

new BiEventManager ( )

Parameters

No parameters.

Properties

NameTypegetsetDescripton
allowBrowserContextMenuBooleancheckedcheckedWhether to allow the browser's default context menu
captureComponentBiComponentcheckedcheckedThe component that currently has the mouse capture. It is better to call setCapture on the component directly.

Methods

NameDescription
attachKeyboardEventsAdds the keyboard event listener to the browser so that these can be handled by the Bindows keyboard events
attachMouseEventsAdds the mouse event listener to the browser so that these can be handled by the Bindows mouse events
attachToWindowAttach the event manager to a browser window
detachKeyboardEventsRemoves the keyboard event listener from the browser when these are not needed any more
detachMouseEventsRemoves the mouse event listener from the browser when these are not needed any more

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

Disposing the event manager will detach it from the window and detach mouse and keyboard events handlers.

Method Details

attachKeyboardEvents

Adds the keyboard event listener to the browser so that these can be handled by the Bindows keyboard events

Syntax

object.attachKeyboardEvents ( )

Parameters

No arguments.

Return Type

void

attachMouseEvents

Adds the mouse event listener to the browser so that these can be handled by the Bindows mouse events

Syntax

object.attachMouseEvents ( )

Parameters

No arguments.

Return Type

void

attachToWindow

Attach the event manager to a browser window

Syntax

object.attachToWindow ( oWindow )

Parameters

NameTypeOptionalDefaultDescripton
oWindowObjectThe browser window object to attach the events to

Return Type

void

detachKeyboardEvents

Removes the keyboard event listener from the browser when these are not needed any more

Syntax

object.detachKeyboardEvents ( )

Parameters

No arguments.

Return Type

void

detachMouseEvents

Removes the mouse event listener from the browser when these are not needed any more

Syntax

object.detachMouseEvents ( )

Parameters

No arguments.

Return Type

void