bibliothek.extension.gui.dock.theme.bubble
Class BubbleStackDockComponent

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.CombinedStackDockComponent<BubbleStackDockComponent.Tab>
      extended by bibliothek.extension.gui.dock.theme.bubble.BubbleStackDockComponent
All Implemented Interfaces:
StackDockComponent

public class BubbleStackDockComponent
extends CombinedStackDockComponent<BubbleStackDockComponent.Tab>

A StackDockComponent used by a BubbleTheme. This component can animate its tabs.

Author:
Benjamin Sigg

Nested Class Summary
protected  class BubbleStackDockComponent.Tab
          A tab of the StackDockComponent
 
Constructor Summary
BubbleStackDockComponent(BubbleTheme theme)
          Creates a new component.
 
Method Summary
protected  BubbleStackDockComponent.Tab createTab(Dockable dockable)
          Creates a new tab which will be shown on this component.
protected  void destroy(BubbleStackDockComponent.Tab tab)
          Deletes a tab that was earlier created by #createTab().
 void setController(DockController controller)
          Sets the controller for which this component manages its children.
 
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
 

Constructor Detail

BubbleStackDockComponent

public BubbleStackDockComponent(BubbleTheme theme)
Creates a new component.

Parameters:
theme - the theme which uses this component
Method Detail

createTab

protected BubbleStackDockComponent.Tab 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<BubbleStackDockComponent.Tab>
Parameters:
dockable - the Dockable for which the tab will be used
Returns:
the new tab

destroy

protected void destroy(BubbleStackDockComponent.Tab tab)
Description copied from class: CombinedStackDockComponent
Deletes a tab that was earlier created by #createTab().

Specified by:
destroy in class CombinedStackDockComponent<BubbleStackDockComponent.Tab>
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<BubbleStackDockComponent.Tab>
Parameters:
controller - the controller or null