Class AutoCompleteDisplayableValueConverter<T>

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.util.convert.IConverter<T>, org.apache.wicket.util.io.IClusterable

    public class AutoCompleteDisplayableValueConverter<T>
    extends Object
    implements org.apache.wicket.util.convert.IConverter<T>
    Author:
    skublik
    See Also:
    Serialized Form
    • Constructor Detail

      • AutoCompleteDisplayableValueConverter

        public AutoCompleteDisplayableValueConverter​(org.apache.wicket.model.IModel<? extends List<DisplayableValue<T>>> values)
      • AutoCompleteDisplayableValueConverter

        public AutoCompleteDisplayableValueConverter​(org.apache.wicket.model.IModel<? extends List<DisplayableValue<T>>> values,
                                                     boolean strict)
    • Method Detail

      • convertToObject

        public T convertToObject​(String value,
                                 Locale locale)
                          throws org.apache.wicket.util.convert.ConversionException
        Specified by:
        convertToObject in interface org.apache.wicket.util.convert.IConverter<T>
        Throws:
        org.apache.wicket.util.convert.ConversionException
      • valueToObject

        protected T valueToObject​(String value)
      • convertToString

        public String convertToString​(T key,
                                      Locale locale)
        Specified by:
        convertToString in interface org.apache.wicket.util.convert.IConverter<T>
      • matchValues

        protected boolean matchValues​(T key,
                                      T value)
      • keyToString

        protected String keyToString​(T key)