Example usage for Java javafx.scene.control Tab fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
BooleanProperty | closableProperty() The closable state for this tab. |
Node | getContent() The content associated with the tab. |
String | getId() The id of this tab. |
EventHandler | getOnClosed() The event handler that is associated with the tab when the tab is closed. |
TabPane | getTabPane() A reference to the TabPane that contains this tab instance. |
String | getText() The text shown in the tab. |
boolean | isClosable() Returns true if this tab is closable. |
boolean | isSelected() Represents whether this tab is the currently selected tab, To change the selected Tab use tabPane.getSelectionModel().select() |
ReadOnlyBooleanProperty | selectedProperty() The currently selected tab. |
void | setClosable(boolean value) Sets true if the tab is closable. |
void | setContent(Node value) The content to show within the main TabPane area. |
void | setContextMenu(ContextMenu value) Specifies the context menu to show when the user right-clicks on the tab. |
void | setDisable(boolean value) Sets the disabled state of this tab. |
void | setGraphic(Node value) Sets the graphic to show in the tab to allow the user to differentiate between the function of each tab. |
void | setId(String value) Sets the id of this tab. |
void | setOnClosed(EventHandler Defines a function to be called when the tab is closed. |
void | setOnCloseRequest(EventHandler |
void | setOnSelectionChanged(EventHandler Defines a function to be called when a selection changed has occurred on the tab. |
void | setStyle(String value) A string representation of the CSS style associated with this tab. |
void | setText(String value) Sets the text to show in the tab to allow the user to differentiate between the function of each tab. |
void | setUserData(Object value) Convenience method for setting a single Object property that can be retrieved at a later date. |
StringProperty | textProperty() The text shown in the tab. |