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

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
      extended by bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu
          extended by bibliothek.gui.dock.station.stack.menu.ButtonCombinedMenu<RoundButton>
              extended by bibliothek.extension.gui.dock.theme.bubble.BubbleTabMenu
All Implemented Interfaces:
CombinedMenu, TabMenu, TabPaneComponent

@ColorCodes(value={"stack.menu.background.top.mouse","stack.menu.background.bottom.mouse","stack.menu.border.mouse","stack.menu.background.top","stack.menu.background.bottom","stack.menu.border"})
public class BubbleTabMenu
extends ButtonCombinedMenu<RoundButton>

A round button with an icon that opens a menu when clicked.

Author:
Benjamin Sigg

Constructor Summary
BubbleTabMenu(BubbleStackDockComponent pane)
           
 
Method Summary
protected  RoundButton createButton(BasicTrigger trigger)
          Creates a new button for this menu.
protected  BasicButtonModel getModel(RoundButton button)
          Gets a BasicButtonModel which is used to interact with button, this method may be called many times for the same button.
 void setController(DockController controller)
          Sets the controller in whose realm this menu is used.
 
Methods inherited from class bibliothek.gui.dock.station.stack.menu.ButtonCombinedMenu
backgroundChanged, createComponent, ensureComponent, getButton, selected
 
Methods inherited from class bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu
addTabMenuListener, closed, getBackground, getComponent, getController, getDockable, getDockableCount, getDockables, getZOrder, insert, isPaneVisible, open, remove, removeTabMenuListener, setEnabled, setIcon, setPaneVisible, setText, setTooltip, setZOrder, tabMenuListeners
 
Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
getBounds, getMaximumSize, getMinimumSize, getOrientation, getOverlap, getPreferredSize, getTabParent, setBounds, setOrientation
 
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.TabPaneComponent
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, setBounds, setOrientation
 

Constructor Detail

BubbleTabMenu

public BubbleTabMenu(BubbleStackDockComponent pane)
Method Detail

createButton

protected RoundButton createButton(BasicTrigger trigger)
Description copied from class: ButtonCombinedMenu
Creates a new button for this menu. There are no limitations of what a button really is, as long as it is a Component.

Specified by:
createButton in class ButtonCombinedMenu<RoundButton>
Parameters:
trigger - a trigger to call AbstractCombinedMenu.open(), can be ignored.
Returns:
the newly created button

getModel

protected BasicButtonModel getModel(RoundButton button)
Description copied from class: ButtonCombinedMenu
Gets a BasicButtonModel which is used to interact with button, this method may be called many times for the same button.

Specified by:
getModel in class ButtonCombinedMenu<RoundButton>
Parameters:
button - the button whose model is requested
Returns:
the model, not null

setController

public void setController(DockController controller)
Description copied from interface: CombinedMenu
Sets the controller in whose realm this menu is used.

Specified by:
setController in interface CombinedMenu
Overrides:
setController in class ButtonCombinedMenu<RoundButton>
Parameters:
controller - the realm