|
||||||||||
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.CDecorateableAction
bibliothek.gui.dock.common.intern.action.CDropDownItem
bibliothek.gui.dock.common.intern.action.CExtendedModeAction
public class CExtendedModeAction
This action is intended to change the CDockable.ExtendedMode
of a
CDockable
by calling CDockable.setExtendedMode(ExtendedMode)
.
Constructor Summary | |
---|---|
protected |
CExtendedModeAction(CControl control,
CDockable.ExtendedMode mode,
String defaultIconKey,
String iconKey,
PropertyKey<KeyStroke> gotoStroke)
Creates a new action. |
Method Summary | |
---|---|
protected boolean |
checkTrigger(KeyEvent event)
Checks whether this action is able to trigger this action. |
protected DockController |
getController()
Gets the controller from which this action currently reads its content. |
protected void |
setController(DockController controller)
Exchanges all the properties such that they are read from controller |
void |
setIcon(Icon icon)
Sets the icon of this action. |
Methods inherited from class bibliothek.gui.dock.common.intern.action.CDropDownItem |
---|
init, isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected |
Methods inherited from class bibliothek.gui.dock.common.intern.CDecorateableAction |
---|
getAccelerator, getDisabledIcon, getIcon, getText, getTooltip, init, isEnabled, setAccelerator, setDisabledIcon, setEnabled, 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 |
---|
protected CExtendedModeAction(CControl control, CDockable.ExtendedMode mode, String defaultIconKey, String iconKey, PropertyKey<KeyStroke> gotoStroke)
control
- the control for which this action will be usedmode
- the mode into which this action leadsdefaultIconKey
- the key of the icon when searching in Resources
iconKey
- the key of the icon when searching in the IconManager
gotoStroke
- the key to the KeyStroke
that triggers this actionMethod Detail |
---|
public void setIcon(Icon icon)
CDecorateableAction
setIcon
in class CDecorateableAction
icon
- the icon, can be null
protected void setController(DockController controller)
controller
controller
- the controller from which to read properties, or null
protected DockController getController()
null
protected boolean checkTrigger(KeyEvent event)
event
- an event that matches the accelerator of this action
true
if this action really is triggered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |