BiEvent

The event class is the core class describing the event objects passed around in an event.

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

Constructor

new BiEvent ( sType )

Parameters

NameTypeOptionalDefaultDescripton
sTypeStringThe type (name) of the event. The argument is used in the addEventListener to know which listeners to notify.

Properties

NameTypegetsetDescripton
bubblesBooleancheckedWhether the event bubbles to the parent component.
currentTargetBiEventTargetcheckedThe BiEventTarget that the event handler was added to. This is not the same as the target in case the event has bubbled.
defaultPreventedBooleancheckedIf the default event should be prevented. This becomes true after calling preventDefault
propagationStoppedBooleancheckedIf the propagation has been stopped. This is true after stopPropagation has been called and this means that bubbling events will not bubble up to the parent of the current target component
targetBiEventTargetcheckedThe BiEventTarget that initially dispatched the event.
typeStringcheckedcheckedThe type (name) of the event.

Methods

NameDescription
preventDefaultSome events have a default action associated with them and if so then calling this method will prevent that action from happening.
stopPropagationIf the event can bubble then this stops the propagation of the event bubbling after all the listeners on the current BiEventTarget have been notified.

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

None.

Method Details

preventDefault

Some events have a default action associated with them and if so then calling this method will prevent that action from happening.

Syntax

object.preventDefault ( )

Parameters

No arguments.

Return Type

void

stopPropagation

If the event can bubble then this stops the propagation of the event bubbling after all the listeners on the current BiEventTarget have been notified.

Syntax

object.stopPropagation ( )

Parameters

No arguments.

Return Type

void