Interface VetoableTabCloseListener
-
- All Superinterfaces:
BaseTabCloseListener,TabCloseListener
public interface VetoableTabCloseListener extends TabCloseListener
Vetoable listener on tab closing. This class is part of officially supported API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvetoTabClosing(javax.swing.JTabbedPane tabbedPane, java.awt.Component tabComponent)Called when a tab is about to be closed.-
Methods inherited from interface org.pushingpixels.substance.api.tabbed.TabCloseListener
tabClosed, tabClosing
-
-
-
-
Method Detail
-
vetoTabClosing
boolean vetoTabClosing(javax.swing.JTabbedPane tabbedPane, java.awt.Component tabComponent)Called when a tab is about to be closed. Can veto the tab closing.- Parameters:
tabbedPane- Tabbed pane.tabComponent- Tab component to be closed.- Returns:
trueif the corresponding tab shouldn't be closed,falseotherwise.
-
-