public class TabPagerManager extends Object
Modifier and Type | Class | Description |
---|---|---|
class |
TabPagerManager.TabPagerPreviewCallback |
Implementation of the tab preview callback for the tab pager.
|
Modifier and Type | Field | Description |
---|---|---|
protected JTabbedPane |
currTabbedPane |
The tabbed pane that is currently paged.
|
protected int |
currTabIndex |
Index of the central tab.
|
protected JWindow |
currTabWindow |
Preview window for the central (current) tab.
|
protected static TabPagerManager |
instance |
Singleton instance of the tab pager manager.
|
protected boolean |
isVisible |
Indicates whether the tab pager windows are visible.
|
protected int |
nextTabIndex |
Index of the next tab.
|
protected JWindow |
nextTabWindow |
Preview window for the right (next) tab.
|
protected int |
prevTabIndex |
Index of the previous tab.
|
protected JWindow |
prevTabWindow |
Preview window for the left (previous) tab.
|
Modifier and Type | Method | Description |
---|---|---|
static TabPagerManager |
getPager() |
Returns the tab pager instance.
|
int |
hide() |
Hides the tab pager windows.
|
boolean |
isVisible() |
Returns indication whether the tab pager windows are showing.
|
void |
page(boolean isForward) |
Flips the pages in the currently shown tabbed pane.
|
void |
page(JTabbedPane tabbedPane,
boolean isForward) |
Flips the pages.
|
static void |
reset() |
Resets the internal caches.
|
protected static TabPagerManager instance
protected JTabbedPane currTabbedPane
protected int currTabIndex
protected int nextTabIndex
protected int prevTabIndex
protected JWindow prevTabWindow
protected JWindow currTabWindow
protected JWindow nextTabWindow
protected boolean isVisible
public static TabPagerManager getPager()
public void page(JTabbedPane tabbedPane, boolean isForward)
tabbedPane
- Tabbed pane.isForward
- if true
, the tabs are flipped one page (tab)
forward, if false
, the tabs are flipped one page
(tab) backward.public void page(boolean isForward)
isForward
- if true
, the tabs are flipped one page (tab)
forward, if false
, the tabs are flipped one page
(tab) backward.public boolean isVisible()
true
if the tab pager windows are visible,
false
otherwise.public int hide()
public static void reset()