|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CombinedMenu
A menu that is displayed on a 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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabMenu |
|---|
addTabMenuListener, getDockable, getDockableCount, getDockables, removeTabMenuListener |
| Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabPaneComponent |
|---|
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, getZOrder, isPaneVisible, setBounds, setOrientation, setPaneVisible, setZOrder |
| Method Detail |
|---|
void setController(DockController controller)
controller - the realmComponent getComponent()
void setText(int index,
String text)
index.
index - the entry that should be modifiedtext - the text to display
void setIcon(int index,
Icon icon)
index.
index - the entry that should be modifiedicon - an icon that should be shown, can be null
void setTooltip(int index,
String tooltip)
index.
index - the entry that should be modifiedtooltip - the tooltip text, can be null
void setEnabled(int index,
boolean enabled)
index - the index of the item that should be enabled or disabledenabled - whether the item is active
void 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 menu
dockable - the item to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||