ToolBarBase

sealed class ToolBarBase : Region, WithItems

ToolBarBase contains the implementation of ToolBar and MenuBar, which are identical, but may be styled differently.

ToolBar's styles contains "tool_bar", whereas MenuBar contains "menu_bar", and ToolBarBase has no styles.

Inheritors

Properties

Link copied to clipboard

Contains container and overflowButton. overflowButton is not always visible, but is always present.

Link copied to clipboard
open override val items: MutableObservableList<Node>

Nodes which appear in the ToolBar. Most commonly Buttons, but can be any Nodes.

Link copied to clipboard
Link copied to clipboard
var side: Side
Link copied to clipboard

Functions

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

The default implementation returns NO_MAXIMUM (an arbitrary large number : 100,000).

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

The default implementation returns NO_MAXIMUM (an arbitrary large number : 100,000).

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

Each subclass of node can determine the minimum width it requires. This can be overridden on an ad-hoc basis using overrideMinHeight. The default implementation returns 0.

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

Each subclass of node can determine the minimum width it requires. This can be overridden on an ad-hoc basis using overrideMinWidth. The default implementation returns 0.

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