tornadofx / tornadofx / BindingAwareSimpleIntegerProperty

BindingAwareSimpleIntegerProperty

class BindingAwareSimpleIntegerProperty : SimpleIntegerProperty, BindingAwareProperty<Number>

Constructors

<init> BindingAwareSimpleIntegerProperty(viewModel: ViewModel, name: String?)

Functions

bind fun bind(rawObservable: ObservableValue<out Number>?): Unit
bindBidirectional fun bindBidirectional(other: Property<Number>?): Unit

Inherited Functions

recordBinding open fun recordBinding(observableValue: ObservableValue<*>?): Unit

Extension Properties

isDirty val <T> Property<T>.isDirty: Boolean

Check if a given property from the ViewModel is dirty. This is a shorthand form of:

isNotDirty val <T> Property<T>.isNotDirty: Boolean
viewModel val Property<*>.viewModel: ViewModel?

Extract the ViewModel from a property that is bound towards a ViewModel Facade

viewModelFacade val ObservableValue<*>.viewModelFacade: Property<*>?

Extract the ViewModel Facade from a property that is bound towards it

Extension Functions

addValidator fun <T> Property<T>.addValidator(node: Node, trigger: ValidationTrigger = ValidationTrigger.OnChange(), validator: ValidationContext.(T?) -> ValidationMessage?): <ERROR CLASS>

Add the given validator to a property that resides inside a ViewModel. The supplied node will be decorated by the current decorationProvider for this context inside the ViewModel of the property if validation fails.

animate fun <T> WritableValue<T>.animate(endValue: T, duration: Duration, interpolator: Interpolator? = null, op: Timeline.() -> Unit = {}): Unit
assignIfNull fun <T> WritableValue<T>.assignIfNull(creator: () -> T): Unit

Assign the value from the creator to this WritableValue if and only if it is currently null

awaitUntil fun <T> ObservableValue<T>.awaitUntil(condition: (T) -> Boolean): Unit

Wait on the UI thread until a certain value is available on this observable.

booleanBinding fun <T> ObservableValue<T>.booleanBinding(vararg dependencies: Observable, op: (T?) -> Boolean): BooleanBinding
cleanBind fun <T> Property<T>.cleanBind(observable: ObservableValue<T>): Unit

Binds this property to an observable, automatically unbinding it before if already bound.

compareTo operator fun ObservableIntegerValue.compareTo(other: Number): Int
operator fun ObservableIntegerValue.compareTo(other: ObservableNumberValue): Int
div operator fun IntegerExpression.div(other: Int): IntegerBinding
operator fun IntegerExpression.div(other: Long): LongBinding
operator fun IntegerExpression.div(other: Float): FloatBinding
operator fun IntegerExpression.div(other: Double): DoubleBinding
operator fun IntegerExpression.div(other: ObservableIntegerValue): IntegerBinding
operator fun IntegerExpression.div(other: ObservableLongValue): LongBinding
operator fun IntegerExpression.div(other: ObservableFloatValue): FloatBinding
operator fun IntegerExpression.div(other: ObservableDoubleValue): DoubleBinding
divAssign operator fun IntegerProperty.divAssign(other: Number): Unit
operator fun IntegerProperty.divAssign(other: ObservableNumberValue): Unit
doubleBinding fun <T> ObservableValue<T>.doubleBinding(vararg dependencies: Observable, op: (T?) -> Double): DoubleBinding
eq infix fun NumberExpression.eq(other: Int): BooleanBinding
infix fun NumberExpression.eq(other: Long): BooleanBinding
infix fun NumberExpression.eq(other: ObservableNumberValue): BooleanBinding
floatBinding fun <T> ObservableValue<T>.floatBinding(vararg dependencies: Observable, op: (T?) -> Float): FloatBinding
ge infix fun NumberExpression.ge(other: Int): BooleanBinding
infix fun NumberExpression.ge(other: Long): BooleanBinding
infix fun NumberExpression.ge(other: Float): BooleanBinding
infix fun NumberExpression.ge(other: Double): BooleanBinding
infix fun NumberExpression.ge(other: ObservableNumberValue): BooleanBinding
getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
gt infix fun NumberExpression.gt(other: Int): BooleanBinding
infix fun NumberExpression.gt(other: Long): BooleanBinding
infix fun NumberExpression.gt(other: Float): BooleanBinding
infix fun NumberExpression.gt(other: Double): BooleanBinding
infix fun NumberExpression.gt(other: ObservableNumberValue): BooleanBinding
integerBinding fun <T> ObservableValue<T>.integerBinding(vararg dependencies: Observable, op: (T?) -> Int): IntegerBinding
le infix fun NumberExpression.le(other: Int): BooleanBinding
infix fun NumberExpression.le(other: Long): BooleanBinding
infix fun NumberExpression.le(other: Float): BooleanBinding
infix fun NumberExpression.le(other: Double): BooleanBinding
infix fun NumberExpression.le(other: ObservableNumberValue): BooleanBinding
longBinding fun <T> ObservableValue<T>.longBinding(vararg dependencies: Observable, op: (T?) -> Long): LongBinding
lt infix fun NumberExpression.lt(other: Int): BooleanBinding
infix fun NumberExpression.lt(other: Long): BooleanBinding
infix fun NumberExpression.lt(other: Float): BooleanBinding
infix fun NumberExpression.lt(other: Double): BooleanBinding
infix fun NumberExpression.lt(other: ObservableNumberValue): BooleanBinding
markDirty fun Property<*>.markDirty(): Unit?

Mark this ViewModel facade property as dirty in its owning ViewModel.

minus operator fun IntegerExpression.minus(other: Int): IntegerBinding
operator fun IntegerExpression.minus(other: Long): LongBinding
operator fun IntegerExpression.minus(other: Float): FloatBinding
operator fun IntegerExpression.minus(other: Double): DoubleBinding
operator fun IntegerExpression.minus(other: ObservableIntegerValue): IntegerBinding
operator fun IntegerExpression.minus(other: ObservableLongValue): LongBinding
operator fun IntegerExpression.minus(other: ObservableFloatValue): FloatBinding
operator fun IntegerExpression.minus(other: ObservableDoubleValue): DoubleBinding
minusAssign operator fun IntegerProperty.minusAssign(other: Number): Unit
operator fun IntegerProperty.minusAssign(other: ObservableNumberValue): Unit
mutateOnChange fun <T> Property<T>.mutateOnChange(mutator: (T?) -> T?): <ERROR CLASS>

Listen to changes and update the value of the property if the given mutator results in a different value

objectBinding fun <T, R> ObservableValue<T>.objectBinding(vararg dependencies: Observable, op: (T?) -> R?): Binding<R?>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>
onChange fun <T> ObservableValue<T>.onChange(op: (T?) -> Unit): <ERROR CLASS>
onChange fun ObservableIntegerValue.onChange(op: (Int) -> Unit): <ERROR CLASS>
onChangeOnce fun <T> ObservableValue<T>.onChangeOnce(op: (T?) -> Unit): Unit
onChangeTimes fun <T> ObservableValue<T>.onChangeTimes(times: Int, op: (T?) -> Unit): Unit

Listen for changes to this observable. Optionally only listen x times. The lambda receives the changed value when the change occurs, which may be null,

plus operator fun IntegerExpression.plus(other: Int): IntegerBinding
operator fun IntegerExpression.plus(other: Long): LongBinding
operator fun IntegerExpression.plus(other: Float): FloatBinding
operator fun IntegerExpression.plus(other: Double): DoubleBinding
operator fun IntegerExpression.plus(other: ObservableIntegerValue): IntegerBinding
operator fun IntegerExpression.plus(other: ObservableLongValue): LongBinding
operator fun IntegerExpression.plus(other: ObservableFloatValue): FloatBinding
operator fun IntegerExpression.plus(other: ObservableDoubleValue): DoubleBinding
plusAssign operator fun IntegerProperty.plusAssign(other: Number): Unit
operator fun IntegerProperty.plusAssign(other: ObservableNumberValue): Unit
rangeTo operator fun ObservableIntegerValue.rangeTo(other: ObservableIntegerValue): Sequence<IntegerProperty>
operator fun ObservableIntegerValue.rangeTo(other: Int): Sequence<IntegerProperty>
operator fun ObservableIntegerValue.rangeTo(other: ObservableLongValue): Sequence<LongProperty>
operator fun ObservableIntegerValue.rangeTo(other: Long): Sequence<LongProperty>
rem operator fun IntegerExpression.rem(other: Int): IntegerBinding
operator fun IntegerExpression.rem(other: Long): LongBinding
operator fun IntegerExpression.rem(other: Float): FloatBinding
operator fun IntegerExpression.rem(other: Double): DoubleBinding
operator fun IntegerExpression.rem(other: ObservableIntegerValue): IntegerBinding
operator fun IntegerExpression.rem(other: ObservableLongValue): LongBinding
operator fun IntegerExpression.rem(other: ObservableFloatValue): FloatBinding
operator fun IntegerExpression.rem(other: ObservableDoubleValue): DoubleBinding
remAssign operator fun IntegerProperty.remAssign(other: Number): Unit
operator fun IntegerProperty.remAssign(other: ObservableNumberValue): Unit
select fun <T, N> ObservableValue<T>.select(nested: (T) -> ObservableValue<N>): Property<N>
selectBoolean fun <T> ObservableValue<T>.selectBoolean(nested: (T) -> BooleanExpression): BooleanExpression
setValue operator fun <T> Property<T>.setValue(thisRef: Any, property: KProperty<*>, value: T?): Unit
setValue operator fun IntegerProperty.setValue(thisRef: Any, property: KProperty<*>, value: Int): Unit
stringBinding fun <T> ObservableValue<T>.stringBinding(vararg dependencies: Observable, op: (T?) -> String?): StringBinding
times operator fun IntegerExpression.times(other: Int): IntegerBinding
operator fun IntegerExpression.times(other: Long): LongBinding
operator fun IntegerExpression.times(other: Float): FloatBinding
operator fun IntegerExpression.times(other: Double): DoubleBinding
operator fun IntegerExpression.times(other: ObservableIntegerValue): IntegerBinding
operator fun IntegerExpression.times(other: ObservableLongValue): LongBinding
operator fun IntegerExpression.times(other: ObservableFloatValue): FloatBinding
operator fun IntegerExpression.times(other: ObservableDoubleValue): DoubleBinding
timesAssign operator fun IntegerProperty.timesAssign(other: Number): Unit
operator fun IntegerProperty.timesAssign(other: ObservableNumberValue): Unit
unaryMinus operator fun IntegerExpression.unaryMinus(): IntegerBinding