Java javafx.scene.control Tab fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control Tab fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control Tab.

The text is from its open source code.

Subclass

javafx.scene.control.Tab has subclasses.
Click this link to see all its subclasses.

Constructor

Tab()
Creates a tab with no title.
Tab(String text, Node content)
Creates a tab with a text title and the specified content node.
Tab(String text)
Creates a tab with a text title.

Method

BooleanPropertyclosableProperty()
The closable state for this tab.
NodegetContent()

The content associated with the tab.

StringgetId()
The id of this tab.
EventHandlergetOnClosed()
The event handler that is associated with the tab when the tab is closed.
TabPanegetTabPane()

A reference to the TabPane that contains this tab instance.

StringgetText()
The text shown in the tab.
booleanisClosable()
Returns true if this tab is closable.
booleanisSelected()

Represents whether this tab is the currently selected tab, To change the selected Tab use tabPane.getSelectionModel().select()

ReadOnlyBooleanPropertyselectedProperty()
The currently selected tab.
voidsetClosable(boolean value)

Sets true if the tab is closable.

voidsetContent(Node value)

The content to show within the main TabPane area.

voidsetContextMenu(ContextMenu value)

Specifies the context menu to show when the user right-clicks on the tab.

voidsetDisable(boolean value)
Sets the disabled state of this tab.
voidsetGraphic(Node value)

Sets the graphic to show in the tab to allow the user to differentiate between the function of each tab.

voidsetId(String value)
Sets the id of this tab.
voidsetOnClosed(EventHandler value)
Defines a function to be called when the tab is closed.
voidsetOnCloseRequest(EventHandler value)
voidsetOnSelectionChanged(EventHandler value)
Defines a function to be called when a selection changed has occurred on the tab.
voidsetStyle(String value)
A string representation of the CSS style associated with this tab.
voidsetText(String value)

Sets the text to show in the tab to allow the user to differentiate between the function of each tab.

voidsetUserData(Object value)
Convenience method for setting a single Object property that can be retrieved at a later date.
StringPropertytextProperty()
The text shown in the tab.