Enum TreeItemSelectable.SelectionType
- java.lang.Object
-
- java.lang.Enum<TreeItemSelectable.SelectionType>
-
- com.hybris.backoffice.widgets.selectivesync.tree.TreeItemSelectable.SelectionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TreeItemSelectable.SelectionType>
- Enclosing interface:
- TreeItemSelectable
public static enum TreeItemSelectable.SelectionType extends java.lang.Enum<TreeItemSelectable.SelectionType>
Selection options for types.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TreeItemSelectable.SelectionTyperesolveSelectionType(boolean allSelected, boolean allDeselected)Resolves selection basing on sub-nodes presence of each SelectionType.static TreeItemSelectable.SelectionTyperesolveSelectionType(long allSelectedCount, long partiallySelectedCount, long noneSelectedCount)Resolves selection basing on sub-nodes number grouped by SelectionType.static TreeItemSelectable.SelectionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TreeItemSelectable.SelectionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final TreeItemSelectable.SelectionType ALL
-
NONE
public static final TreeItemSelectable.SelectionType NONE
-
PARTIALLY
public static final TreeItemSelectable.SelectionType PARTIALLY
-
-
Method Detail
-
values
public static TreeItemSelectable.SelectionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TreeItemSelectable.SelectionType c : TreeItemSelectable.SelectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TreeItemSelectable.SelectionType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.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 selectedallDeselected- 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 nodespartiallySelectedCount- number of partially selected sub nodesnoneSelectedCount- number of not selected sub nodes- Returns:
- selection type
-
-