Enum Selectable

java.lang.Object
java.lang.Enum<Selectable>
org.apache.myfaces.tobago.model.Selectable
All Implemented Interfaces:
Serializable, Comparable<Selectable>, java.lang.constant.Constable

public enum Selectable extends Enum<Selectable>
  • Enum Constant Details

    • none

      public static final Selectable none
      Not selectable.
    • multi

      public static final Selectable multi
      Multi selection possible. No other limitations.
    • single

      public static final Selectable single
      Only one item is selectable.
    • singleOrNone

      public static final Selectable singleOrNone
      Only one of no item is selectable.
    • multiLeafOnly

      public static final Selectable multiLeafOnly
      Only leafs are selectable.
    • singleLeafOnly

      public static final Selectable singleLeafOnly
      Only one item is selectable and it must be a leaf.
    • sibling

      public static final Selectable sibling
      Only siblings are selectable.
    • siblingLeafOnly

      public static final Selectable siblingLeafOnly
      Only siblings are selectable and they have to be leafs.
    • multiCascade

      public static final Selectable multiCascade
      Multi selection possible. When selecting or deselecting an item, the subtree will also be selected or unselected.
  • Field Details

  • Method Details

    • values

      public static Selectable[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Selectable valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static Selectable parse(Object name) throws IllegalArgumentException
      Parameters:
      name - Name of the Selectable
      Returns:
      The matching tree selection (can't be null).
      Throws:
      IllegalArgumentException - When the name doesn't match any Selectable.
    • isLeafOnly

      public boolean isLeafOnly()
    • isSingle

      public boolean isSingle()
    • isMulti

      public boolean isMulti()
    • isSupportedBySheet

      public boolean isSupportedBySheet()
    • isSupportedByTree

      public boolean isSupportedByTree()
    • isSupportedByTreeListbox

      public boolean isSupportedByTreeListbox()