Class AutoCompleteDisplayableValueConverter<T>
java.lang.Object
com.evolveum.midpoint.gui.impl.component.input.converter.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:
-
Constructor Summary
ConstructorDescriptionAutoCompleteDisplayableValueConverter
(org.apache.wicket.model.IModel<? extends List<DisplayableValue<T>>> values) AutoCompleteDisplayableValueConverter
(org.apache.wicket.model.IModel<? extends List<DisplayableValue<T>>> values, boolean strict) -
Method Summary
Modifier and TypeMethodDescriptionconvertToObject
(String value, Locale locale) convertToString
(T key, Locale locale) protected String
keyToString
(T key) protected boolean
matchValues
(T key, T value) protected T
valueToObject
(String value)
-
Constructor Details
-
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 Details
-
convertToObject
public T convertToObject(String value, Locale locale) throws org.apache.wicket.util.convert.ConversionException - Specified by:
convertToObject
in interfaceorg.apache.wicket.util.convert.IConverter<T>
- Throws:
org.apache.wicket.util.convert.ConversionException
-
valueToObject
-
convertToString
- Specified by:
convertToString
in interfaceorg.apache.wicket.util.convert.IConverter<T>
-
matchValues
-
keyToString
-