fun <T> command(action: (T) -> Unit, enabled: BooleanExpression = SimpleBooleanProperty(true), async: Boolean = false, ui: Boolean = false): Command<T>
Create a command with a non null parameter where the is a function reference.
fun <T> command(action: (T?) -> Unit, enabled: BooleanExpression = SimpleBooleanProperty(true), async: Boolean = false, ui: Boolean = false, nullable: Boolean = true): Command<T?>
Create a command with a nullable parameter where the is either a lambda or a function reference.
The noarg parameter is useless, but a trick to help Kotlin differentiate between the no null parameter version of this function.
fun <T> command(enabled: BooleanExpression = SimpleBooleanProperty(true), async: Boolean = false, ui: Boolean = false, nullable: Boolean = true, action: (T?) -> Unit): Command<T?>
Create a command with a nullable parameter where the is a lambda.
The noarg parameter is useless, but a trick to help Kotlin differentiate between the no null parameter version of this function.
fun command(action: () -> Unit, enabled: BooleanExpression = SimpleBooleanProperty(true), async: Boolean = false, ui: Boolean = false): Command<Any>
Create a parameterless command where the action is a function reference.
fun command(enabled: BooleanExpression = SimpleBooleanProperty(true), async: Boolean = false, ui: Boolean = false, action: () -> Unit): Command<Any>
Create a parameterless command where the action is a lambda. This overload allows the command to be defined as the last parameter