tornadofx / tornadofx / Command

Command

open class Command<in T>

Constructors

<init> Command(action: (T?) -> Unit, enabled: BooleanExpression = SimpleBooleanProperty(true), async: Boolean = false, ui: Boolean = false)

Properties

action val action: (T?) -> Unit
async val async: Boolean
enabled val enabled: BooleanExpression
isEnabled val isEnabled: Boolean
isRunning val isRunning: Boolean
running val running: ReadOnlyBooleanProperty
ui val ui: Boolean

Functions

execute fun execute(): Unit
fun execute(param: T?): Unit

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
invoke operator fun Command<*>.invoke(parameter: Any?): CommandWithParameter
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>
with infix fun Command<*>.with(parameter: Any?): CommandWithParameter

Inheritors

CommandWithParameter class CommandWithParameter : Command<Any?>