Package org.apache.pivot.wtk
Interface TabPaneListener
-
- All Known Implementing Classes:
TabPaneListener.Adapter
,TabPaneListener.Listeners
,TerraTabPaneSkin
public interface TabPaneListener
Tab pane listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TabPaneListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
TabPaneListener.Listeners
Tab pane listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
closeableChanged(TabPane tabPane)
Called when a tab pane's closeable property has changed.default void
collapsibleChanged(TabPane tabPane)
Called when a tab pane's collapsible property has changed.default void
cornerChanged(TabPane tabPane, Component previousCorner)
Called when a tab pane's corner component has changed.default Vote
previewRemoveTabs(TabPane tabPane, int index, int count)
Called to preview a tab removal.default void
removeTabsVetoed(TabPane tabPane, Vote reason)
Called when a tab removal has been vetoed.default void
tabDataRendererChanged(TabPane tabPane, Button.DataRenderer previousTabDataRenderer)
Called when a tab pane's tab data renderer has changed.default void
tabInserted(TabPane tabPane, int index)
Called when a tab has been inserted into a tab pane's tab sequence.default void
tabsRemoved(TabPane tabPane, int index, Sequence<Component> tabs)
Called when a tab has been removed from a tab pane's tab sequence.
-
-
-
Method Detail
-
tabInserted
default void tabInserted(TabPane tabPane, int index)
Called when a tab has been inserted into a tab pane's tab sequence.- Parameters:
tabPane
- The source of this event.index
- Where the newly inserted tab was placed.
-
previewRemoveTabs
default Vote previewRemoveTabs(TabPane tabPane, int index, int count)
Called to preview a tab removal.- Parameters:
tabPane
- The component that wants to change.index
- The proposed starting index of the tab or tabs to be removed.count
- The count of tabs to remove.- Returns:
- Whether or not to accept this tab removal (or defer it).
-
removeTabsVetoed
default void removeTabsVetoed(TabPane tabPane, Vote reason)
Called when a tab removal has been vetoed.- Parameters:
tabPane
- The source of this event.reason
- The vote result that vetoed the tab removal.
-
tabsRemoved
default void tabsRemoved(TabPane tabPane, int index, Sequence<Component> tabs)
Called when a tab has been removed from a tab pane's tab sequence.- Parameters:
tabPane
- The source of this event.index
- The starting location of the tabs that were removed.tabs
- The actual sequence of tab components that were removed.
-
cornerChanged
default void cornerChanged(TabPane tabPane, Component previousCorner)
Called when a tab pane's corner component has changed.- Parameters:
tabPane
- The component that changed.previousCorner
- What the corner component used to be.
-
tabDataRendererChanged
default void tabDataRendererChanged(TabPane tabPane, Button.DataRenderer previousTabDataRenderer)
Called when a tab pane's tab data renderer has changed.- Parameters:
tabPane
- The source of this event.previousTabDataRenderer
- The previous renderer for the tab data.
-
closeableChanged
default void closeableChanged(TabPane tabPane)
Called when a tab pane's closeable property has changed.- Parameters:
tabPane
- The component that changed.
-
collapsibleChanged
default void collapsibleChanged(TabPane tabPane)
Called when a tab pane's collapsible property has changed.- Parameters:
tabPane
- The source of this event.
-
-