- 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.BooleanPropertySpecifies whether theTabLineanimates adding and closing tabs or not.final javafx.beans.property.StringPropertySpecifies 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 theTabLinehandles 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.DoublePropertyfinal javafx.beans.property.DoublePropertySpecifies the min width of aTabin 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.ReadOnlyBooleanPropertyIndicates whether the total width of the tabs fits within the available space.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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.BooleanPropertyprotected static final javafx.util.Durationprotected static final doubleprotected static final doubleprotected @Nullable javafx.beans.property.StringPropertyprotected 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.DoublePropertyprotected @Nullable javafx.beans.property.DoublePropertyprotected @Nullable javafx.beans.property.ObjectProperty<Tab.ResizePolicy> protected final javafx.collections.ObservableList<Tab> protected @Nullable javafx.beans.property.ReadOnlyBooleanWrapperFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.beans.property.BooleanPropertySpecifies whether theTabLineanimates adding and closing tabs or not.javafx.scene.control.Skin<?> final javafx.beans.property.StringPropertySpecifies the string to display for the ellipsis when tab text is truncated.booleanGets the value of theanimatedproperty.static List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> Gets the value of theellipsisStringproperty.protected intgetIndexToMovePinedTab(Tab tabToPin) @Nullable javafx.scene.NodeGets the value of theleftNodeproperty.protected intgetNextSelectedTabIndex(int start) @Nullable javafx.scene.NodeGets the value of therightNodeproperty.javafx.scene.control.SingleSelectionModel<Tab> Gets the value of theselectionModelproperty.Gets the value of thetabClosingPolicyproperty.Gets the value of thetabDragPolicyproperty.doubleGets the value of thetabFixedWidthproperty.doubleGets the value of thetabMinWidthproperty.Gets the value of thetabResizePolicyproperty.final javafx.collections.ObservableList<Tab> getTabs()The tabs to display in this TabLine.booleanGets the value of thetabsFitproperty.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 voidpinOrUnpin(Tab tab) protected voidreorderTabs(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.voidsetAnimated(boolean value) Sets the value of theanimatedproperty.voidsetEllipsisString(@Nullable String value) Sets the value of theellipsisStringproperty.voidsetLeftNode(@Nullable javafx.scene.Node value) Sets the value of theleftNodeproperty.voidsetRightNode(@Nullable javafx.scene.Node value) Sets the value of therightNodeproperty.voidsetSelectionModel(@Nullable javafx.scene.control.SingleSelectionModel<Tab> value) Sets the value of theselectionModelproperty.voidsetTabClosingPolicy(@Nullable Tab.ClosingPolicy value) Sets the value of thetabClosingPolicyproperty.voidsetTabDragPolicy(@Nullable Tab.DragPolicy value) Sets the value of thetabDragPolicyproperty.voidsetTabFixedWidth(double value) Sets the value of thetabFixedWidthproperty.voidsetTabMinWidth(double value) Sets the value of thetabMinWidthproperty.voidsetTabResizePolicy(@Nullable Tab.ResizePolicy value) Sets the value of thetabResizePolicyproperty.final javafx.beans.property.ObjectProperty<Tab.ClosingPolicy> Specifies how theTabLinehandles 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.DoublePropertyfinal javafx.beans.property.DoublePropertySpecifies the min width of aTabin 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.ReadOnlyBooleanPropertyIndicates whether the total width of the tabs fits within the available space.protected javafx.beans.property.ReadOnlyBooleanWrapperprotected voidupdateTabsFit(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, tooltipPropertyMethods 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, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 theTabLinehandles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABSRefer to the
Tab.ClosingPolicyenumeration 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 theTabLineanimates adding and closing tabs or not. The default value istrue.- See Also:
-
tabFixedWidth
public final javafx.beans.property.DoubleProperty tabFixedWidthPropertySpecifies the fixed width of aTabin theTabLinethat 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 aTabin 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:
createDefaultSkinin classjavafx.scene.control.Control
-
getTabs
The tabs to display in this TabLine. Changing thisObservableListwill immediately result in the TabLine updating to display the new contents.If the tabs
ObservableListchanges, 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
selectionModelproperty - See Also:
-
getSelectionModel
Gets the value of theselectionModelproperty.- 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
selectionModelproperty - See Also:
-
setSelectionModel
public void setSelectionModel(@Nullable @Nullable javafx.scene.control.SingleSelectionModel<Tab> value) Sets the value of theselectionModelproperty.- 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 theselectionModelproperty- See Also:
-
tabClosingPolicyProperty
Specifies how theTabLinehandles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABSRefer to the
Tab.ClosingPolicyenumeration for further details.- Returns:
- the
tabClosingPolicyproperty - See Also:
-
getTabClosingPolicy
Gets the value of thetabClosingPolicyproperty.- Property description:
- Specifies how the
TabLinehandles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABSRefer to the
Tab.ClosingPolicyenumeration for further details. - Returns:
- the value of the
tabClosingPolicyproperty - See Also:
-
setTabClosingPolicy
Sets the value of thetabClosingPolicyproperty.- Property description:
- Specifies how the
TabLinehandles tab closing from an end-user's perspective. The default value isTab.ClosingPolicy.ALL_TABSRefer to the
Tab.ClosingPolicyenumeration for further details. - Parameters:
value- the value for thetabClosingPolicyproperty- See Also:
-
tabDragPolicyProperty
The drag policy for the tabs specifies if tabs can be reordered or not.- Returns:
- the
tabDragPolicyproperty - See Also:
-
getTabDragPolicy
Gets the value of thetabDragPolicyproperty.- Property description:
- The drag policy for the tabs specifies if tabs can be reordered or not.
- Returns:
- the value of the
tabDragPolicyproperty - See Also:
-
setTabDragPolicy
Sets the value of thetabDragPolicyproperty.- Property description:
- The drag policy for the tabs specifies if tabs can be reordered or not.
- Parameters:
value- the value for thetabDragPolicyproperty- 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
tabResizePolicyproperty - See Also:
-
getTabResizePolicy
Gets the value of thetabResizePolicyproperty.- 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
tabResizePolicyproperty - See Also:
-
setTabResizePolicy
Sets the value of thetabResizePolicyproperty.- 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 thetabResizePolicyproperty- See Also:
-
animatedProperty
public final javafx.beans.property.BooleanProperty animatedProperty()Specifies whether theTabLineanimates adding and closing tabs or not. The default value istrue.- Returns:
- the
animatedproperty - See Also:
-
getAnimated
public boolean getAnimated()Gets the value of theanimatedproperty.- Property description:
- Specifies whether the
TabLineanimates adding and closing tabs or not. The default value istrue. - Returns:
- the value of the
animatedproperty - See Also:
-
setAnimated
public void setAnimated(boolean value) Sets the value of theanimatedproperty.- Property description:
- Specifies whether the
TabLineanimates adding and closing tabs or not. The default value istrue. - Parameters:
value- the value for theanimatedproperty- See Also:
-
tabFixedWidthProperty
public final javafx.beans.property.DoubleProperty tabFixedWidthProperty()Specifies the fixed width of aTabin theTabLinethat can be used by thetabResizePolicy. SeeTab.FixedWidthResizePolicy.This value can also be set via CSS using
-fx-tab-fixed-width.- Returns:
- the
tabFixedWidthproperty - See Also:
-
getTabFixedWidth
public double getTabFixedWidth()Gets the value of thetabFixedWidthproperty.- Property description:
- Specifies the fixed width of a
Tabin theTabLinethat 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
tabFixedWidthproperty - See Also:
-
setTabFixedWidth
public void setTabFixedWidth(double value) Sets the value of thetabFixedWidthproperty.- Property description:
- Specifies the fixed width of a
Tabin theTabLinethat 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 thetabFixedWidthproperty- See Also:
-
tabMinWidthProperty
public final javafx.beans.property.DoubleProperty tabMinWidthProperty()Specifies the min width of aTabin theTabLine.This value can also be set via CSS using
-fx-tab-min-width.- Returns:
- the
tabMinWidthproperty - See Also:
-
getTabMinWidth
public double getTabMinWidth()Gets the value of thetabMinWidthproperty.- Property description:
- Specifies the min width of a
Tabin theTabLine.This value can also be set via CSS using
-fx-tab-min-width. - Returns:
- the value of the
tabMinWidthproperty - See Also:
-
setTabMinWidth
public void setTabMinWidth(double value) Sets the value of thetabMinWidthproperty.- Property description:
- Specifies the min width of a
Tabin theTabLine.This value can also be set via CSS using
-fx-tab-min-width. - Parameters:
value- the value for thetabMinWidthproperty- 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
tabsFitproperty - See Also:
-
tabsFitPropertyImpl
protected javafx.beans.property.ReadOnlyBooleanWrapper tabsFitPropertyImpl() -
isTabsFit
public boolean isTabsFit()Gets the value of thetabsFitproperty.- Property description:
- Indicates whether the total width of the tabs fits within the available space.
- Returns:
- the value of the
tabsFitproperty - 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
ellipsisStringproperty - See Also:
-
getEllipsisString
Gets the value of theellipsisStringproperty.- 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
ellipsisStringproperty - See Also:
-
setEllipsisString
Sets the value of theellipsisStringproperty.- 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 theellipsisStringproperty- 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
leftNodeproperty - See Also:
-
getLeftNode
@Nullable public @Nullable javafx.scene.Node getLeftNode()Gets the value of theleftNodeproperty.- Property description:
- Represents a custom node that is placed at the top of the TabLine, before all tabs.
- Returns:
- the value of the
leftNodeproperty - See Also:
-
setLeftNode
public void setLeftNode(@Nullable @Nullable javafx.scene.Node value) Sets the value of theleftNodeproperty.- Property description:
- Represents a custom node that is placed at the top of the TabLine, before all tabs.
- Parameters:
value- the value for theleftNodeproperty- 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
rightNodeproperty - See Also:
-
setRightNode
public void setRightNode(@Nullable @Nullable javafx.scene.Node value) Sets the value of therightNodeproperty.- Property description:
- Represents a custom node that is placed to the right of the TabLine, after all tabs.
- Parameters:
value- the value for therightNodeproperty- See Also:
-
getRightNode
@Nullable public @Nullable javafx.scene.Node getRightNode()Gets the value of therightNodeproperty.- Property description:
- Represents a custom node that is placed to the right of the TabLine, after all tabs.
- Returns:
- the value of the
rightNodeproperty - See Also:
-
pinOrUnpin
-
getIndexToMovePinedTab
-
getNextSelectedTabIndex
protected int getNextSelectedTabIndex(int start) -
reorderTabs
protected void reorderTabs(int fromIndex, int toIndex) -
getClassCssMetaData
Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses. -
getControlCssMetaData
- Overrides:
getControlCssMetaDatain classjavafx.scene.control.Control
-