public class EclipseMenu extends ButtonCombinedMenu<RoundRectButton>
EclipseTabPane
to select Dockable
s.TabMenuOverflowIconBridge.ICON_KEY
, and thus changes automatically
when the number of children changes.Constructor and Description |
---|
EclipseMenu(EclipseTabPane pane)
Creates a new menu.
|
Modifier and Type | Method and Description |
---|---|
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. |
backgroundChanged, createComponent, ensureComponent, getButton, selected, setController
addTabMenuListener, closed, getBackground, getComponent, getController, getDockable, getDockableCount, getDockables, getZOrder, insert, isPaneVisible, open, remove, removeTabMenuListener, setEnabled, setIcon, setPaneVisible, setText, setTooltip, setZOrder, tabMenuListeners
getBounds, getMaximumSize, getMinimumSize, getOrientation, getOverlap, getPreferredSize, getTabParent, setBounds, setOrientation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, setBounds, setOrientation
public EclipseMenu(EclipseTabPane pane)
pane
- the owner of this menuprotected RoundRectButton createButton(BasicTrigger trigger)
ButtonCombinedMenu
Component
.createButton
in class ButtonCombinedMenu<RoundRectButton>
trigger
- a trigger to call AbstractCombinedMenu.open()
, can be ignored.protected BasicButtonModel getModel(RoundRectButton button)
ButtonCombinedMenu
BasicButtonModel
which is used to interact with button
, this method
may be called many times for the same button.getModel
in class ButtonCombinedMenu<RoundRectButton>
button
- the button whose model is requestednull