bibliothek.extension.gui.dock.theme.eclipse.stack
Class EclipseMenu

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<RoundRectButton>
              extended by bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseMenu
All Implemented Interfaces:
CombinedMenu, TabMenu, TabPaneComponent

public class EclipseMenu
extends ButtonCombinedMenu<RoundRectButton>

A menu used by the EclipseTabPane to select Dockables.
The icon of the menu is TabMenuOverflowIconBridge.ICON_KEY, and thus changes automatically when the number of children changes.

Author:
Benjamin Sigg

Constructor Summary
EclipseMenu(EclipseTabPane pane)
          Creates a new menu.
 
Method Summary
protected  RoundRectButton createButton(BasicTrigger trigger)
          Creates a new button for this menu.
protected  BasicButtonModel getModel(RoundRectButton button)
          Gets a BasicButtonModel which is used to interact with button, this method may be called many times for the same button.
 
Methods inherited from class bibliothek.gui.dock.station.stack.menu.ButtonCombinedMenu
backgroundChanged, createComponent, ensureComponent, getButton, selected, setController
 
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

EclipseMenu

public EclipseMenu(EclipseTabPane pane)
Creates a new menu.

Parameters:
pane - the owner of this menu
Method Detail

createButton

protected RoundRectButton 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<RoundRectButton>
Parameters:
trigger - a trigger to call AbstractCombinedMenu.open(), can be ignored.
Returns:
the newly created button

getModel

protected BasicButtonModel getModel(RoundRectButton 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<RoundRectButton>
Parameters:
button - the button whose model is requested
Returns:
the model, not null