Enum TreeItemSelectable.SelectionType

    • 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 name
        java.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 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