A
- the kind of action that represents this CAction
@FrameworkOnly public class CDropDownItem<A extends CommonDropDownItem> extends CDecorateableAction<A>
Modifier | Constructor and Description |
---|---|
protected |
CDropDownItem(A action)
Creates a new action
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDropDownSelectable()
Tells whether this item can be selected if it is a child of a
CDropDownButton |
boolean |
isDropDownTriggerableNotSelected()
Tells whether this item can be triggered when it is a child of a
CDropDownButton ,
but is not selected by this CDropDownButton . |
boolean |
isDropDownTriggerableSelected()
Tells whether this item can be triggered when it is a child of a
CDropDownButton ,
and is selected by this CDropDownButton . |
void |
setDropDownSelectable(boolean dropDownSelectable)
Sets whether this item can get selected when it is a child of a
CDropDownButton . |
void |
setDropDownTriggerableNotSelected(boolean dropDownTriggerableNotSelected)
Sets whether this item can be triggered when it is a child of a
CDropDownButton ,
but is not selected by this CDropDownButton . |
void |
setDropDownTriggerableSelected(boolean dropDownTriggerableSelected)
Sets whether this item can be triggered when it is a child of a
CDropDownButton ,
and is selected by this CDropDownButton . |
addDecorateableActionListener, getAccelerator, getDisabledHoverIcon, getDisabledIcon, getDisabledPressedIcon, getHoverIcon, getIcon, getPressedIcon, getText, getTooltip, init, intern, isAcceleratorGlobal, isEnabled, isShowTextOnButtons, removeDecorateableActionListener, setAccelerator, setAcceleratorIsGlobal, setDisabledHoverIcon, setDisabledIcon, setDisabledPressedIcon, setEnabled, setHoverIcon, setIcon, setPressedIcon, setShowTextOnButtons, setText, setTooltip
protected CDropDownItem(A action)
action
- the internal representation, can be null
if
CDecorateableAction.init(bibliothek.gui.dock.common.action.core.CommonDecoratableDockAction)
is called laterpublic void setDropDownSelectable(boolean dropDownSelectable)
CDropDownButton
.dropDownSelectable
- true
if this item can be selectedpublic boolean isDropDownSelectable()
CDropDownButton
true
if this item can be selectedpublic void setDropDownTriggerableNotSelected(boolean dropDownTriggerableNotSelected)
CDropDownButton
,
but is not selected by this CDropDownButton
.dropDownTriggerableNotSelected
- true
if this item
can be triggered when it is not selectedpublic boolean isDropDownTriggerableNotSelected()
CDropDownButton
,
but is not selected by this CDropDownButton
.true
if this item can be triggered even when it
is not selectedpublic void setDropDownTriggerableSelected(boolean dropDownTriggerableSelected)
CDropDownButton
,
and is selected by this CDropDownButton
.dropDownTriggerableSelected
- true
if this item
can be triggered when it is selectedpublic boolean isDropDownTriggerableSelected()
CDropDownButton
,
and is selected by this CDropDownButton
.true
if this item can be triggered when it is selected