com.r3corda.client.fxutils

Package com.r3corda.client.fxutils

Types

AggregatedList class AggregatedList<A, E, K : Any> : TransformationList<A, E>

Given an ObservableList<E> and a grouping key K, AggregatedList groups the elements by the key into a fresh ObservableList<E> for each group and exposes the groups as an observable list of As by calling assemble on each.

AmountBindings object AmountBindings

Utility bindings for the Amount type, similar in spirit to Bindings

ChosenList class ChosenList<E> : ObservableListBase<E>

ChosenList manages an ObservableList that may be changed by the wrapping ObservableValue. Whenever the underlying ObservableValue changes the exposed list changes to the new value. Changes to the list are simply propagated.

FlattenedList class FlattenedList<A> : TransformationList<A, ObservableValue<out A>>

FlattenedList flattens the passed in list of ObservableValues so that changes in individual updates to the values are reflected in the exposed list as expected.

Extensions for External Classes

javafx.beans.value.ObservableValue
javafx.collections.ObservableList
kotlin.Function1
kotlin.Function2
kotlin.Function3
kotlin.Function4

Functions

foldToObservableList fun <A, B, C> <ERROR CLASS><A>.foldToObservableList(initialAccumulator: C, folderFun: (A, C, ObservableList<B>) -> C): ObservableList<B>
foldToObservableValue fun <A, B> <ERROR CLASS><A>.foldToObservableValue(initial: B, folderFun: (A, B) -> B): ObservableValue<B>

Simple utilities for converting an rx.Observable into a javafx ObservableValue/ObservableList

lift fun <A> A.lift(): ObservableValue<A>

val aliceHeight: ObservableValue = (..) val bobHeight: ObservableValue = (..) fun sumHeight(a: Long, b: Long): Long { .. }