bibliothek.extension.gui.dock.theme.flat
Class FlatMenu

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
      extended by bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu
          extended by bibliothek.extension.gui.dock.theme.flat.FlatMenu
All Implemented Interfaces:
CombinedMenu, TabMenu, TabPaneComponent

@ColorCodes(value={"stack.menu.edge","stack.menu.middle","stack.menu.edge.selected","stack.menu.middle.selected"})
public class FlatMenu
extends AbstractCombinedMenu

A menu that contains a list of Dockables to select.

Author:
Benjamin Sigg

Constructor Summary
FlatMenu(FlatTabPane parent)
          Creates a new FlatMenu.
 
Method Summary
protected  java.awt.Component createComponent()
          Creates the button which will always be visible.
protected  void selected(Dockable dockable)
          Called if this menu was open, an element was selected and the menu closed.
 void setController(DockController controller)
          Sets the controller in whose realm this menu is used.
 
Methods inherited from class bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu
backgroundChanged, closed, ensureComponent, getBackground, getComponent, getController, getDockable, getDockableCount, getDockables, getZOrder, insert, isPaneVisible, open, remove, setIcon, setPaneVisible, setText, setTooltip, setZOrder
 
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

FlatMenu

public FlatMenu(FlatTabPane parent)
Creates a new FlatMenu.

Parameters:
parent - the panel for which this menu is used
Method Detail

createComponent

protected java.awt.Component createComponent()
Description copied from class: AbstractCombinedMenu
Creates the button which will always be visible. The user needs to click onto that button in order to show the content of this menu. This method will be called only once and not from a constructor of AbstractCombinedMenu.

Specified by:
createComponent in class AbstractCombinedMenu
Returns:
the new button

selected

protected void selected(Dockable dockable)
Description copied from class: AbstractCombinedMenu
Called if this menu was open, an element was selected and the menu closed.

Specified by:
selected in class AbstractCombinedMenu
Parameters:
dockable - the selected element

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 AbstractCombinedMenu
Parameters:
controller - the realm