- All Implemented Interfaces:
javafx.css.Styleable
,javafx.event.EventTarget
,javafx.scene.control.Skinnable
TabLine
is a more customizable alternative to the JavaFX TabPane
component.
Removed features:
TabLine
can only be placed horizontally.Tab.setContent(Node)
method.
Instead, you can subscribe to SelectionModel
changes and modify the application view as needed,
such as switching the StackPane
layer.TabMenuButton
(or any control of your choice) and place it in one of the two custom slots on
the right or left side of the tabs.Added features:
Tab.pinnedProperty()
.leftNodeProperty()
and
rightNodeProperty()
.Tab.ClosingPolicy
.Tab.ResizePolicy
to define the strategy for calculating the width of tabs, including viewport
overflow behavior.TabContextMenu
, allowing you to attach a single context menu instance to any tab.Example:
var tabLine = new TabLine(); tabLine.getTabs().setAll( new Tab("#first", "First"), new Tab("#second", "Second") ); tabLine.setTabDragPolicy(Tab.DragPolicy.REORDER); tabLine.setTabResizePolicy(Tab.ResizePolicy.FIXED_WIDTH); tabLine.setTabClosingPolicy(Tab.ClosingPolicy.SELECTED_TAB); var tabContent1 = new Label("First Tab"); var tabContent2 = new Label("Second Tab"); var contentArea = new BorderPane(label); tabLine.getSelectionModel().selectedItemProperty().subscribe(tab -> { var content = switch (tab.getId()) { case "#first" -> tabContent1; case "#second" -> tabContent2; default -> null; }; contentArea.setCenter(content); });
-
Nested Class Summary
Nested Classes -
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.BooleanProperty
Specifies whether theTabLine
animates adding and closing tabs or not.final javafx.beans.property.StringProperty
Specifies the string to display for the ellipsis when tab text is truncated.final javafx.beans.property.ObjectProperty
<@Nullable javafx.scene.Node> Represents a custom node that is placed at the top of the TabLine, before all tabs.final javafx.beans.property.ObjectProperty
<@Nullable javafx.scene.Node> Represents a custom node that is placed to the right of the TabLine, after all tabs.final javafx.beans.property.ObjectProperty
<javafx.scene.control.SingleSelectionModel<Tab>> The selection model used for selecting tabs.final javafx.beans.property.ObjectProperty
<Tab.ClosingPolicy> Specifies how theTabLine
handles tab closing from an end-user's perspective.final javafx.beans.property.ObjectProperty
<Tab.DragPolicy> The drag policy for the tabs specifies if tabs can be reordered or not.final javafx.beans.property.DoubleProperty
final javafx.beans.property.DoubleProperty
Specifies the min width of aTab
in theTabLine
.final javafx.beans.property.ObjectProperty
<Tab.ResizePolicy> The resize policy for the tabs specifies how to resize the tabs when there is no available space left in theTabLine
.final javafx.beans.property.ReadOnlyBooleanProperty
Indicates whether the total width of the tabs fits within the available space.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltip
Properties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
Properties inherited from class javafx.scene.Parent
needsLayout
Properties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable javafx.beans.property.BooleanProperty
protected static final javafx.util.Duration
protected static final double
protected static final double
protected @Nullable javafx.beans.property.StringProperty
protected javafx.beans.property.ObjectProperty
<javafx.scene.control.SingleSelectionModel<Tab>> protected @Nullable javafx.beans.property.ObjectProperty
<Tab.ClosingPolicy> protected @Nullable javafx.beans.property.ObjectProperty
<Tab.DragPolicy> protected @Nullable javafx.beans.property.DoubleProperty
protected @Nullable javafx.beans.property.DoubleProperty
protected @Nullable javafx.beans.property.ObjectProperty
<Tab.ResizePolicy> protected final javafx.collections.ObservableList
<Tab> protected @Nullable javafx.beans.property.ReadOnlyBooleanWrapper
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.beans.property.BooleanProperty
Specifies whether theTabLine
animates adding and closing tabs or not.javafx.scene.control.Skin
<?> final javafx.beans.property.StringProperty
Specifies the string to display for the ellipsis when tab text is truncated.boolean
Gets the value of theanimated
property.static List
<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> Gets theCssMetaData
associated with this class, which may include theCssMetaData
of its superclasses.List
<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> Gets the value of theellipsisString
property.protected int
getIndexToMovePinedTab
(Tab tabToPin) @Nullable javafx.scene.Node
Gets the value of theleftNode
property.protected int
getNextSelectedTabIndex
(int start) @Nullable javafx.scene.Node
Gets the value of therightNode
property.javafx.scene.control.SingleSelectionModel
<Tab> Gets the value of theselectionModel
property.Gets the value of thetabClosingPolicy
property.Gets the value of thetabDragPolicy
property.double
Gets the value of thetabFixedWidth
property.double
Gets the value of thetabMinWidth
property.Gets the value of thetabResizePolicy
property.final javafx.collections.ObservableList
<Tab> getTabs()
The tabs to display in this TabLine.boolean
Gets the value of thetabsFit
property.final javafx.beans.property.ObjectProperty
<@Nullable javafx.scene.Node> Represents a custom node that is placed at the top of the TabLine, before all tabs.protected void
pinOrUnpin
(Tab tab) protected void
reorderTabs
(int fromIndex, int toIndex) final javafx.beans.property.ObjectProperty
<@Nullable javafx.scene.Node> Represents a custom node that is placed to the right of the TabLine, after all tabs.final javafx.beans.property.ObjectProperty
<javafx.scene.control.SingleSelectionModel<Tab>> The selection model used for selecting tabs.void
setAnimated
(boolean value) Sets the value of theanimated
property.void
setEllipsisString
(@Nullable String value) Sets the value of theellipsisString
property.void
setLeftNode
(@Nullable javafx.scene.Node value) Sets the value of theleftNode
property.void
setRightNode
(@Nullable javafx.scene.Node value) Sets the value of therightNode
property.void
setSelectionModel
(@Nullable javafx.scene.control.SingleSelectionModel<Tab> value) Sets the value of theselectionModel
property.void
setTabClosingPolicy
(@Nullable Tab.ClosingPolicy value) Sets the value of thetabClosingPolicy
property.void
setTabDragPolicy
(@Nullable Tab.DragPolicy value) Sets the value of thetabDragPolicy
property.void
setTabFixedWidth
(double value) Sets the value of thetabFixedWidth
property.void
setTabMinWidth
(double value) Sets the value of thetabMinWidth
property.void
setTabResizePolicy
(@Nullable Tab.ResizePolicy value) Sets the value of thetabResizePolicy
property.final javafx.beans.property.ObjectProperty
<Tab.ClosingPolicy> Specifies how theTabLine
handles tab closing from an end-user's perspective.final javafx.beans.property.ObjectProperty
<Tab.DragPolicy> The drag policy for the tabs specifies if tabs can be reordered or not.final javafx.beans.property.DoubleProperty
final javafx.beans.property.DoubleProperty
Specifies the min width of aTab
in theTabLine
.final javafx.beans.property.ObjectProperty
<Tab.ResizePolicy> The resize policy for the tabs specifies how to resize the tabs when there is no available space left in theTabLine
.final javafx.beans.property.ReadOnlyBooleanProperty
Indicates whether the total width of the tabs fits within the available space.protected javafx.beans.property.ReadOnlyBooleanWrapper
protected void
updateTabsFit
(boolean value) Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
Methods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
Methods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
selectionModel
public final javafx.beans.property.ObjectProperty<javafx.scene.control.SingleSelectionModel<Tab>> selectionModelPropertyThe selection model used for selecting tabs. Changing the model alters how the tabs are selected and which tabs are first or last.- See Also:
-
tabClosingPolicy
Specifies how theTabLine
handles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABS
Refer to the
Tab.ClosingPolicy
enumeration for further details.- See Also:
-
tabDragPolicy
The drag policy for the tabs specifies if tabs can be reordered or not.- See Also:
-
tabResizePolicy
The resize policy for the tabs specifies how to resize the tabs when there is no available space left in theTabLine
.- See Also:
-
animated
public final javafx.beans.property.BooleanProperty animatedPropertySpecifies whether theTabLine
animates adding and closing tabs or not. The default value istrue
.- See Also:
-
tabFixedWidth
public final javafx.beans.property.DoubleProperty tabFixedWidthPropertySpecifies the fixed width of aTab
in theTabLine
that can be used by thetabResizePolicy
. SeeTab.FixedWidthResizePolicy
.This value can also be set via CSS using
-fx-tab-fixed-width
.- See Also:
-
tabMinWidth
public final javafx.beans.property.DoubleProperty tabMinWidthPropertySpecifies the min width of aTab
in theTabLine
.This value can also be set via CSS using
-fx-tab-min-width
.- See Also:
-
tabsFit
public final javafx.beans.property.ReadOnlyBooleanProperty tabsFitPropertyIndicates whether the total width of the tabs fits within the available space.- See Also:
-
ellipsisString
public final javafx.beans.property.StringProperty ellipsisStringPropertySpecifies the string to display for the ellipsis when tab text is truncated. The default value is empty string.- See Also:
-
leftNode
public final javafx.beans.property.ObjectProperty<@Nullable javafx.scene.Node> leftNodePropertyRepresents a custom node that is placed at the top of the TabLine, before all tabs.- See Also:
-
rightNode
public final javafx.beans.property.ObjectProperty<@Nullable javafx.scene.Node> rightNodePropertyRepresents a custom node that is placed to the right of the TabLine, after all tabs.- See Also:
-
-
Field Details
-
ANIMATION_SPEED
protected static final javafx.util.Duration ANIMATION_SPEED -
DEFAULT_TAB_FIXED_WIDTH
protected static final double DEFAULT_TAB_FIXED_WIDTH- See Also:
-
DEFAULT_TAB_MIN_WIDTH
protected static final double DEFAULT_TAB_MIN_WIDTH- See Also:
-
tabs
-
selectionModel
protected javafx.beans.property.ObjectProperty<javafx.scene.control.SingleSelectionModel<Tab>> selectionModel -
tabClosingPolicy
@Nullable protected @Nullable javafx.beans.property.ObjectProperty<Tab.ClosingPolicy> tabClosingPolicy -
tabDragPolicy
-
tabResizePolicy
@Nullable protected @Nullable javafx.beans.property.ObjectProperty<Tab.ResizePolicy> tabResizePolicy -
animated
@Nullable protected @Nullable javafx.beans.property.BooleanProperty animated -
tabFixedWidth
@Nullable protected @Nullable javafx.beans.property.DoubleProperty tabFixedWidth -
tabMinWidth
@Nullable protected @Nullable javafx.beans.property.DoubleProperty tabMinWidth -
tabsFit
@Nullable protected @Nullable javafx.beans.property.ReadOnlyBooleanWrapper tabsFit -
ellipsisString
@Nullable protected @Nullable javafx.beans.property.StringProperty ellipsisString
-
-
Constructor Details
-
TabLine
public TabLine()Creates a new TabLine with no tabs. -
TabLine
-
-
Method Details
-
createDefaultSkin
public javafx.scene.control.Skin<?> createDefaultSkin()- Overrides:
createDefaultSkin
in classjavafx.scene.control.Control
-
getTabs
The tabs to display in this TabLine. Changing thisObservableList
will immediately result in the TabLine updating to display the new contents.If the tabs
ObservableList
changes, the selected tab will remain the previously selected tab, if it remains within thisObservableList
. If the previously selected tab is no longer in the tabsObservableList
, the selected tab will become the first tab in theObservableList
. -
selectionModelProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.control.SingleSelectionModel<Tab>> selectionModelProperty()The selection model used for selecting tabs. Changing the model alters how the tabs are selected and which tabs are first or last.- Returns:
- the
selectionModel
property - See Also:
-
getSelectionModel
Gets the value of theselectionModel
property.- Property description:
- The selection model used for selecting tabs. Changing the model alters how the tabs are selected and which tabs are first or last.
- Returns:
- the value of the
selectionModel
property - See Also:
-
setSelectionModel
public void setSelectionModel(@Nullable @Nullable javafx.scene.control.SingleSelectionModel<Tab> value) Sets the value of theselectionModel
property.- Property description:
- The selection model used for selecting tabs. Changing the model alters how the tabs are selected and which tabs are first or last.
- Parameters:
value
- the value for theselectionModel
property- See Also:
-
tabClosingPolicyProperty
Specifies how theTabLine
handles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABS
Refer to the
Tab.ClosingPolicy
enumeration for further details.- Returns:
- the
tabClosingPolicy
property - See Also:
-
getTabClosingPolicy
Gets the value of thetabClosingPolicy
property.- Property description:
- Specifies how the
TabLine
handles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABS
Refer to the
Tab.ClosingPolicy
enumeration for further details. - Returns:
- the value of the
tabClosingPolicy
property - See Also:
-
setTabClosingPolicy
Sets the value of thetabClosingPolicy
property.- Property description:
- Specifies how the
TabLine
handles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABS
Refer to the
Tab.ClosingPolicy
enumeration for further details. - Parameters:
value
- the value for thetabClosingPolicy
property- See Also:
-
tabDragPolicyProperty
The drag policy for the tabs specifies if tabs can be reordered or not.- Returns:
- the
tabDragPolicy
property - See Also:
-
getTabDragPolicy
Gets the value of thetabDragPolicy
property.- Property description:
- The drag policy for the tabs specifies if tabs can be reordered or not.
- Returns:
- the value of the
tabDragPolicy
property - See Also:
-
setTabDragPolicy
Sets the value of thetabDragPolicy
property.- Property description:
- The drag policy for the tabs specifies if tabs can be reordered or not.
- Parameters:
value
- the value for thetabDragPolicy
property- See Also:
-
tabResizePolicyProperty
The resize policy for the tabs specifies how to resize the tabs when there is no available space left in theTabLine
.- Returns:
- the
tabResizePolicy
property - See Also:
-
getTabResizePolicy
Gets the value of thetabResizePolicy
property.- Property description:
- The resize policy for the tabs specifies how to resize the tabs when there is no available
space left in the
TabLine
. - Returns:
- the value of the
tabResizePolicy
property - See Also:
-
setTabResizePolicy
Sets the value of thetabResizePolicy
property.- Property description:
- The resize policy for the tabs specifies how to resize the tabs when there is no available
space left in the
TabLine
. - Parameters:
value
- the value for thetabResizePolicy
property- See Also:
-
animatedProperty
public final javafx.beans.property.BooleanProperty animatedProperty()Specifies whether theTabLine
animates adding and closing tabs or not. The default value istrue
.- Returns:
- the
animated
property - See Also:
-
getAnimated
public boolean getAnimated()Gets the value of theanimated
property.- Property description:
- Specifies whether the
TabLine
animates adding and closing tabs or not. The default value istrue
. - Returns:
- the value of the
animated
property - See Also:
-
setAnimated
public void setAnimated(boolean value) Sets the value of theanimated
property.- Property description:
- Specifies whether the
TabLine
animates adding and closing tabs or not. The default value istrue
. - Parameters:
value
- the value for theanimated
property- See Also:
-
tabFixedWidthProperty
public final javafx.beans.property.DoubleProperty tabFixedWidthProperty()Specifies the fixed width of aTab
in theTabLine
that can be used by thetabResizePolicy
. SeeTab.FixedWidthResizePolicy
.This value can also be set via CSS using
-fx-tab-fixed-width
.- Returns:
- the
tabFixedWidth
property - See Also:
-
getTabFixedWidth
public double getTabFixedWidth()Gets the value of thetabFixedWidth
property.- Property description:
- Specifies the fixed width of a
Tab
in theTabLine
that can be used by thetabResizePolicy
. SeeTab.FixedWidthResizePolicy
.This value can also be set via CSS using
-fx-tab-fixed-width
. - Returns:
- the value of the
tabFixedWidth
property - See Also:
-
setTabFixedWidth
public void setTabFixedWidth(double value) Sets the value of thetabFixedWidth
property.- Property description:
- Specifies the fixed width of a
Tab
in theTabLine
that can be used by thetabResizePolicy
. SeeTab.FixedWidthResizePolicy
.This value can also be set via CSS using
-fx-tab-fixed-width
. - Parameters:
value
- the value for thetabFixedWidth
property- See Also:
-
tabMinWidthProperty
public final javafx.beans.property.DoubleProperty tabMinWidthProperty()Specifies the min width of aTab
in theTabLine
.This value can also be set via CSS using
-fx-tab-min-width
.- Returns:
- the
tabMinWidth
property - See Also:
-
getTabMinWidth
public double getTabMinWidth()Gets the value of thetabMinWidth
property.- Property description:
- Specifies the min width of a
Tab
in theTabLine
.This value can also be set via CSS using
-fx-tab-min-width
. - Returns:
- the value of the
tabMinWidth
property - See Also:
-
setTabMinWidth
public void setTabMinWidth(double value) Sets the value of thetabMinWidth
property.- Property description:
- Specifies the min width of a
Tab
in theTabLine
.This value can also be set via CSS using
-fx-tab-min-width
. - Parameters:
value
- the value for thetabMinWidth
property- See Also:
-
tabsFitProperty
public final javafx.beans.property.ReadOnlyBooleanProperty tabsFitProperty()Indicates whether the total width of the tabs fits within the available space.- Returns:
- the
tabsFit
property - See Also:
-
tabsFitPropertyImpl
protected javafx.beans.property.ReadOnlyBooleanWrapper tabsFitPropertyImpl() -
isTabsFit
public boolean isTabsFit()Gets the value of thetabsFit
property.- Property description:
- Indicates whether the total width of the tabs fits within the available space.
- Returns:
- the value of the
tabsFit
property - See Also:
-
updateTabsFit
protected void updateTabsFit(boolean value) -
ellipsisStringProperty
public final javafx.beans.property.StringProperty ellipsisStringProperty()Specifies the string to display for the ellipsis when tab text is truncated. The default value is empty string.- Returns:
- the
ellipsisString
property - See Also:
-
getEllipsisString
Gets the value of theellipsisString
property.- Property description:
- Specifies the string to display for the ellipsis when tab text is truncated. The default value is empty string.
- Returns:
- the value of the
ellipsisString
property - See Also:
-
setEllipsisString
Sets the value of theellipsisString
property.- Property description:
- Specifies the string to display for the ellipsis when tab text is truncated. The default value is empty string.
- Parameters:
value
- the value for theellipsisString
property- See Also:
-
leftNodeProperty
public final javafx.beans.property.ObjectProperty<@Nullable javafx.scene.Node> leftNodeProperty()Represents a custom node that is placed at the top of the TabLine, before all tabs.- Returns:
- the
leftNode
property - See Also:
-
getLeftNode
@Nullable public @Nullable javafx.scene.Node getLeftNode()Gets the value of theleftNode
property.- Property description:
- Represents a custom node that is placed at the top of the TabLine, before all tabs.
- Returns:
- the value of the
leftNode
property - See Also:
-
setLeftNode
public void setLeftNode(@Nullable @Nullable javafx.scene.Node value) Sets the value of theleftNode
property.- Property description:
- Represents a custom node that is placed at the top of the TabLine, before all tabs.
- Parameters:
value
- the value for theleftNode
property- See Also:
-
rightNodeProperty
public final javafx.beans.property.ObjectProperty<@Nullable javafx.scene.Node> rightNodeProperty()Represents a custom node that is placed to the right of the TabLine, after all tabs.- Returns:
- the
rightNode
property - See Also:
-
setRightNode
public void setRightNode(@Nullable @Nullable javafx.scene.Node value) Sets the value of therightNode
property.- Property description:
- Represents a custom node that is placed to the right of the TabLine, after all tabs.
- Parameters:
value
- the value for therightNode
property- See Also:
-
getRightNode
@Nullable public @Nullable javafx.scene.Node getRightNode()Gets the value of therightNode
property.- Property description:
- Represents a custom node that is placed to the right of the TabLine, after all tabs.
- Returns:
- the value of the
rightNode
property - See Also:
-
pinOrUnpin
-
getIndexToMovePinedTab
-
getNextSelectedTabIndex
protected int getNextSelectedTabIndex(int start) -
reorderTabs
protected void reorderTabs(int fromIndex, int toIndex) -
getClassCssMetaData
Gets theCssMetaData
associated with this class, which may include theCssMetaData
of its superclasses. -
getControlCssMetaData
- Overrides:
getControlCssMetaData
in classjavafx.scene.control.Control
-