java.lang.Object
atlantafx.base.controls.Tab.SelectedTabClosingPolicy
-
Field Summary
Fields inherited from interface atlantafx.base.controls.Tab.ClosingPolicy
ALL_TABS, NO_TABS, SELECTED_TAB
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
SelectedTabClosingPolicy
public SelectedTabClosingPolicy()
-
-
Method Details
-
canClose
Description copied from interface:Tab.ClosingPolicy
Specifies whether a tab can be closed.- Specified by:
canClose
in interfaceTab.ClosingPolicy
- Parameters:
tab
- the tab to check- Returns:
- true if the tab can be closed; false otherwise
-
canPin
Description copied from interface:Tab.ClosingPolicy
Specifies whether a tab can be pinned.- Specified by:
canPin
in interfaceTab.ClosingPolicy
- Parameters:
tab
- the tab to check- Returns:
- true if the tab can be pinned; false otherwise
-
getStyleClass
Description copied from interface:Tab.ClosingPolicy
Returns the style class to be set to theTabsContainer
for this closing policy.- Specified by:
getStyleClass
in interfaceTab.ClosingPolicy
- Returns:
- the style class as a String
-