|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.stack.tab.layouting.AbstractTabsLayoutBlock
public abstract class AbstractTabsLayoutBlock
| Nested Class Summary | |
|---|---|
protected class |
AbstractTabsLayoutBlock.TabsSize
This Size contains an array of Tabs which are required
to get this size. |
| Constructor Summary | |
|---|---|
AbstractTabsLayoutBlock()
|
|
| Method Summary | |
|---|---|
void |
addTab(Tab tab)
Adds a tab to this block at its end. |
void |
checkExistence()
This method compares the tabs of this block with the tabs known to the owning TabPane. |
abstract void |
doLayout()
Updates the layout of this block. |
Rectangle |
getBounds()
Gets the boundaries of this block. |
Tab[] |
getDockableTabMap()
Gets an array that has the same size as TabPane.getDockables(),
the tab at location x has the same Dockable as
in the array returned by getDockables. |
TabPlacement |
getOrientation()
Gets the alignment of the tabs. |
int[] |
getOriginalTabLocations()
This method maps each Tab of this LayoutBlock to the
location its Dockable has in the owning TabPane. |
TabPane |
getPane()
Gets the producer of new tabs. |
Tab |
getSelectedTab()
Searches the tab that is currently selected. |
Tab[] |
getTabs()
Gets an array containing all the tabs of this block. |
int |
getTabsCount()
Returns the number of tabs currently on this block. |
Tab[] |
getTabsOrderedByImportance()
Gets all tabs that could, in theory, be displayed on this block. |
int |
indexOfTab(Tab tab)
Tells the index at which tab appears on this block. |
void |
insertTab(Tab tab)
Inserts tab somewhere in this block. |
void |
insertTab(Tab tab,
int index)
Adds tab at index in the list of tabs. |
boolean |
isVisible()
|
void |
removeAllTabs()
Removes all tabs of this block. |
Tab |
removeTab(int index)
Removes the tab of location index. |
boolean |
removeTab(Tab tab)
Removes tab from this block. |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the boundaries of this block. |
void |
setLayout(Size size)
Sets the layout of this block, the exact meaning of size
depends on this block. |
void |
setOrientation(TabPlacement side)
Tells this LayoutBlock at which side of the tabs it is shown. |
void |
setPane(TabPane pane)
Sets the producer of new tabs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.station.stack.tab.layouting.TabsLayoutBlock |
|---|
getIndexOfTabAt, getTabs, getTabsCount, isAllTabs |
| Methods inherited from interface bibliothek.gui.dock.station.stack.tab.layouting.LayoutBlock |
|---|
getSizes |
| Constructor Detail |
|---|
public AbstractTabsLayoutBlock()
| Method Detail |
|---|
public void setPane(TabPane pane)
pane - the produced, might be nullpublic TabPane getPane()
nullpublic TabPlacement getOrientation()
public void setOrientation(TabPlacement side)
LayoutBlockLayoutBlock at which side of the tabs it is shown.
setOrientation in interface LayoutBlockside - the placement, not nullpublic Tab getSelectedTab()
null if no tab is selectedpublic void checkExistence()
TabPane. Any tab not found in the TabPane
is removed from this block.
public Tab[] getTabs()
Dockable is no longer part of the
owning TabPane.
public int getTabsCount()
Tabspublic void addTab(Tab tab)
tab - the new tab, not nullpublic void insertTab(Tab tab)
tab somewhere in this block. In general this
method tries to add tab at a location such that the order
of tabs equals the order of Dockables of the underlying
TabPane.
tab - the tab to insert
IllegalStateException - if no TabPane is available
IllegalArgumentException - if the Dockable of tab
is not a child of this blocks TabPanepublic int indexOfTab(Tab tab)
tab appears on this block.
tab - some tab
public Tab[] getTabsOrderedByImportance()
getSelectedTab(),
then all the currently displayed tabs follow, only after them the invisible
tabs follow. Tabs whose Dockable is no longer registered at the
owning TabPane are ignored.
IllegalStateException - if getPane() returns nullpublic int[] getOriginalTabLocations()
Tab of this LayoutBlock to the
location its Dockable has in the owning TabPane.
IllegalStateException - if there is no TabPane presentpublic Tab[] getDockableTabMap()
TabPane.getDockables(),
the tab at location x has the same Dockable as
in the array returned by getDockables. This includes the
possibility to have no tab at some locations.
null values
IllegalStateException - if there is no TabPane known
to this block.
public void insertTab(Tab tab,
int index)
tab at index in the list of tabs.
tab - a new tab, not nullindex - the index of the new tabpublic boolean removeTab(Tab tab)
tab from this block.
tab - the tab to remove
true if tab was removed, false
otherwisepublic Tab removeTab(int index)
index.
index - the index of the tab
public void removeAllTabs()
public abstract void doLayout()
Tabs managed by this block. This method
must not add or remove tabs from the block.
public void setLayout(Size size)
LayoutBlocksize
depends on this block. In general keys returned by the last call of
LayoutBlock.getSizes() must be accepted, for any other key the behavior
is unspecified.
setLayout in interface LayoutBlocksize - the new layoutpublic boolean isVisible()
public void setBounds(int x,
int y,
int width,
int height)
LayoutBlock
setBounds in interface LayoutBlockx - the x coordinatey - the y coordinatewidth - the width in pixelheight - the height in pixelpublic Rectangle getBounds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||