- All Known Implementing Classes:
Tab.AllTabsClosingPolicy
,Tab.NoTabsClosingPolicy
,Tab.SelectedTabClosingPolicy
- Enclosing class:
Tab
public static interface Tab.ClosingPolicy
Describes the closing policies for tabs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Tab.ClosingPolicy
All tabs can be closed.static final Tab.ClosingPolicy
Tabs cannot be closed.static final Tab.ClosingPolicy
Only the selected tab can be closed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies whether a tab can be closed.boolean
Specifies whether a tab can be pinned.Returns the style class to be set to theTabsContainer
for this closing policy.
-
Field Details
-
ALL_TABS
All tabs can be closed. -
SELECTED_TAB
Only the selected tab can be closed. -
NO_TABS
Tabs cannot be closed.
-
-
Method Details
-
canClose
Specifies whether a tab can be closed.- Parameters:
tab
- the tab to check- Returns:
- true if the tab can be closed; false otherwise
-
canPin
Specifies whether a tab can be pinned.- Parameters:
tab
- the tab to check- Returns:
- true if the tab can be pinned; false otherwise
-
getStyleClass
String getStyleClass()Returns the style class to be set to theTabsContainer
for this closing policy.- Returns:
- the style class as a String
-