public interface TabCloseCallback
Modifier and Type | Method | Description |
---|---|---|
String |
getAreaTooltip(JTabbedPane tabbedPane,
int tabIndex) |
Returns the tooltip for the tab area (not close button).
|
String |
getCloseButtonTooltip(JTabbedPane tabbedPane,
int tabIndex) |
Returns the tooltip for the tab close button.
|
SubstanceConstants.TabCloseKind |
onAreaClick(JTabbedPane tabbedPane,
int tabIndex,
MouseEvent mouseEvent) |
Invoked when the tab area (not close button) is clicked.
|
SubstanceConstants.TabCloseKind |
onCloseButtonClick(JTabbedPane tabbedPane,
int tabIndex,
MouseEvent mouseEvent) |
Invoked when the tab close button is clicked.
|
SubstanceConstants.TabCloseKind onAreaClick(JTabbedPane tabbedPane, int tabIndex, MouseEvent mouseEvent)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the click.mouseEvent
- Mouse event.SubstanceConstants.TabCloseKind onCloseButtonClick(JTabbedPane tabbedPane, int tabIndex, MouseEvent mouseEvent)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the click.mouseEvent
- Mouse event.String getAreaTooltip(JTabbedPane tabbedPane, int tabIndex)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the mouse.String getCloseButtonTooltip(JTabbedPane tabbedPane, int tabIndex)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the mouse.