bibliothek.extension.gui.dock.theme.eclipse.stack
Class EclipseMenu
java.lang.Object
bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu
bibliothek.gui.dock.station.stack.menu.ButtonCombinedMenu<RoundRectButton>
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
| 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 |
EclipseMenu
public EclipseMenu(EclipseTabPane pane)
- Creates a new menu.
- Parameters:
pane - the owner of this menu
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