Interface VetoableMultipleTabCloseListener
- All Superinterfaces:
BaseTabCloseListener, MultipleTabCloseListener
Vetoable listener on tabs closing. This class is part of officially supported
API.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvetoTabsClosing(JTabbedPane tabbedPane, Set<Component> tabComponents) Called when tabs are about to be closed.Methods inherited from interface MultipleTabCloseListener
tabsClosed, tabsClosing
-
Method Details
-
vetoTabsClosing
Called when tabs are about to be closed. Can veto the tabs closing.- Parameters:
tabbedPane- Tabbed pane.tabComponents- Tab components to be closed.- Returns:
trueif the corresponding tabs shouldn't be closed,falseotherwise.
-