Separator

Often used in ToolBars to visually group buttons. The default theme displays a Separator as a vertical or horizontal bar.

Theme

"separator" { // this

    orientation( Orientation.HORIZONTAL )
    orientation( Orientation.VERTICAL )

    ":horizontal" { ... }  // Exactly one of these pseudo styles are present.

    ":vertical" { ... }

    child( "line" ) {
        // A region
    }
}

The child line is a Region.

Separator inherits all the features of Region.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val children: ObservableList<Node>

The base class Node has no children, so this is an empty list.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun nodePrefHeight(): Float

Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun nodePrefWidth(): Float

Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun toString(): String