|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.action.CAction bibliothek.gui.dock.common.intern.action.CDecorateableAction bibliothek.gui.dock.common.action.CMenu
public class CMenu
A collection of CAction
s which are shown in a menu.
Constructor Summary | |
---|---|
CMenu()
Creates a new menu |
|
CMenu(java.lang.String text,
javax.swing.Icon icon)
Creates a new menu. |
Method Summary | |
---|---|
void |
add(CAction action)
Adds an action to this menu. |
void |
addSeparator()
Adds a separator at the end of this menu. |
void |
insert(int index,
CAction action)
Adds an action to the menu. |
void |
insertSeparator(int index)
Adds a separator. |
void |
remove(CAction action)
Removes an action from this menu |
void |
remove(int index)
Removes the action at location index . |
Methods inherited from class bibliothek.gui.dock.common.intern.action.CDecorateableAction |
---|
getAccelerator, getDisabledIcon, getIcon, getText, getTooltip, init, isEnabled, setAccelerator, setDisabledIcon, setEnabled, setIcon, setText, setTooltip |
Methods inherited from class bibliothek.gui.dock.common.action.CAction |
---|
init, intern |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMenu()
public CMenu(java.lang.String text, javax.swing.Icon icon)
text
- the text of this menuicon
- the icon of this menuMethod Detail |
---|
public void add(CAction action)
action
- the new actionpublic void insert(int index, CAction action)
index
- the location of the actionaction
- the new actionpublic void addSeparator()
public void insertSeparator(int index)
index
- the location of the new separatorpublic void remove(int index)
index
.
index
- the location of the element to removepublic void remove(CAction action)
action
- the action to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |