From d8cd67062b8de6e8398dc6dfd00d201200c82414 Mon Sep 17 00:00:00 2001
From: Robert Jaros Base abstract class for creating observable data model. Base abstract class for creating observable data model. Base abstract class for creating observable data model. Base interface for observable data model. Base abstract class for creating observable data model. Creates DataContainer bound to given data model.
+
+
+ Constructor Overrides Container.addAll Adds a list of components to the current container.
+ Return Overrides Container.add Adds given component to the current container. Return Clears notification handler. Return Overrides Container.getChildren Returns a list of children of the current container. Return A container class with support for observable data model. Creates DataContainer bound to given data model. Visibility state of the current component. An ID attribute of generated HTML element. Parent of the current component. A role attribute of generated HTML element. A title attribute of generated HTML element. Adds given component to the current container. Adds a list of components to the current container. Clears notification handler. Returns a list of children of the current container. Sets a notification handler called after every update. Removes given component from the current container. Removes all children from the current container. Updates view from the current data model state. Adds given value to the set of CSS classes generated in html code of current component. Adds given value to the set of CSS classes generated in html code of parent component. Method called after creating Snabbdom vnode. Method called after destroying Snabbdom vnode. Method called after inserting Snabbdom vnode into the DOM. Method called after updating Snabbdom vnode. Returns DOM element bound to the current component. Returns JQuery element bound to the current component. Returns JQuery element bound to the current component as a dynamic type. Returns list of element attributes in the form of a List. Returns list of CSS class names for current widget in the form of a List. Returns list of hooks in the form of a Snabbdom Hooks object. Returns list of event handlers in the form of a Snabbdom On object. Makes current widget invisible. Removes given value from the set of CSS classes generated in html code of current component. Removes all event listeners from current widget. Removes given value from the set of CSS classes generated in html code of parent component. Renders current component as a Snabbdom vnode. Sets an event listener for current widget, keeping the actual type of component. Sets an event listener for current widget. Makes current widget visible. Toggles visibility of current widget. Sets a notification handler called after every update.
+ Return Overrides Container.removeAll Removes all children from the current container. Return Overrides Container.remove Removes given component from the current container. Return Overrides DataUpdatable.update Updates view from the current data model state. Overrides Widget.visible Overrides Component.visible Visibility state of the current component. Getter Visibility state of the current component.
+
+<init>
+
+BaseDataComponent()
+
+
+BaseDataComponent
+abstract class BaseDataComponent : DataComponent
+Constructors
+
+
+
+
+
diff --git a/docs/api/pl.treksoft.kvision.data/-data-component.html b/docs/api/pl.treksoft.kvision.data/-data-component.html
new file mode 100644
index 00000000..1bca7fb4
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.data/-data-component.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+BaseDataComponent()
+
+
+DataComponent
+interface DataComponent
+Inheritors
+
+
+
+
+
diff --git a/docs/api/pl.treksoft.kvision.data/-data-container/-init-.html b/docs/api/pl.treksoft.kvision.data/-data-container/-init-.html
new file mode 100644
index 00000000..2a282883
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.data/-data-container/-init-.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+abstract class BaseDataComponent : DataComponent
+
+
+<init>
+
+DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel())
+Parameters
+
+
+model
- data model of type ObservableListbinding
- a function which creates component C from data model at given indexchild
- internal container (defaults to VPanel)
+Creates DataContainer bound to given data model.
+
+addAll
+
+fun addAll(children: List<Component>): Container
+Parameters
+children
- list of child components
+current container
+
+add
+
+fun add(child: Component): Container
+Parameters
+
+
+current container
+
+clearOnUpdate
+
+fun clearOnUpdate(): DataContainer<M, C>
+
+current container
+
+getChildren
+
+fun getChildren(): List<Component>
+
+list of children
+
+DataContainer
+class DataContainer<M : DataComponent, C : Component> : Widget, Container, DataUpdatable
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+DataContainer(model: ObservableList<M>, binding: (Int) -> C, child: Container = VPanel())
+Properties
+
+
+
+
+
+
+
+
+
+
+
+var visible: Boolean
+Inherited Properties
+
+
+
+
+
+
+
+
+
+
+var id: String?
+
+
+
+
+
+
+
+open var parent: Component?
+
+
+
+
+
+
+
+var role: String?
+
+
+
+
+
+
+
+
+var title: String?
+Functions
+
+
+
+
+
+
+
+
+
+
+fun add(child: Component): Container
+
+
+
+
+
+
+
+fun addAll(children: List<Component>): Container
+
+
+
+
+
+
+
+fun clearOnUpdate(): DataContainer<M, C>
+
+
+
+
+
+
+
+fun getChildren(): List<Component>
+
+
+
+
+
+
+
+fun onUpdate(handler: () -> Unit): DataContainer<M, C>
+
+
+
+
+
+
+
+fun remove(child: Component): Container
+
+
+
+
+
+
+
+fun removeAll(): Container
+
+
+
+
+
+
+
+
+fun update(): Unit
+Inherited Functions
+
+
+
+
+
diff --git a/docs/api/pl.treksoft.kvision.data/-data-container/on-update.html b/docs/api/pl.treksoft.kvision.data/-data-container/on-update.html
new file mode 100644
index 00000000..97e7df54
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.data/-data-container/on-update.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+open fun addCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun addSurroundingCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun afterCreate(node: VNode): Unit
+
+
+
+
+
+
+
+open fun afterDestroy(): Unit
+
+
+
+
+
+
+
+open fun afterInsert(node: VNode): Unit
+
+
+
+
+
+
+
+open fun afterPostpatch(node: VNode): Unit
+
+
+
+
+
+
+
+open fun getElement(): Node?
+
+
+
+
+
+
+
+open fun getElementJQuery(): JQuery?
+
+
+
+
+
+
+
+open fun getElementJQueryD(): dynamic
+
+
+
+
+
+
+
+open fun getSnAttrs(): List<StringPair>
+
+
+
+
+
+
+
+open fun getSnClass(): List<StringBoolPair>
+
+
+
+
+
+
+
+open fun getSnHooks(): Hooks?
+
+
+
+
+
+
+
+open fun getSnOn(): On?
+
+
+
+
+
+
+
+open fun hide(): Widget
+
+
+
+
+
+
+
+open fun removeCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun removeEventListeners(): Widget
+
+
+
+
+
+
+
+open fun removeSurroundingCssClass(css: String): Widget
+
+
+
+
+
+
+
+open fun render(): VNode
+open fun render(elementName: String): VNode
+open fun render(elementName: String, children: Array<dynamic>): VNode
+
+
+
+
+
+
+
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+
+
+
+
+
+
+
+open fun show(): Widget
+
+
+
+
+
+
+
+
+open fun toggleVisible(): Widget
+
+
+onUpdate
+
+fun onUpdate(handler: () -> Unit): DataContainer<M, C>
+Parameters
+handler
- notification handler
+current container
+
+removeAll
+
+fun removeAll(): Container
+
+current container
+
+remove
+
+fun remove(child: Component): Container
+Parameters
+
+
+current container
+
+update
+
+fun update(): Unit
+
+
+visible
+
+var visible: Boolean
+
+
Setter
+
Visibility state of the current component.
+ + + diff --git a/docs/api/pl.treksoft.kvision.data/-data-updatable/index.html b/docs/api/pl.treksoft.kvision.data/-data-updatable/index.html new file mode 100644 index 00000000..98f45f1b --- /dev/null +++ b/docs/api/pl.treksoft.kvision.data/-data-updatable/index.html @@ -0,0 +1,40 @@ + + + +interface DataUpdatable
+Interface for updatable container.
++ + | +
+abstract fun update(): Unit |
+
+ + | +
+class DataContainer<M : DataComponent, C : Component> : Widget, Container, DataUpdatable
+A container class with support for observable data model. + |
+
abstract fun update(): Unit
+
+
diff --git a/docs/api/pl.treksoft.kvision.data/index.html b/docs/api/pl.treksoft.kvision.data/index.html
new file mode 100644
index 00000000..6fc51941
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.data/index.html
@@ -0,0 +1,54 @@
+
+
+
+Base component and container class with data binding support for observable data model.
++ + | +
+abstract class BaseDataComponent : DataComponent
+Base abstract class for creating observable data model. + |
+
+ + | +
+interface DataComponent
+Base interface for observable data model. + |
+
+ + | +
+class DataContainer<M : DataComponent, C : Component> : Widget, Container, DataUpdatable
+A container class with support for observable data model. + |
+
+ + | +
+interface DataUpdatable
+Interface for updatable container. + |
+