bibliothek.extension.gui.dock.theme.flat
Class FlatMenu
java.lang.Object
bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu
bibliothek.gui.dock.station.stack.menu.ButtonCombinedMenu<BasicMiniButton>
bibliothek.extension.gui.dock.theme.flat.FlatMenu
- All Implemented Interfaces:
- CombinedMenu, TabMenu, TabPaneComponent
public class FlatMenu
- extends ButtonCombinedMenu<BasicMiniButton>
A menu that contains a list of Dockable
s to select.
- Author:
- Benjamin Sigg
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatMenu
public FlatMenu(FlatTabPane parent)
- Creates a new
FlatMenu
.
- Parameters:
parent
- the panel for which this menu is used
createButton
protected BasicMiniButton 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<BasicMiniButton>
- Parameters:
trigger
- a trigger to call AbstractCombinedMenu.open()
, can be ignored.
- Returns:
- the newly created button
getModel
protected BasicButtonModel getModel(BasicMiniButton 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<BasicMiniButton>
- Parameters:
button
- the button whose model is requested
- Returns:
- the model, not
null