public interface SparkTabbedPaneListener
SparkTabbedPane
Modifier and Type | Method and Description |
---|---|
void |
allTabsRemoved()
Called when all tabs are closed.
|
boolean |
canTabClose(SparkTab tab,
java.awt.Component component)
Implementations of this method allow users to have more fine grained control
on closing of individual tabs depending on component state.
|
void |
tabAdded(SparkTab tab,
java.awt.Component component,
int index)
Called when a new
SparkTab has been added. |
void |
tabRemoved(SparkTab tab,
java.awt.Component component,
int index)
Called when a
SparkTab is removed from the tab pane. |
void |
tabSelected(SparkTab tab,
java.awt.Component component,
int index)
Called when the tab is selected by the user.
|
void tabRemoved(SparkTab tab, java.awt.Component component, int index)
SparkTab
is removed from the tab pane.tab
- the tab that is being removed.component
- the child component of the tab.index
- the index of the tab.void tabAdded(SparkTab tab, java.awt.Component component, int index)
SparkTab
has been added.tab
- the new SparkTab added.component
- the child component of the tab.index
- the index of the tab.void tabSelected(SparkTab tab, java.awt.Component component, int index)
tab
- the SparkTab selected.component
- the child component of the tab.index
- the index of the tab.void allTabsRemoved()
boolean canTabClose(SparkTab tab, java.awt.Component component)
tab
- the SparkTab that will be closing.component
- the child component of the tab.