Class TagComboBox<RECORD>

    • Field Detail

      • onFreeTextEntered

        public final Event<java.lang.String> onFreeTextEntered
      • onFreeTextRemoved

        public final Event<java.lang.String> onFreeTextRemoved
    • Constructor Detail

      • TagComboBox

        public TagComboBox()
      • TagComboBox

        public TagComboBox​(Template template)
    • Method Detail

      • createForList

        public static <R> TagComboBox<R> createForList​(java.util.List<R> staticData)
      • createForList

        public static <R> TagComboBox<R> createForList​(java.util.List<R> staticData,
                                                       Template template)
      • createForEnum

        public static <ENUM extends java.lang.Enum> TagComboBox<ENUM> createForEnum​(java.lang.Class<ENUM> enumClass)
      • isEmptyValue

        protected boolean isEmptyValue​(java.util.List<RECORD> records)
        Description copied from class: AbstractField
        Whether this value be regarded as empty / "no user input". Override for field-specific behaviour.
        Overrides:
        isEmptyValue in class AbstractField<java.util.List<RECORD>>
        Returns:
        true if the value can be regarded as "empty".
      • convertUxValueToUiValue

        public java.lang.Object convertUxValueToUiValue​(java.util.List<RECORD> uxValue)
        Description copied from class: AbstractField
        Converts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!
        Overrides:
        convertUxValueToUiValue in class AbstractField<java.util.List<RECORD>>
        Parameters:
        uxValue - the server-side value
        Returns:
        the object to be sent to the ui
      • getMaxEntries

        public int getMaxEntries()
      • setMaxEntries

        public void setMaxEntries​(int maxEntries)
      • isDistinct

        public boolean isDistinct()
      • setDistinct

        public void setDistinct​(boolean distinct)
      • getFreeTextEntries

        public java.util.List<java.lang.String> getFreeTextEntries()
      • setFreeTextEntries

        public void setFreeTextEntries​(java.util.List<java.lang.String> freeTextEntries)
      • isTwoStepDeletion

        public boolean isTwoStepDeletion()
      • setTwoStepDeletion

        public void setTwoStepDeletion​(boolean twoStepDeletion)