- 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.ResizePolicy
static final Tab.ResizePolicy
static final Tab.ResizePolicy
static final Tab.ResizePolicy
static final double
Specifies that the tab width should be based on the computed content width.static final double
Specifies that the tab width should be determined by the-fx-fixed-tab-width
CSS property. -
Method Summary
Modifier and TypeMethodDescriptiondouble
computePrefWidth
(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-width
CSS 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()
-