tornadofx / tornadofx / EventBus

EventBus

class EventBus

Types

RunOn enum class RunOn

Constructors

<init> EventBus()

Functions

fire fun fire(event: FXEvent): Unit
subscribe fun <T : FXEvent> subscribe(scope: Scope, registration: FXEventRegistration): Unit
fun <T : FXEvent> subscribe(event: KClass<T>, scope: Scope, registration: FXEventRegistration): Unit
fun <T : FXEvent> subscribe(owner: Component? = null, times: Long? = null, scope: Scope, action: (T) -> Unit): Unit
fun <T : FXEvent> subscribe(owner: Component? = null, times: Long? = null, event: KClass<T>, scope: Scope, action: (T) -> Unit): Unit
fun <T : FXEvent> subscribe(owner: Component? = null, times: Long? = null, event: Class<T>, scope: Scope, action: (T) -> Unit): Unit
unsubscribe fun <T : FXEvent> unsubscribe(action: EventContext.(T) -> Unit): Unit
fun <T : FXEvent> unsubscribe(event: Class<T>, action: EventContext.(T) -> Unit): <ERROR CLASS>
fun <T : FXEvent> unsubscribe(event: KClass<T>, action: EventContext.(T) -> Unit): Unit
fun unsubscribe(registration: EventRegistration): Unit

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>