Class TabSelectEvent

A tab selection TricklingEvent. Dispatched when tab is pressed and either the keyboard-focused widget doesn't capture the event, or when manually dispatched.

For internal use only. Do not use this event unless you know what you're doing.

Hierarchy (view full)

Constructors

Properties

focusType

The focus type of this event. Can be null.

If null, this event cannot be focused, since events are focused by their FocusType as a group.

needsFocus

Can this event be dispatched without a target?

propagation: Trickling

Which event propagation model is this event type using?

reachedRelative: boolean

A working value; has the widget that this event is relative to been reached?

If false, then the Root should be searched until TabSelectEvent#relativeTo is reached, then, set this to true. If true, then the next visited widget that has a Widget#tabFocusable value of true will be focused.

Note that if TabSelectEvent#relativeTo is null, then this will be true by default.

relativeTo: null | Widget

The widget that the tab selected will be done relative to.

reversed: boolean

Is this event dispatched in reverse-order?

target

The target of this event. Since this is an untargetable event, this will always be null.

type

The type of this event instance. Compare this against the static WidgetEvent."type" in the class or a known string value. Comparing this value and doing an instanceof check must be equivalent.

userCapturable

Is this event capturable by user event handlers?

Note that if the event does not propagate, capturing the event still has an effect; events are handled in the order for which the handlers were added, meaning that if a handler captures the event, the other handlers won't be called.

__lw_internal_targetWarned: boolean

Internal flag. Marks a class as having warned the user that the event is untergetable in the case that the event is cloned with a target set.

type: "tab-select" = 'tab-select'

The type of this event class. Each event type should be unique, and have a unique class.

Due to Typescript limitations, no compile error is thrown when this static field is not set at a sub-class. Despite this, the type must be set to a unique string value.

Methods

  • Check if the type of this event instance matches the type of a given event class, asserting that the instance is of the class' type.

    Type Parameters

    Parameters

    • clazz: (new (...args: any[]) => E)
        • new (...args): E
        • Parameters

          • Rest...args: any[]

          Returns E

    Returns this is E