bibliothek.gui.dock.common.intern.action
Class CDropDownItem<A extends CommonDropDownItem>

java.lang.Object
  extended by bibliothek.gui.dock.common.action.CAction
      extended by bibliothek.gui.dock.common.intern.action.CDecorateableAction<A>
          extended by bibliothek.gui.dock.common.intern.action.CDropDownItem<A>
Type Parameters:
A - the kind of action that represents this CAction
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
protected CDropDownItem(A action)
          Creates a new action
 
Method Summary
 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.
 
Methods inherited from class bibliothek.gui.dock.common.intern.action.CDecorateableAction
addDecorateableActionListener, getAccelerator, getDisabledHoverIcon, getDisabledIcon, getDisabledPressedIcon, getHoverIcon, getIcon, getPressedIcon, getText, getTooltip, init, intern, isEnabled, isShowTextOnButtons, removeDecorateableActionListener, setAccelerator, setDisabledHoverIcon, setDisabledIcon, setDisabledPressedIcon, setEnabled, setHoverIcon, setIcon, setPressedIcon, setShowTextOnButtons, 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

CDropDownItem

protected CDropDownItem(A action)
Creates a new action

Parameters:
action - the internal representation, can be null if CDecorateableAction.init(bibliothek.gui.dock.common.action.core.CommonDecoratableDockAction) is called later
Method Detail

setDropDownSelectable

public void setDropDownSelectable(boolean dropDownSelectable)
Sets whether this item can get selected when it is a child of a CDropDownButton.

Parameters:
dropDownSelectable - true if this item can be selected

isDropDownSelectable

public boolean isDropDownSelectable()
Tells whether this item can be selected if it is a child of a CDropDownButton

Returns:
true if this item can be selected

setDropDownTriggerableNotSelected

public 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.

Parameters:
dropDownTriggerableNotSelected - true if 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 a CDropDownButton, but is not selected by this CDropDownButton.

Returns:
true if 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 a CDropDownButton, and is selected by this CDropDownButton.

Parameters:
dropDownTriggerableSelected - true if 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 a CDropDownButton, and is selected by this CDropDownButton.

Returns:
true if this item can be triggered when it is selected