| org.jvnet.substance.tabbed.TabCloseCallback
TabCloseCallback | public interface TabCloseCallback (Code) | | Callback for registering app-specific behaviour on tab close buttons. This
class is part of officially supported API.
author: Kirill Grouchnikov |
Method Summary | |
public String | getAreaTooltip(JTabbedPane tabbedPane, int tabIndex) Returns the tooltip for the tab area (not close button).
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the mouse. | public String | getCloseButtonTooltip(JTabbedPane tabbedPane, int tabIndex) Returns the tooltip for the tab close button.
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the mouse. | public TabCloseKind | onAreaClick(JTabbedPane tabbedPane, int tabIndex, MouseEvent mouseEvent) Invoked when the tab area (not close button) is clicked.
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the click. Parameters: mouseEvent - Mouse event. | public TabCloseKind | onCloseButtonClick(JTabbedPane tabbedPane, int tabIndex, MouseEvent mouseEvent) Invoked when the tab close button is clicked.
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the click. Parameters: mouseEvent - Mouse event. |
getAreaTooltip | public String getAreaTooltip(JTabbedPane tabbedPane, int tabIndex)(Code) | | Returns the tooltip for the tab area (not close button).
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the mouse. Tooltip for the tab area. |
getCloseButtonTooltip | public String getCloseButtonTooltip(JTabbedPane tabbedPane, int tabIndex)(Code) | | Returns the tooltip for the tab close button.
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the mouse. Tooltip for the tab close button. |
onAreaClick | public TabCloseKind onAreaClick(JTabbedPane tabbedPane, int tabIndex, MouseEvent mouseEvent)(Code) | | Invoked when the tab area (not close button) is clicked.
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the click. Parameters: mouseEvent - Mouse event. Tab close kind. |
onCloseButtonClick | public TabCloseKind onCloseButtonClick(JTabbedPane tabbedPane, int tabIndex, MouseEvent mouseEvent)(Code) | | Invoked when the tab close button is clicked.
Parameters: tabbedPane - Tabbed pane. Parameters: tabIndex - Index of the tab under the click. Parameters: mouseEvent - Mouse event. Tab close kind. |
|
|