Class CDropDownItem<A extends CommonDropDownItem>

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 Details

  • Method Details

    • 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