public class TabPagerManager
extends java.lang.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 javax.swing.JTabbedPane |
currTabbedPane |
The tabbed pane that is currently paged.
|
protected int |
currTabIndex |
Index of the central tab.
|
protected javax.swing.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 javax.swing.JWindow |
nextTabWindow |
Preview window for the right (next) tab.
|
protected int |
prevTabIndex |
Index of the previous tab.
|
protected javax.swing.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(javax.swing.JTabbedPane tabbedPane,
boolean isForward) |
Flips the pages.
|
static void |
reset() |
Resets the internal caches.
|
protected static TabPagerManager instance
protected javax.swing.JTabbedPane currTabbedPane
protected int currTabIndex
protected int nextTabIndex
protected int prevTabIndex
protected javax.swing.JWindow prevTabWindow
protected javax.swing.JWindow currTabWindow
protected javax.swing.JWindow nextTabWindow
protected boolean isVisible
public static TabPagerManager getPager()
public void page(javax.swing.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()