- All Known Implementing Classes:
Tab.AdaptiveResizePolicy,Tab.ComputedWidthResizePolicy,Tab.FixedWidthResizePolicy,Tab.StretchingResizePolicy
- Enclosing class:
Tab
public static interface Tab.ResizePolicy
The
Tab.ResizePolicy interface defines the strategy for calculating the width of tabs
in the TabLine control. Implementations of this interface are responsible for
determining the width of each tab based on the available space.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Tab.ResizePolicystatic final Tab.ResizePolicystatic final Tab.ResizePolicystatic final Tab.ResizePolicystatic final doubleSpecifies that the tab width should be based on the computed content width.static final doubleSpecifies that the tab width should be determined by the-fx-fixed-tab-widthCSS property. -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputePrefWidth(double availableWidth, int tabCount, boolean isTabsFit) Computes the tab width.boolean
-
Field Details
-
USE_FIXED_SIZE
static final double USE_FIXED_SIZESpecifies that the tab width should be determined by the-fx-fixed-tab-widthCSS property.- See Also:
-
USE_COMPUTED_SIZE
static final double USE_COMPUTED_SIZESpecifies that the tab width should be based on the computed content width.- See Also:
-
FIXED_WIDTH
-
COMPUTED_WIDTH
-
ADAPTIVE
-
STRETCH
-
-
Method Details
-
computePrefWidth
-
isScrollable
boolean isScrollable()
-