TabPane

class TabPane(side: Side = Side.TOP) : Region

Displays a row or column of Tabs. Clicking on a tab will display the tab's content.

For greater flexibility, consider using a TabBar and a SingleContainer instead of a TabPane.

Constructors

Link copied to clipboard
constructor(side: Side = Side.TOP)

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Hides the TabBar when there are 0 or 1 tabs, and shows it when there are more than 1.

Link copied to clipboard
Link copied to clipboard
var side: Side
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
operator fun Tab.unaryPlus()