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
| Name | Type | get | set | Descripton |
allowBrowserContextMenu |
Boolean |
![]() |
![]() |
Whether to allow the browser's default context menu |
captureComponent |
|
![]() |
![]() |
The component that currently has the mouse capture. It is
better to call setCapture
on the component directly. |
Methods
| Name | Description |
attachKeyboardEvents |
Adds the keyboard event listener to the browser so that these can be handled by the Bindows keyboard events |
attachMouseEvents |
Adds the mouse event listener to the browser so that these can be handled by the Bindows mouse events |
attachToWindow |
Attach the event manager to a browser window |
detachKeyboardEvents |
Removes the keyboard event listener from the browser when these are not needed any more |
detachMouseEvents |
Removes 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
| Name | Type | Optional | Default | Descripton |
oWindow |
Object |
The 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
