当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
BasicTabDisplayerUI.BasicTabState (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol.plaf
Class BasicTabDisplayerUI.BasicTabState
java.lang.Object
org.netbeans.swing.tabcontrol.plaf.TabState
org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI.BasicTabState
- Direct Known Subclasses:
- BasicScrollingTabDisplayerUI.ScrollingTabState
- Enclosing class:
- BasicTabDisplayerUI
protected class BasicTabDisplayerUI.BasicTabState
- extends TabState
Fields inherited from class org.netbeans.swing.tabcontrol.plaf.TabState |
ACTIVE, AFTER_SELECTED, ALL_TABS, ARMED, ATTENTION, BEFORE_ARMED, BEFORE_SELECTED, CHANGE_NONE_TO_TAB, CHANGE_TAB_TO_NONE, CHANGE_TAB_TO_SELF, CHANGE_TAB_TO_TAB, CLIP_LEFT, CLIP_RIGHT, CLOSE_BUTTON_ARMED, LEFTMOST, MOUSE_IN_TABS_AREA, MOUSE_PRESSED_IN_CLOSE_BUTTON, NO_CHANGE, NOT_ONSCREEN, PRESSED, REPAINT_ALL_ON_MOUSE_ENTER_TABS_AREA, REPAINT_ALL_TABS_ON_ACTIVATION_CHANGE, REPAINT_ALL_TABS_ON_SELECTION_CHANGE, REPAINT_ON_CLOSE_BUTTON_PRESSED, REPAINT_ON_MOUSE_ENTER_CLOSE_BUTTON, REPAINT_ON_MOUSE_ENTER_TAB, REPAINT_ON_MOUSE_PRESSED, REPAINT_ON_SELECTION_CHANGE, REPAINT_SELECTION_ON_ACTIVATION_CHANGE, RIGHTMOST, SELECTED, STATE_LAST |
Method Summary |
int |
getRepaintPolicy(int tab)
Get the repaint policy that will be used to determine what tabs to repaint, based on state changes. |
int |
getState(int tab)
Get the state of a given tab. |
protected void |
repaintAllTabs()
|
protected void |
repaintTab(int tab)
|
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.TabState |
addAlarmTab, change, clearTransientStates, maybeRepaint, possibleChange, possibleChange, removeAlarmTab, setActive, setCloseButtonContainsMouse, setContainsMouse, setMouseInTabsArea, setMousePressedInCloseButton, setPressed, setSelected, toString |
BasicTabDisplayerUI.BasicTabState
protected BasicTabDisplayerUI.BasicTabState()
getState
public int getState(int tab)
- Description copied from class:
TabState
- Get the state of a given tab. Subclasses are expected to override this
to provide information about states such as clipping which can only be
found out via layout information, such as LEFTMOST, RIGHTMOST, CLIP_LEFT
and CLIP_RIGHT. The state is used by tab renderers to determine how they
should paint themselves.
- Overrides:
getState
in class TabState
- Parameters:
tab
- The index of the tab
- Returns:
- The state
repaintAllTabs
protected void repaintAllTabs()
- Specified by:
repaintAllTabs
in class TabState
getRepaintPolicy
public int getRepaintPolicy(int tab)
- Description copied from class:
TabState
- Get the repaint policy that will be used to determine what tabs to repaint, based on state changes.
The default implementation in BasicTabDisplayerUI simply ignores the tab argument and returns a
single policy for all tabs created in
BasicTabDisplayerUI.createRepaintPolicy()
- Specified by:
getRepaintPolicy
in class TabState
- Parameters:
tab
- Index of tab in question
- Returns:
- Type of repaint policy for given tab
repaintTab
protected void repaintTab(int tab)
- Specified by:
repaintTab
in class TabState