ComponentEvent

data class ComponentEvent(type: ComponentEventType) : UIEvent

A ComponentEvent is a component-specific event which only happens in the context of Components (not for plain TileGrids and Screens. A ComponentEvent can be originated from other UIEvents like KeyboardEvent and MouseEvent or it can also come from programmatic sources (like Component.requestFocus).

ComponentEvents don't have UIEventPhases, but handlers can influence the ComponentEvent processing by returning PreventDefault or StopPropagation.

Constructors

ComponentEvent
Link copied to clipboard
common
fun ComponentEvent(type: ComponentEventType)

Functions

component1
Link copied to clipboard
common
operator fun component1(): ComponentEventType
copy
Link copied to clipboard
common
fun copy(type: ComponentEventType): ComponentEvent
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

type
Link copied to clipboard
common
open override val type: ComponentEventType
The type of the ComponentEvent.

Sources

(source)
Link copied to clipboard