Enum Class TreeItemSelectable.SelectionType

java.lang.Object
java.lang.Enum<TreeItemSelectable.SelectionType>
com.hybris.backoffice.widgets.selectivesync.tree.TreeItemSelectable.SelectionType
All Implemented Interfaces:
Serializable, Comparable<TreeItemSelectable.SelectionType>, Constable
Enclosing interface:
TreeItemSelectable

public static enum TreeItemSelectable.SelectionType extends Enum<TreeItemSelectable.SelectionType>
Selection options for types.
  • Enum Constant Details

  • Method Details

    • values

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

      public static TreeItemSelectable.SelectionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • resolveSelectionType

      public static TreeItemSelectable.SelectionType resolveSelectionType(boolean allSelected, boolean allDeselected)
      Resolves selection basing on sub-nodes presence of each SelectionType.
      Parameters:
      allSelected - all sub node are selected
      allDeselected - all sub nodes are deselected
      Returns:
      selection type
    • resolveSelectionType

      public static TreeItemSelectable.SelectionType resolveSelectionType(long allSelectedCount, long partiallySelectedCount, long noneSelectedCount)
      Resolves selection basing on sub-nodes number grouped by SelectionType.
      Parameters:
      allSelectedCount - number of selected sub nodes
      partiallySelectedCount - number of partially selected sub nodes
      noneSelectedCount - number of not selected sub nodes
      Returns:
      selection type