A - the kind of action representing this CAction@FrameworkOnly public abstract class CSelectableAction<A extends CommonSelectableAction> extends CDropDownItem<A>
| Modifier | Constructor and Description |
|---|---|
protected |
CSelectableAction(A action)
Creates a new action
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
changed()
Called when
selected-state of this action
changed. |
Icon |
getDisabledSelectedHoverIcon()
Gets the icon which is used if the mouse is hovering over a button that represents this action and
if this action is disabled and selected.
|
Icon |
getDisabledSelectedPressedIcon()
Gets the icon which is used if the mouse is pressed over a button that represents this action and
if this action is disabled and selected.
|
Icon |
getSelectedHoverIcon()
Gets the icon which is used if the mouse is hovering over a button that represents this action and
if this action is selected.
|
Icon |
getSelectedIcon()
Gets the icon that is shown when this action is selected.
|
Icon |
getSelectedPressedIcon()
Gets the icon which is used if the mouse is pressed over a button that represents this action and
if 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 |
setDisabledSelectedHoverIcon(Icon icon)
Sets the icon which is used if the mouse is hovering over a button that represents this action and
if this action is disabled and selected.
|
void |
setDisabledSelectedPressedIcon(Icon icon)
Sets the icon which is used if the mouse is pressed over a button that represents this action and
if this action is disabled and selected.
|
void |
setSelected(boolean selected)
Sets the selected-state.
|
void |
setSelectedHoverIcon(Icon icon)
Sets the icon which is used if the mouse is hovering over a button that represents this action and
if this action is selected.
|
void |
setSelectedIcon(Icon icon)
Sets the icon that will be shown when this action is selected.
|
void |
setSelectedPressedIcon(Icon icon)
Sets the icon which is used if the mouse is pressed over a button that represents this action and
if this action is selected.
|
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedaddDecorateableActionListener, getAccelerator, getDisabledHoverIcon, getDisabledIcon, getDisabledPressedIcon, getHoverIcon, getIcon, getPressedIcon, getText, getTooltip, intern, isAcceleratorGlobal, isEnabled, isShowTextOnButtons, removeDecorateableActionListener, setAccelerator, setAcceleratorIsGlobal, setDisabledHoverIcon, setDisabledIcon, setDisabledPressedIcon, setEnabled, setHoverIcon, setIcon, setPressedIcon, setShowTextOnButtons, setText, setTooltipprotected CSelectableAction(A action)
action - the internal representationprotected void init(A action)
CDecorateableActioninit 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(Icon icon)
icon - the icon or nullpublic Icon getSelectedIcon()
nullpublic void setSelectedHoverIcon(Icon icon)
icon - the icon or nullpublic Icon getSelectedHoverIcon()
nullpublic void setSelectedPressedIcon(Icon icon)
icon - the icon or nullpublic Icon getSelectedPressedIcon()
nullpublic void setDisabledSelectedHoverIcon(Icon icon)
icon - the icon or nullpublic Icon getDisabledSelectedHoverIcon()
nullpublic void setDisabledSelectedPressedIcon(Icon icon)
icon - the icon or nullpublic Icon getDisabledSelectedPressedIcon()
nullCopyright © 2018. All rights reserved.