|
||||||||||
| 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
public abstract class CDecorateableAction
An action which has text, icons and other decorations.
| Constructor Summary | |
|---|---|
CDecorateableAction(SimpleDockAction action)
Creates a new action. |
|
| Method Summary | |
|---|---|
KeyStroke |
getAccelerator()
Gets the combination of keys that will trigger this action. |
Icon |
getDisabledIcon()
Gets the disabled icon. |
Icon |
getIcon()
Gest the icon of this action. |
String |
getText()
Gets the text of this action. |
String |
getTooltip()
Gets the long description of this action. |
protected void |
init(SimpleDockAction action)
Initializes this action, this method can be called only once. |
boolean |
isEnabled()
Tells whether this action can be triggered by the user or not. |
void |
setAccelerator(KeyStroke accelerator)
Sets the combination of keys that will trigger this action if the user presses them. |
void |
setDisabledIcon(Icon icon)
Sets the icon of this action. |
void |
setEnabled(boolean enabled)
Enables or disables this action, a disabled action can't be triggered by the user. |
void |
setIcon(Icon icon)
Sets the icon of this action. |
void |
setText(String text)
Sets the text of this action, the text will be visible when this action is shown in a menu. |
void |
setTooltip(String tooltip)
Sets a tooltip for this action. |
| 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 CDecorateableAction(SimpleDockAction action)
action - the internal representation, can be null
if init(SimpleDockAction) is called later| Method Detail |
|---|
protected void init(SimpleDockAction action)
action - the internal representationpublic void setText(String text)
text - the textpublic String getText()
public void setTooltip(String tooltip)
tooltip - the tooltippublic String getTooltip()
public void setIcon(Icon icon)
icon - the icon, can be nullpublic Icon getIcon()
public void setDisabledIcon(Icon icon)
icon - the disabled iconsetEnabled(boolean)public Icon getDisabledIcon()
public void setEnabled(boolean enabled)
enabled - true if this action should be triggerable
by the user.public boolean isEnabled()
true if this action can be triggeredpublic void setAccelerator(KeyStroke accelerator)
accelerator - the combination of keys, or nullpublic KeyStroke getAccelerator()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||