bibliothek.extension.gui.dock.theme.flat
Class FlatTab
java.lang.Object
bibliothek.gui.dock.station.stack.CombinedStackDockComponent<FlatTab.FlatButton>
bibliothek.extension.gui.dock.theme.flat.FlatTab
- All Implemented Interfaces:
- StackDockComponent
public class FlatTab
- extends CombinedStackDockComponent<FlatTab.FlatButton>
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
.
- Author:
- Benjamin Sigg
Nested Class Summary |
protected class |
FlatTab.FlatButton
A small button which can be clicked by the user. |
Methods inherited from class bibliothek.gui.dock.station.stack.CombinedStackDockComponent |
addChangeListener, addTab, fireStateChange, getBoundsAt, getComponent, getController, getSelectedIndex, getTab, getTabCount, insertTab, remove, removeAll, removeChangeListener, setIconAt, setSelectedIndex, setTitleAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatTab
public FlatTab()
createTab
protected FlatTab.FlatButton createTab(Dockable dockable)
- Description copied from class:
CombinedStackDockComponent
- Creates a new tab which will be shown on this component.
- Specified by:
createTab
in class CombinedStackDockComponent<FlatTab.FlatButton>
- Parameters:
dockable
- the Dockable for which the tab will be used
- Returns:
- the new tab
destroy
protected void destroy(FlatTab.FlatButton tab)
- Description copied from class:
CombinedStackDockComponent
- Deletes a tab that was earlier created by
CombinedStackDockComponent.createTab(Dockable)
.
- Specified by:
destroy
in class CombinedStackDockComponent<FlatTab.FlatButton>
- Parameters:
tab
- the tab which is no longer needed
setController
public void setController(DockController controller)
- Description copied from interface:
StackDockComponent
- Sets the controller for which this component manages its children.
- Specified by:
setController
in interface StackDockComponent
- Overrides:
setController
in class CombinedStackDockComponent<FlatTab.FlatButton>
- Parameters:
controller
- the controller or null