From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+
+
+
+
+ Constructor Overrides SimplePanel.addAll Adds a list of components to the current container.
+ Return Overrides SimplePanel.add Adds given component to the current container. Return Overrides Widget.afterCreate Method called after creating Snabbdom vnode. Overrides Widget.afterDestroy Method called after destroying Snabbdom vnode. Window caption text. Determines if Close button is visible. Window content height. Window content height. Window content width. Makes the current window focused. Overrides SimplePanel.getChildren Returns a list of children of the current container. Return Floating window container. Window caption text. Determines if Close button is visible. Window content height. Window content height. Window content width. Determines if the window is draggable. Determines if the window is resizable. Adds given component to the current container. Adds a list of components to the current container. Method called after creating Snabbdom vnode. Method called after destroying Snabbdom vnode. Makes the current window focused. Returns a list of children of the current container. Removes given component from the current container. Removes all children from the current container. Moves the current window to the front. Protected and final method to add given component to the current container. Returns the array of the children Snabbdom vnodes. Renders current component as a Snabbdom vnode. DSL builder extension function. Determines if the window is draggable. Getter Determines if the window is draggable.
+
+<init>
+
+Window(: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null)
+Parameters
+
+contentWidth
- window content widthcontentHeight
- window content heightisResizable
- determines if the window is resizableisDraggable
- determines if the window is draggablecloseButton
- determines if Close button is visibleclasses
- a set of CSS class namesinit
- an initializer extension function
+
+
+addAll
+
+open fun addAll(children: List<Component>): SimplePanel
+Parameters
+children
- list of child components
+current container
+
+add
+
+open fun add(child: Component): SimplePanel
+Parameters
+
+
+current container
+
+afterCreate
+
+protected open fun afterCreate(node: VNode): Unit
+
+
+afterDestroy
+
+protected open fun afterDestroy(): Unit
+
+
+caption
+
+var caption: String?
+
+
+closeButton
+
+var closeButton: Boolean
+
+
+contentHeight
+
+var contentHeight: CssSize?
+
+
+contentOverflow
+
+var contentOverflow: Overflow?
+
+
+contentWidth
+
+var contentWidth: CssSize?
+
+
+focus
+
+open fun focus(): Unit
+
+
+getChildren
+
+open fun getChildren(): List<Component>
+
+list of children
+
+Window
+open class Window : SimplePanel
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+Window(: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null)
Properties
+
+
+
+
+
+
+
+
+
+
+var caption: String?
+
+
+
+
+
+
+
+var closeButton: Boolean
+
+
+
+
+
+
+
+var contentHeight: CssSize?
+
+
+
+
+
+
+
+var contentOverflow: Overflow?
+
+
+
+
+
+
+
+var contentWidth: CssSize?
+
+
+
+
+
+
+
+var isDraggable: Boolean
+
+
+
+
+
+
+
+
+var isResizable: Boolean
+Functions
+
+
+
+
+
+
+
+
+
+
+open fun add(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun addAll(children: List<Component>): SimplePanel
+
+
+
+
+
+
+
+open fun afterCreate(node: VNode): Unit
+
+
+
+
+
+
+
+open fun afterDestroy(): Unit
+
+
+
+
+
+
+
+open fun focus(): Unit
+
+
+
+
+
+
+
+open fun getChildren(): List<Component>
+
+
+
+
+
+
+
+open fun remove(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun removeAll(): SimplePanel
+
+
+
+
+
+
+
+
+open fun toFront(): Unit
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+fun addInternal(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun childrenVNodes(): Array<VNode>
+
+
+
+
+
+
+
+
+open fun render(): VNode
+Companion Object Functions
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.window/-window/is-draggable.html b/api/pl.treksoft.kvision.window/-window/is-draggable.html
new file mode 100644
index 00000000..6432d5fb
--- /dev/null
+++ b/api/pl.treksoft.kvision.window/-window/is-draggable.html
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+fun Container.window(: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null): Window
+
+
+isDraggable
+
+var isDraggable: Boolean
+
+
Setter
+
Determines if the window is draggable.
+ + + diff --git a/api/pl.treksoft.kvision.window/-window/is-resizable.html b/api/pl.treksoft.kvision.window/-window/is-resizable.html new file mode 100644 index 00000000..3aa1e97a --- /dev/null +++ b/api/pl.treksoft.kvision.window/-window/is-resizable.html @@ -0,0 +1,21 @@ + + + +var isResizable: Boolean
+Determines if the window is resizable.
+Getter
+
Determines if the window is resizable.
+ +Setter
+
Determines if the window is resizable.
+ + + diff --git a/api/pl.treksoft.kvision.window/-window/remove-all.html b/api/pl.treksoft.kvision.window/-window/remove-all.html new file mode 100644 index 00000000..ad12c1d6 --- /dev/null +++ b/api/pl.treksoft.kvision.window/-window/remove-all.html @@ -0,0 +1,18 @@ + + + +open fun removeAll(): SimplePanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun remove(child: Component): SimplePanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
open fun toFront(): Unit
+Moves the current window to the front.
+ + diff --git a/api/pl.treksoft.kvision.window/-window/window.html b/api/pl.treksoft.kvision.window/-window/window.html new file mode 100644 index 00000000..452d2636 --- /dev/null +++ b/api/pl.treksoft.kvision.window/-window/window.html @@ -0,0 +1,16 @@ + + + +fun Container.window(: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null): Window
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.window/index.html b/api/pl.treksoft.kvision.window/index.html new file mode 100644 index 00000000..95c0f201 --- /dev/null +++ b/api/pl.treksoft.kvision.window/index.html @@ -0,0 +1,27 @@ + + + +Floating, resizable window component.
++ + | +
+open class Window : SimplePanel
+Floating window container. + |
+