|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.stack.CombinedStackDockComponent<FlatTab.FlatButton>
bibliothek.extension.gui.dock.theme.flat.FlatTab
@ColorCodes(value={"stack.tab.border.out.selected","stack.tab.border.center.selected","stack.tab.border.out.focused","stack.tab.border.center.focused","stack.tab.border.out","stack.tab.border.center","stack.tab.border","stack.tab.background.top.selected","stack.tab.background.bottom.selected","stack.tab.background.top.focused","stack.tab.background.bottom.focused","stack.tab.background.top","stack.tab.background.bottom","stack.tab.background","stack.tab.foreground.selected","stack.tab.foreground.focused","stack.tab.foreground"}) public class FlatTab
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
.
Nested Class Summary | |
---|---|
protected class |
FlatTab.FlatButton
A small button which can be clicked by the user. |
Constructor Summary | |
---|---|
FlatTab(StackDockStation station)
Creates a new FlatTab |
Method Summary | |
---|---|
protected FlatTab.FlatButton |
createTab(Dockable dockable)
Creates a new tab which will be shown on this component. |
protected void |
destroy(FlatTab.FlatButton tab)
Deletes a tab that was earlier created by CombinedStackDockComponent.createTab(Dockable) . |
boolean |
hasBorder()
Whether this kind of component already has a border. |
void |
setController(DockController controller)
Sets the controller for which this component manages its children. |
void |
setSelectedIndex(int index)
Selects the component at location index . |
Methods inherited from class bibliothek.gui.dock.station.stack.CombinedStackDockComponent |
---|
addChangeListener, addTab, fireStateChange, getBoundsAt, getComponent, getController, getSelectedIndex, getTab, getTabCount, insertTab, remove, removeAll, removeChangeListener, setIconAt, setTitleAt, setTooltipAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlatTab(StackDockStation station)
FlatTab
station
- the station which uses this componentMethod Detail |
---|
protected FlatTab.FlatButton createTab(Dockable dockable)
CombinedStackDockComponent
createTab
in class CombinedStackDockComponent<FlatTab.FlatButton>
dockable
- the Dockable for which the tab will be used
protected void destroy(FlatTab.FlatButton tab)
CombinedStackDockComponent
CombinedStackDockComponent.createTab(Dockable)
.
destroy
in class CombinedStackDockComponent<FlatTab.FlatButton>
tab
- the tab which is no longer neededpublic void setController(DockController controller)
StackDockComponent
setController
in interface StackDockComponent
setController
in class CombinedStackDockComponent<FlatTab.FlatButton>
controller
- the controller or null
public void setSelectedIndex(int index)
StackDockComponent
index
.
setSelectedIndex
in interface StackDockComponent
setSelectedIndex
in class CombinedStackDockComponent<FlatTab.FlatButton>
index
- the index of the selected componentpublic boolean hasBorder()
StackDockComponent
true
if this has a border, false
if the parent should paint one.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |