Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

When mimicking a bidirectional binding, this prevents an update of one property to cause a repeated update due to the other listener.

Link copied to clipboard
open class BinaryFunction<V, A, OA : ObservableValue<A>, B, OB : ObservableValue<B>>(val argA: OA, val argB: OB, val lambda: (A, B) -> V) : LazyObservableValue<V>
Link copied to clipboard
Link copied to clipboard
open class DefaultIndirectObservableValue<P : Any, V>(val parentProperty: ObservableValue<P?>, val defaultValue: V, val getObservable: (P) -> ObservableValue<V>) : LazyObservableValue<V>

Tracks a value of a property where we don't have the property itself, but only another property, (parentProperty) from which we can access the required property.

Link copied to clipboard
open class DefaultIndirectProperty<P : Any, V>(val parentProperty: ObservableValue<P?>, val defaultProperty: Property<V>, val getProperty: (P) -> Property<V>) : PropertyBase<V>
Link copied to clipboard
open class IndirectObservableValue<P : Any, V>(val parentProperty: ObservableValue<P>, val getObservable: (P) -> ObservableValue<V>) : LazyObservableValue<V>

Tracks a value of a property where we don't have the property itself, but only another property, (parentProperty) from which we can access the required property.

Link copied to clipboard
open class IndirectProperty<P : Any, V>(val parentProperty: ObservableValue<P>, val getProperty: (P) -> Property<V>) : PropertyBase<V>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Observable
Link copied to clipboard

Holds a value of type V, which can be observed using InvalidationListeners. When the value changes, the InvalidationListeners are informed via InvalidationListener.invalidated.

Link copied to clipboard
Link copied to clipboard
interface Property<V> : ReadOnlyProperty<V>
Link copied to clipboard
abstract class PropertyBase<V>(val bean: Any? = null, val beanName: String? = null) : ObservableValueBase<V> , Property<V>
Link copied to clipboard
class PropertyDelegate<V, O : Property<V>>(initialValue: V, propertyFactory: (Any, String, V) -> O)

Creates a SimpleProperty, where the bean and beanName are automatically set.

Link copied to clipboard
class PropertyException(val property: Property<*>, message: String) : Exception
Link copied to clipboard

A ReadOnlyProperty is an ObservableValue, which is aware of its owner (bean), and the beanName.

Link copied to clipboard
Link copied to clipboard
open class SimpleProperty<V>(initialValue: V, bean: Any? = null, beanName: String? = null) : PropertyBase<V>
Link copied to clipboard
open class TernaryFunction<V, A, OA : ObservableValue<A>, B, OB : ObservableValue<B>, C, OC : ObservableValue<C>>(val argA: OA, val argB: OB, val argC: OC, val lambda: (A, B, C) -> V) : LazyObservableValue<V>
Link copied to clipboard
open class UnaryFunction<V, A, OA : ObservableValue<A>>(val argA: OA, val lambda: (A) -> V) : LazyObservableValue<V>

(PropertyFunction)

Link copied to clipboard
open class ValidatedProperty<V>(initialValue: V, bean: Any? = null, beanName: String? = null, val validation: (ValidatedProperty<V>, V, V) -> V) : PropertyBase<V>

A Property whose value is validated before being set. Whenever value is changed, validation is called with the old and new values. validation returns a validated value.

Link copied to clipboard

Using weak listeners can help prevent memory leaks.

Link copied to clipboard

Using weak listeners can help prevent memory leaks.

Functions

Link copied to clipboard
Link copied to clipboard
fun <V, O : ObservableValue<V>> changeListener(lambda: (O, V, V) -> Unit): ChangeListener<V, O>
Link copied to clipboard
Link copied to clipboard
fun <V> property(initialValue: V): PropertyDelegate<V, SimpleProperty<V>>
Link copied to clipboard