Enum WSuggestions.Autocomplete

  • All Implemented Interfaces:
    Serializable, Comparable<WSuggestions.Autocomplete>
    Enclosing class:
    WSuggestions

    public static enum WSuggestions.Autocomplete
    extends Enum<WSuggestions.Autocomplete>
    The way in which the suggestion is provided to and selected by the user. Defaults to BOTH and should remain as this for combobox implementations. LIST should be used for implementations which enforce selection of an existing value. We may want to consider INLINE in the future but I see no reason for NONE since then it would not be a combo.
    • Enum Constant Detail

      • BOTH

        public static final WSuggestions.Autocomplete BOTH
        Indicates that autocomplete may be from the textbox or from the suggestion list.
    • Method Detail

      • values

        public static WSuggestions.Autocomplete[] 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 (WSuggestions.Autocomplete c : WSuggestions.Autocomplete.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WSuggestions.Autocomplete 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