Window

open class Window(    caption: String? = null,     contentWidth: <ERROR CLASS>? = CssSize(0, UNIT.auto),     contentHeight: <ERROR CLASS>? = CssSize(0, UNIT.auto),     isResizable: Boolean = true,     isDraggable: Boolean = true,     closeButton: Boolean = false,     maximizeButton: Boolean = false,     minimizeButton: Boolean = false,     icon: String? = null,     className: String? = null,     init: Window.() -> Unit? = null)

Floating window container.

Parameters

caption

window title

contentWidth

window content width

contentHeight

window content height

isResizable

determines if the window is resizable

isDraggable

determines if the window is draggable

closeButton

determines if Close button is visible

maximizeButton

determines if Maximize button is visible

minimizeButton

determines if Minimize button is visible

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
fun Window(    caption: String? = null,     contentWidth: <ERROR CLASS>? = CssSize(0, UNIT.auto),     contentHeight: <ERROR CLASS>? = CssSize(0, UNIT.auto),     isResizable: Boolean = true,     isDraggable: Boolean = true,     closeButton: Boolean = false,     maximizeButton: Boolean = false,     minimizeButton: Boolean = false,     icon: String? = null,     className: String? = null,     init: Window.() -> Unit? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun add(child: <ERROR CLASS>): Window
open fun add(position: Int, child: <ERROR CLASS>): Window
Link copied to clipboard
open fun addAll(children: List<<ERROR CLASS>>): Window
Link copied to clipboard
open fun afterCreate(node: <ERROR CLASS>)
Link copied to clipboard
open fun afterDestroy()
Link copied to clipboard
open fun close()

Close the window.

Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun disposeAll(): Window
Link copied to clipboard
open fun getChildren(): List<<ERROR CLASS>>
Link copied to clipboard
open fun isActive(): Boolean

Returns true if the window is active (on front).

Link copied to clipboard
open fun remove(child: <ERROR CLASS>): Window
Link copied to clipboard
open fun removeAll(): Window
Link copied to clipboard
open fun removeAt(position: Int): Window
Link copied to clipboard
open fun toFront()

Moves the current window to the front.

Link copied to clipboard
open fun toggleMaximize()

Maximize or restore the window size.

Link copied to clipboard
open fun toggleMinimize()

Minimize or restore the window size.

Properties

Link copied to clipboard
var caption: <ERROR CLASS>

Window caption text.

Link copied to clipboard
var closeButton: <ERROR CLASS>

Determines if Close button is visible.

Link copied to clipboard
var contentHeight: <ERROR CLASS>

Window content height.

Link copied to clipboard
var contentOverflow: <ERROR CLASS>

Window content overflow.

Link copied to clipboard
var contentWidth: <ERROR CLASS>

Window content width.

Link copied to clipboard
var icon: Nothing?

Window icon.

Link copied to clipboard
var isDraggable: <ERROR CLASS>

Determines if the window is draggable.

Link copied to clipboard
var isResizable: <ERROR CLASS>

Determines if the window is resizable.

Link copied to clipboard
var maximizeButton: <ERROR CLASS>

Determines if Maximize button is visible.

Link copied to clipboard
var minimizeButton: <ERROR CLASS>

Determines if Maximize button is visible.