|
||||||||||
| 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<A>
bibliothek.gui.dock.common.intern.action.CDropDownItem<CommonSimpleButtonAction>
bibliothek.gui.dock.common.action.CButton
public class CButton
A simple button, the user clicks onto the button and action() is called.
| Constructor Summary | |
|---|---|
|
CButton()
Creates the new button |
protected |
CButton(CommonSimpleButtonAction action)
Creates and initializes this button. |
|
CButton(String text,
Icon icon)
Creates a new button. |
| Method Summary | |
|---|---|
protected void |
action()
Invoked when the user clicks onto this button. |
void |
addActionListener(ActionListener listener)
Adds listener to this button, listener will be called
whenever this button it triggered. |
protected void |
fire()
Informs all ActionListeners that this button was clicked. |
protected void |
init(CommonSimpleButtonAction action)
Initializes this action, this method can be called only once. |
void |
removeActionListener(ActionListener listener)
Removes listener from this button. |
| Methods inherited from class bibliothek.gui.dock.common.intern.action.CDropDownItem |
|---|
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected |
| Methods inherited from class bibliothek.gui.dock.common.intern.action.CDecorateableAction |
|---|
addDecorateableActionListener, getAccelerator, getDisabledHoverIcon, getDisabledIcon, getDisabledPressedIcon, getHoverIcon, getIcon, getPressedIcon, getText, getTooltip, 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 CButton()
protected CButton(CommonSimpleButtonAction action)
action - the action that represents this action, can be null but then
subclasses have to call init(CommonSimpleButtonAction)
public CButton(String text,
Icon icon)
text - the text of this buttonicon - the icon of this button| Method Detail |
|---|
protected void init(CommonSimpleButtonAction action)
CDecorateableAction
init in class CDecorateableAction<CommonSimpleButtonAction>action - the internal representationpublic void addActionListener(ActionListener listener)
listener to this button, listener will be called
whenever this button it triggered.
listener - the new listener, not nullpublic void removeActionListener(ActionListener listener)
listener from this button.
listener - the listener to removeprotected void action()
fire().
protected void fire()
ActionListeners that this button was clicked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||