Class AutoCompletionPriority

    • Constructor Detail

      • AutoCompletionPriority

        public AutoCompletionPriority​(boolean inDataSet,
                                      boolean inStandard,
                                      boolean selected,
                                      Integer userInput)
        Constructs a new AutoCompletionItemPriority.
        Parameters:
        inDataSet - true, if the item is found in the currently active data layer
        inStandard - true, if the item is a standard tag, e.g. from the presets
        selected - true, if it is found on an object that is currently selected
        userInput - null, if the user hasn't entered this tag so far. A number when the tag key / value has been entered by the user before. A lower number means this happened more recently and beats a higher number in priority.
      • AutoCompletionPriority

        public AutoCompletionPriority​(boolean inDataSet,
                                      boolean inStandard,
                                      boolean selected)
        Constructs a new AutoCompletionItemPriority.
        Parameters:
        inDataSet - true, if the item is found in the currently active data layer
        inStandard - true, if the item is a standard tag, e.g. from the presets
        selected - true, if it is found on an object that is currently selected
    • Method Detail

      • isInDataSet

        public boolean isInDataSet()
        Determines if the item is found in the currently active data layer.
        Returns:
        true if the item is found in the currently active data layer
      • isInStandard

        public boolean isInStandard()
        Determines if the item is a standard tag, e.g. from the presets.
        Returns:
        true if the item is a standard tag, e.g. from the presets
      • isSelected

        public boolean isSelected()
        Determines if it is found on an object that is currently selected.
        Returns:
        true if it is found on an object that is currently selected
      • getUserInput

        public Integer getUserInput()
        Returns a number when the tag key / value has been entered by the user before. A lower number means this happened more recently and beats a higher number in priority.
        Returns:
        a number when the tag key / value has been entered by the user before. null, if the user hasn't entered this tag so far.