|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.action.CAction
bibliothek.gui.dock.common.intern.action.CDecorateableAction<CommonSimpleDropDownAction>
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(String text,
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. |
CAction |
getAction(int index)
Gets the index'th action of this menu. |
int |
getActionCount()
Gets the number of DockActions that were added to this menu. |
CAction |
getSelection()
Gets the currently selected action. |
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 |
|---|
addDecorateableActionListener, getAccelerator, getDisabledHoverIcon, getDisabledIcon, getDisabledPressedIcon, getHoverIcon, getIcon, getPressedIcon, getText, getTooltip, init, intern, isEnabled, isShowTextOnButtons, removeDecorateableActionListener, setAccelerator, setDisabledHoverIcon, setDisabledIcon, setDisabledPressedIcon, setEnabled, setHoverIcon, setIcon, setPressedIcon, setShowTextOnButtons, setText, setTooltip |
| Methods inherited from class bibliothek.gui.dock.common.action.CAction |
|---|
init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CDropDownButton()
public CDropDownButton(String text,
Icon icon)
text - the text of this buttonicon - the icon of this button| Method Detail |
|---|
public void add(CAction action)
action - the new action
public 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 int getActionCount()
DockActions that were added to this menu.
public CAction getAction(int index)
index'th action of this menu.
index - the index of the action
null if the index'th
DockAction is not a CommonDockAction (and hence no CAction
can be found)public 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.public CAction getSelection()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||