|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.stack.tab.AbstractTabPane<T,M,I> bibliothek.gui.dock.station.stack.CombinedStackDockComponent<FlatTab,FlatMenu,CombinedInfoComponent> bibliothek.extension.gui.dock.theme.flat.FlatTabPane
public class FlatTabPane
A panel that works like a JTabbedPane
, but the buttons to
change between the children are smaller and "flatter" than the
buttons of the JTabbedPane
.
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.station.stack.tab.TabPane |
---|
LAYOUT_MANAGER |
Constructor Summary | |
---|---|
FlatTabPane(StackDockComponentParent parent)
Creates a new FlatTabPane |
Method Summary | |
---|---|
DockStation |
getStation()
|
boolean |
hasBorder()
Whether this kind of component already has a border. |
boolean |
isSingleTabComponent()
Tells whether this StackDockComponent should be shown even if
the StackDockStation has only one child. |
protected void |
menuRemoved(FlatMenu menu)
Informs this pane that menu will never be used again and
all resources associated with menu should be freed. |
FlatMenu |
newMenu()
Creates a new TabMenu that has this as parent. |
protected FlatTab |
newTab(Dockable dockable)
Creates a new Tab that has this as parent and
represents dockable . |
void |
setController(DockController controller)
Connects this pane with controller . |
void |
setSelectedBounds(Rectangle bounds)
Sets the boundaries of the selected Dockable . |
protected void |
tabRemoved(FlatTab tab)
Informs this pane that tab will never be used again and
all resources associated with tab should be freed. |
Methods inherited from class bibliothek.gui.dock.station.stack.CombinedStackDockComponent |
---|
addChangeListener, addTab, addToMenu, createContentPane, createDefaultRepresentation, createLayerAt, getAvailableArea, getBoundsAt, getComponent, getDockableAt, getInfoHandler, getLayerAt, getMenuHandler, getSelectedBounds, getSelectedIndex, getTabCount, getTabHandler, getZOrder, insertTab, moveTab, putOnTab, remove, removeAll, removeChangeListener, removeFromMenu, repaint, revalidate, setComponentAt, setIconAt, setSelectedDockable, setSelectedIndex, setTitleAt, setTooltipAt, setZOrder |
Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabPane |
---|
addTabPaneListener, createMenu, destroyMenu, discardComponentsAndRebuild, doLayout, fireAdded, fireInfoComponentChanged, fireRemoved, fireSelectionChanged, getController, getDockable, getDockableCount, getDockables, getInfoComponent, getLayoutManager, getMenu, getMenuList, getMenus, getMinimumSize, getOnTab, getPreferredSize, getSelectedDockable, getTab, getTabPlacement, getTabs, getTabsList, getVisibleTab, getVisibleTabCount, indexOf, indexOfVisible, insert, listeners, move, putInMenu, removeTabPaneListener, setInfoComponent, setLayoutManager, setTabPlacement |
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.StackDockComponent |
---|
setTabPlacement |
Constructor Detail |
---|
public FlatTabPane(StackDockComponentParent parent)
FlatTabPane
parent
- the station which uses this componentMethod Detail |
---|
protected FlatTab newTab(Dockable dockable)
AbstractTabPane
Tab
that has this
as parent and
represents dockable
. The new tab should not be stored in
any collection.
newTab
in class AbstractTabPane<FlatTab,FlatMenu,CombinedInfoComponent>
dockable
- the element for which a new tab is required
protected void tabRemoved(FlatTab tab)
AbstractTabPane
tab
will never be used again and
all resources associated with tab
should be freed. This
method is only called if tab
is invisible.
tabRemoved
in class AbstractTabPane<FlatTab,FlatMenu,CombinedInfoComponent>
tab
- the tab to destroypublic FlatMenu newMenu()
AbstractTabPane
TabMenu
that has this
as parent.
newMenu
in class AbstractTabPane<FlatTab,FlatMenu,CombinedInfoComponent>
protected void menuRemoved(FlatMenu menu)
AbstractTabPane
menu
will never be used again and
all resources associated with menu
should be freed. This
method is only called if menu
is invisible.
menuRemoved
in class AbstractTabPane<FlatTab,FlatMenu,CombinedInfoComponent>
menu
- the destroyed menupublic void setController(DockController controller)
AbstractTabPane
controller
.
setController
in interface StackDockComponent
setController
in class CombinedStackDockComponent<FlatTab,FlatMenu,CombinedInfoComponent>
controller
- the realm in which this pane works, may be null
public void setSelectedBounds(Rectangle bounds)
TabPane
selected Dockable
.
setSelectedBounds
in interface TabPane
setSelectedBounds
in class CombinedStackDockComponent<FlatTab,FlatMenu,CombinedInfoComponent>
bounds
- the boundaries of the selected childpublic boolean hasBorder()
StackDockComponent
true
if this has a border, false
if the parent should paint one.public boolean isSingleTabComponent()
StackDockComponent
StackDockComponent
should be shown even if
the StackDockStation
has only one child.
true
if this component should always be shownpublic DockStation getStation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |