bibliothek.extension.gui.dock.theme.bubble
Class BubbleTabMenu
java.lang.Object
bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
bibliothek.gui.dock.station.stack.menu.AbstractCombinedMenu
bibliothek.gui.dock.station.stack.menu.ButtonCombinedMenu<RoundButton>
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
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 |
BubbleTabMenu
public BubbleTabMenu(BubbleStackDockComponent pane)
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