- 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.ClosingPolicyAll tabs can be closed.static final Tab.ClosingPolicyTabs cannot be closed.static final Tab.ClosingPolicyOnly the selected tab can be closed. -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies whether a tab can be closed.booleanSpecifies whether a tab can be pinned.Returns the style class to be set to theTabsContainerfor 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 theTabsContainerfor this closing policy.- Returns:
- the style class as a String
-