|
||||||||||
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.CDropDownButton
public class CDropDownButton
A dropdown-button, the last action which was selected by the user will be marked graphically.
Constructor Summary | |
---|---|
CDropDownButton()
Creates a new dropdown-button |
|
CDropDownButton(java.lang.String text,
javax.swing.Icon icon)
Creates a new dropdown-button |
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 . |
void |
setSelection(CAction action)
Sets the current selected action. |
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 CDropDownButton()
public CDropDownButton(java.lang.String text, javax.swing.Icon icon)
text
- the text of this buttonicon
- the icon of this buttonMethod 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 removepublic void setSelection(CAction action)
action
- the action to select.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |