| javax.swing.plaf.TabbedPaneUI com.jidesoft.plaf.JideTabbedPaneUI
All known Subclasses: com.jidesoft.plaf.basic.BasicJideTabbedPaneUI,
JideTabbedPaneUI | abstract public class JideTabbedPaneUI extends TabbedPaneUI (Code) | | ComponentUI for JideTabbedPane.
|
Method Summary | |
abstract public void | cancelTabEditing() Cancels the editing and discards the change. | abstract public boolean | editTabAt(int tabIndex) Edits the tab at the index.
Parameters: tabIndex - the tab index. | abstract public void | ensureActiveTabIsVisible(boolean scrollLeft) Scroll the selected tab visible in case the tab is outside of the viewport. | abstract public int | getEditingTabIndex() Gets the tab index that is editing, if any. | abstract public Component | getTabPanel() Gets the tab panel for the JideTabbedPane. | abstract public boolean | isTabEditing() Checks if the tab is being edited. | abstract public void | stopTabEditing() Stops the editing and commits the change. |
cancelTabEditing | abstract public void cancelTabEditing()(Code) | | Cancels the editing and discards the change.
|
editTabAt | abstract public boolean editTabAt(int tabIndex)(Code) | | Edits the tab at the index.
Parameters: tabIndex - the tab index. true if editing started. Otherwise false if the tab is already in editing mode when this method is called. |
ensureActiveTabIsVisible | abstract public void ensureActiveTabIsVisible(boolean scrollLeft)(Code) | | Scroll the selected tab visible in case the tab is outside of the viewport. This method is called by
JideTabbedPane.scrollSelectedTabToVisible(boolean) method.
Parameters: scrollLeft - true to scroll the first tab visible first then scroll left to makethe selected tab visible. This will get a more consistent result.If false, it will simple scroll the selected tab visible. Sometimes thetab will appear as the first visible tab or the last visible tab depending onthe previous viewport position. |
getEditingTabIndex | abstract public int getEditingTabIndex()(Code) | | Gets the tab index that is editing, if any. -1 if no tab is being edited.
the tab index or -1. |
getTabPanel | abstract public Component getTabPanel()(Code) | | Gets the tab panel for the JideTabbedPane. The tab panel contains all the tabs and the tabbed pane buttons (close, scroll left/right, list buttons).
Sometimes you have to use this tab panel. For example, if you want to add a mouse listener to get double click event on tabs, you must use this tab panel to add
mouse listener. In addition, as the tab panel is part of the TabbedPaneUI which is recreated when updateUI is called (which usually happens after switching L&F), you should
override updateUI method in JideTabbedPane to add mouse listener so that it will get added again after updateUI.
the tab panel. |
isTabEditing | abstract public boolean isTabEditing()(Code) | | Checks if the tab is being edited.
true or false. |
stopTabEditing | abstract public void stopTabEditing()(Code) | | Stops the editing and commits the change.
|
|
|