bibliothek.gui.dock.common.intern.action
Class CDropDownItem

java.lang.Object
  extended by bibliothek.gui.dock.common.action.CAction
      extended by bibliothek.gui.dock.common.intern.action.CDecorateableAction
          extended by bibliothek.gui.dock.common.intern.action.CDropDownItem
Direct Known Subclasses:
CButton, CCloseAction, CExtendedModeAction, CSelectableAction

@FrameworkOnly
public class CDropDownItem
extends CDecorateableAction

An action which can be child of a dropdown-menu.

Author:
Benjamin Sigg

Constructor Summary
protected CDropDownItem(SimpleDropDownItemAction action)
          Creates a new action
 
Method Summary
protected  void init(SimpleDropDownItemAction action)
          Initializes this action, this method can be called only once.
 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
getAccelerator, getDisabledIcon, getIcon, getText, getTooltip, init, isEnabled, setAccelerator, setDisabledIcon, setEnabled, setIcon, setText, setTooltip
 
Methods inherited from class bibliothek.gui.dock.common.action.CAction
init, intern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDropDownItem

protected CDropDownItem(SimpleDropDownItemAction action)
Creates a new action

Parameters:
action - the internal representation, can be null if init(SimpleDropDownItemAction) is called later
Method Detail

init

protected void init(SimpleDropDownItemAction action)
Initializes this action, this method can be called only once.

Parameters:
action - the internal representation

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