|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TabCloseCallback
Callback for registering app-specific behaviour on tab close buttons. This class is part of officially supported API.
Method Summary | |
---|---|
java.lang.String |
getAreaTooltip(javax.swing.JTabbedPane tabbedPane,
int tabIndex)
Returns the tooltip for the tab area (not close button). |
java.lang.String |
getCloseButtonTooltip(javax.swing.JTabbedPane tabbedPane,
int tabIndex)
Returns the tooltip for the tab close button. |
SubstanceConstants.TabCloseKind |
onAreaClick(javax.swing.JTabbedPane tabbedPane,
int tabIndex,
java.awt.event.MouseEvent mouseEvent)
Invoked when the tab area (not close button) is clicked. |
SubstanceConstants.TabCloseKind |
onCloseButtonClick(javax.swing.JTabbedPane tabbedPane,
int tabIndex,
java.awt.event.MouseEvent mouseEvent)
Invoked when the tab close button is clicked. |
Method Detail |
---|
SubstanceConstants.TabCloseKind onAreaClick(javax.swing.JTabbedPane tabbedPane, int tabIndex, java.awt.event.MouseEvent mouseEvent)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the click.mouseEvent
- Mouse event.
SubstanceConstants.TabCloseKind onCloseButtonClick(javax.swing.JTabbedPane tabbedPane, int tabIndex, java.awt.event.MouseEvent mouseEvent)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the click.mouseEvent
- Mouse event.
java.lang.String getAreaTooltip(javax.swing.JTabbedPane tabbedPane, int tabIndex)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the mouse.
java.lang.String getCloseButtonTooltip(javax.swing.JTabbedPane tabbedPane, int tabIndex)
tabbedPane
- Tabbed pane.tabIndex
- Index of the tab under the mouse.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |