Focusable

interface Focusable : Identifiable

Represents a GUI element which can receive focus. When a GUI element is focused it will receive activation events (Spacebar by default). A Focusable needs to be Identifiable as well to allow easy identification and lookup.

Functions

acceptsFocus
Link copied to clipboard
common
abstract fun acceptsFocus(): Boolean
Tells whether this Focusable accepts focus right now.
clearFocus
Link copied to clipboard
common
abstract fun clearFocus()
Clears focus from this Focusable.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
requestFocus
Link copied to clipboard
common
abstract fun requestFocus(): Boolean
Requests focus for this Focusable.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

hasFocus
Link copied to clipboard
common
abstract val hasFocus: Boolean
Tells whether this Focusable has focus or not.
hasFocusValue
Link copied to clipboard
common
abstract val hasFocusValue: ObservableValue<Boolean>
id
Link copied to clipboard
common
abstract val id: UUID

Inheritors

Component
Link copied to clipboard

Sources

(source)
Link copied to clipboard