|
||||||||||
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<A>
bibliothek.gui.dock.common.intern.action.CSelectableAction<A>
A
- the kind of action representing this CAction
@FrameworkOnly public abstract class CSelectableAction<A extends CommonSelectableAction>
An action which is either selected or deselected.
Constructor Summary | |
---|---|
protected |
CSelectableAction(A action)
Creates a new action |
Method Summary | |
---|---|
protected abstract void |
changed()
Called when selected -state of this action
changed. |
javax.swing.Icon |
getSelectedIcon()
Gets the icon that is shown when this action is selected. |
protected void |
init(A action)
Initializes this action, this method can be called only once. |
boolean |
isSelected()
Tells whether this action is selected or not. |
void |
setSelected(boolean selected)
Sets the selected-state. |
void |
setSelectedIcon(javax.swing.Icon icon)
Sets the icon that will be shown when this action is selected. |
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 |
---|
getAccelerator, getDisabledIcon, getIcon, getText, getTooltip, intern, isEnabled, setAccelerator, setDisabledIcon, setEnabled, setIcon, 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 |
---|
protected CSelectableAction(A action)
action
- the internal representationMethod Detail |
---|
protected void init(A action)
CDecorateableAction
init
in class CDecorateableAction<A extends CommonSelectableAction>
action
- the internal representationprotected abstract void changed()
selected
-state of this action
changed.
public void setSelected(boolean selected)
selected
- the new statepublic boolean isSelected()
true
if the action is selectedpublic void setSelectedIcon(javax.swing.Icon icon)
icon
- the icon or null
public javax.swing.Icon getSelectedIcon()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |