|
||||||||||
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
public class CDecorateableAction
An action which has text, icons and other decorations.
Constructor Summary | |
---|---|
CDecorateableAction(SimpleDockAction action)
Creates a new action. |
Method Summary | |
---|---|
javax.swing.KeyStroke |
getAccelerator()
Gets the combination of keys that will trigger this action. |
javax.swing.Icon |
getDisabledIcon()
Gets the disabled icon. |
javax.swing.Icon |
getIcon()
Gest the icon of this action. |
java.lang.String |
getText()
Gets the text of this action. |
java.lang.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(javax.swing.KeyStroke accelerator)
Sets the combination of keys that will trigger this action if the user presses them. |
void |
setDisabledIcon(javax.swing.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(javax.swing.Icon icon)
Sets the icon of this action. |
void |
setText(java.lang.String text)
Sets the text of this action, the text will be visible when this action is shown in a menu. |
void |
setTooltip(java.lang.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 laterMethod Detail |
---|
protected void init(SimpleDockAction action)
action
- the internal representationpublic void setText(java.lang.String text)
text
- the textpublic java.lang.String getText()
public void setTooltip(java.lang.String tooltip)
tooltip
- the tooltippublic java.lang.String getTooltip()
public void setIcon(javax.swing.Icon icon)
icon
- the icon, can be null
public javax.swing.Icon getIcon()
public void setDisabledIcon(javax.swing.Icon icon)
icon
- the disabled iconsetEnabled(boolean)
public javax.swing.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(javax.swing.KeyStroke accelerator)
accelerator
- the combination of keys, or null
public javax.swing.KeyStroke getAccelerator()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |