Class CDropDownItem<A extends CommonDropDownItem>
java.lang.Object
bibliothek.gui.dock.common.action.CAction
bibliothek.gui.dock.common.intern.action.CDecorateableAction<A>
bibliothek.gui.dock.common.intern.action.CDropDownItem<A>
- Type Parameters:
A- the kind of action that represents thisCAction
- Direct Known Subclasses:
CButton,CCloseAction,CExtendedModeAction,CSelectableAction
@FrameworkOnly
public class CDropDownItem<A extends CommonDropDownItem>
extends CDecorateableAction<A>
An action which can be child of a dropdown-menu.
- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether this item can be selected if it is a child of aCDropDownButtonbooleanTells whether this item can be triggered when it is a child of aCDropDownButton, but is not selected by thisCDropDownButton.booleanTells whether this item can be triggered when it is a child of aCDropDownButton, and is selected by thisCDropDownButton.voidsetDropDownSelectable(boolean dropDownSelectable) Sets whether this item can get selected when it is a child of aCDropDownButton.voidsetDropDownTriggerableNotSelected(boolean dropDownTriggerableNotSelected) Sets whether this item can be triggered when it is a child of aCDropDownButton, but is not selected by thisCDropDownButton.voidsetDropDownTriggerableSelected(boolean dropDownTriggerableSelected) Sets whether this item can be triggered when it is a child of aCDropDownButton, and is selected by thisCDropDownButton.Methods inherited from class bibliothek.gui.dock.common.intern.action.CDecorateableAction
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
-
Constructor Details
-
CDropDownItem
Creates a new action- Parameters:
action- the internal representation, can benullifCDecorateableAction.init(bibliothek.gui.dock.common.action.core.CommonDecoratableDockAction)is called later
-
-
Method Details
-
setDropDownSelectable
public void setDropDownSelectable(boolean dropDownSelectable) Sets whether this item can get selected when it is a child of aCDropDownButton.- Parameters:
dropDownSelectable-trueif this item can be selected
-
isDropDownSelectable
public boolean isDropDownSelectable()Tells whether this item can be selected if it is a child of aCDropDownButton- Returns:
trueif this item can be selected
-
setDropDownTriggerableNotSelected
public void setDropDownTriggerableNotSelected(boolean dropDownTriggerableNotSelected) Sets whether this item can be triggered when it is a child of aCDropDownButton, but is not selected by thisCDropDownButton.- Parameters:
dropDownTriggerableNotSelected-trueif this item can be triggered when it is not selected
-
isDropDownTriggerableNotSelected
public boolean isDropDownTriggerableNotSelected()Tells whether this item can be triggered when it is a child of aCDropDownButton, but is not selected by thisCDropDownButton.- Returns:
trueif this item can be triggered even when it is not selected
-
setDropDownTriggerableSelected
public void setDropDownTriggerableSelected(boolean dropDownTriggerableSelected) Sets whether this item can be triggered when it is a child of aCDropDownButton, and is selected by thisCDropDownButton.- Parameters:
dropDownTriggerableSelected-trueif this item can be triggered when it is selected
-
isDropDownTriggerableSelected
public boolean isDropDownTriggerableSelected()Tells whether this item can be triggered when it is a child of aCDropDownButton, and is selected by thisCDropDownButton.- Returns:
trueif this item can be triggered when it is selected
-