Package-level declarations

Types

Link copied to clipboard
interface ListChange<out E>

The data describing changes to an ObservableList.

Link copied to clipboard
interface ListChangeListener<out E>

When programming in the typical Kotlin style, this isn't used, because you'll use a lambda instead.

Link copied to clipboard

A mutable list, which can be observed by ListChangeListeners and InvalidationListeners.

Link copied to clipboard

Any changes made to the underlying set will NOT cause change events to be fired. Therefore, it is not advisable to keep references to the underlying set.

Link copied to clipboard
interface ObservableList<out E> : List<E> , Observable

A list, which can be observed by ListChangeListeners and InvalidationListeners.

Link copied to clipboard

An ObservableInt whose value is the size of an ObservableList.

Link copied to clipboard
interface ObservableSet<E> : Set<E> , Observable

A set, which can be observed by SetChangeListeners and InvalidationListeners.

Link copied to clipboard

An ObservableInt whose value is the size of an ObservableSet.

Link copied to clipboard
interface SetChange<E>

The data describing changes to an ObservableSet.

Link copied to clipboard
interface SetChangeListener<E>

When programming in the typical Kotlin style, this isn't used, because you'll use a lambda instead.

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

Wraps a regular list, creating a MutableObservableList.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <E> listChangeListener(lambda: (list: ObservableList<E>, change: ListChange<E>) -> Unit): ListChangeListener<E>
Link copied to clipboard
fun <E> setChangeListener(lambda: (list: ObservableSet<E>, change: SetChange<E>) -> Unit): SetChangeListener<E>
Link copied to clipboard

Sync this mutable list with other. Returns a ListChangeListener for this list. To stop syncing, remove the listener using MutableObservableList.removeListener. As Glok uses weak references for listeners, you must keep a reference to this listener, otherwise the garbage collector will end the sync.