public interface CombinedMenu extends TabMenu
CombinedStackDockComponent. Clients
should call setController(DockController) when they use this menu,
they should set the controller to null when they
no longer use this menu.| Modifier and Type | Method and Description |
|---|---|
Component |
getComponent()
Gets the component that paints and represents this menu.
|
void |
insert(int index,
Dockable dockable)
Inserts a new item at
index in this menu. |
void |
remove(Dockable dockable)
Removes the item
dockable from this menu |
void |
setController(DockController controller)
Sets the controller in whose realm this menu is used.
|
void |
setEnabled(int index,
boolean enabled)
Enables or disables a menu entry.
|
void |
setIcon(int index,
Icon icon)
Sets the image of this menu at
index. |
void |
setText(int index,
String text)
Sets the text of this menu at
index. |
void |
setTooltip(int index,
String tooltip)
Sets the tooltip of this menu at
index. |
addTabMenuListener, getDockable, getDockableCount, getDockables, removeTabMenuListenergetBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, getZOrder, isPaneVisible, setBounds, setOrientation, setPaneVisible, setZOrdervoid setController(DockController controller)
controller - the realmComponent getComponent()
void setText(int index,
String text)
index.index - the entry that should be modifiedtext - the text to displayvoid setIcon(int index,
Icon icon)
index.index - the entry that should be modifiedicon - an icon that should be shown, can be nullvoid setTooltip(int index,
String tooltip)
index.index - the entry that should be modifiedtooltip - the tooltip text, can be nullvoid setEnabled(int index,
boolean enabled)
index - the index of the item that should be enabled or disabledenabled - whether the item is activevoid insert(int index,
Dockable dockable)
index in this menu.index - the location of the new itemdockable - the new itemvoid remove(Dockable dockable)
dockable from this menudockable - the item to removeCopyright © 2017 Docking Frames. All rights reserved.