Tab

open class Tab(text: String, graphic: Node? = null) : BoxBase, HasDisabled, WithContent

Part of a TabBar / TabPane.

Constructors

Link copied to clipboard
constructor(text: String, graphic: Node? = null)

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
override var content: Node?
Link copied to clipboard
Link copied to clipboard
override var disabled: Boolean
Link copied to clipboard
Link copied to clipboard
override var fill: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun onClosed(handlerCombination: HandlerCombination = HandlerCombination.AFTER, block: (event: ActionEvent) -> Unit)

The event is fired when this tab is removed from TabBar.tabs / TabPane.tabs, regardless of how that happens (close button pressed, requestClose called or the tab removed from TabBar.tabs / TabPane.tabs programmatically).

Link copied to clipboard
fun onCloseRequested(handlerCombination: HandlerCombination = HandlerCombination.AFTER, block: (event: ActionEvent) -> Unit)

This event is fired when requestClose is called or the tab's close button is pressed. If the event is consumed, then the tab will NOT close.

Link copied to clipboard

Request that the tab is closed. This fires the onCloseRequested event and if the event is consumed, then the tab will NOT be closed.