From 2febd99a43e367e7100e9fc21bd6eef1cd1ea47e Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 13 Jul 2019 02:13:41 +0200 Subject: API documentation for KVision 0.0.38 --- .../-observable-list-wrapper/index.html | 204 +++++++++++++++++++++ 1 file changed, 204 insertions(+) create mode 100644 api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html (limited to 'api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html') diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html new file mode 100644 index 00000000..76a51d0d --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html @@ -0,0 +1,204 @@ + + + +ObservableListWrapper - kvision + + + +kvision / pl.treksoft.kvision.utils / ObservableListWrapper
+
+

ObservableListWrapper

+class ObservableListWrapper<T> : MutableList<T>, ObservableList<T> +

Simple observable list implementation.

+

Constructors

+ + + + + + + +
+

<init>

+
+ObservableListWrapper(mutableList: MutableList<T> = mutableListOf()) +

Simple observable list implementation.

+
+

Properties

+ + + + + + + + + + + + + + + +
+

mutableList

+
+val mutableList: MutableList<T>
+

onUpdate

+
+val onUpdate: MutableCollection<(MutableList<T>) -> Unit>
+

size

+
+val size: Int
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

add

+
+fun add(element: T): Boolean
+fun add(index: Int, element: T): Unit
+

addAll

+
+fun addAll(elements: Collection<T>): Boolean
+fun addAll(index: Int, elements: Collection<T>): Boolean
+

clear

+
+fun clear(): Unit
+

contains

+
+fun contains(element: T): Boolean
+

containsAll

+
+fun containsAll(elements: Collection<T>): Boolean
+

get

+
+fun get(index: Int): T
+

indexOf

+
+fun indexOf(element: T): Int
+

isEmpty

+
+fun isEmpty(): Boolean
+

iterator

+
+fun iterator(): MutableIterator<T>
+

lastIndexOf

+
+fun lastIndexOf(element: T): Int
+

listIterator

+
+fun listIterator(): MutableListIterator<T>
+fun listIterator(index: Int): MutableListIterator<T>
+

remove

+
+fun remove(element: T): Boolean
+

removeAll

+
+fun removeAll(elements: Collection<T>): Boolean
+

removeAt

+
+fun removeAt(index: Int): T
+

retainAll

+
+fun retainAll(elements: Collection<T>): Boolean
+

set

+
+fun set(index: Int, element: T): T
+

subList

+
+fun subList(fromIndex: Int, toIndex: Int): MutableList<T>
+

Extension Functions

+ + + + + + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+

syncWithList

+
+fun <T> MutableList<T>.syncWithList(list: List<T>): Unit +

Utility extension function to synchronise elements of the MutableList.

+
+ + -- cgit