Class DisplayableRenderer<T extends Serializable>
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<DisplayableValue<T>>
-
- com.evolveum.midpoint.web.component.search.DisplayableRenderer<T>
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.markup.html.form.IChoiceRenderer<DisplayableValue<T>>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.convert.IConverter<DisplayableValue<T>>
,org.apache.wicket.util.io.IClusterable
public class DisplayableRenderer<T extends Serializable> extends org.apache.wicket.util.convert.converter.AbstractConverter<DisplayableValue<T>> implements org.apache.wicket.markup.html.form.IChoiceRenderer<DisplayableValue<T>>
- Author:
- Viliam Repan (lazyman)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DisplayableRenderer(org.apache.wicket.model.IModel<List<DisplayableValue<T>>> allChoices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayableValue<T>
convertToObject(String value, Locale locale)
Object
getDisplayValue(DisplayableValue<T> object)
String
getIdValue(DisplayableValue<T> object, int index)
DisplayableValue<T>
getObject(String id, org.apache.wicket.model.IModel<? extends List<? extends DisplayableValue<T>>> choices)
protected Class<DisplayableValue<T>>
getTargetType()
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
convertToString, newConversionException, parse
-
-
-
-
Constructor Detail
-
DisplayableRenderer
public DisplayableRenderer(org.apache.wicket.model.IModel<List<DisplayableValue<T>>> allChoices)
-
-
Method Detail
-
getTargetType
protected Class<DisplayableValue<T>> getTargetType()
- Specified by:
getTargetType
in classorg.apache.wicket.util.convert.converter.AbstractConverter<DisplayableValue<T extends Serializable>>
-
getDisplayValue
public Object getDisplayValue(DisplayableValue<T> object)
- Specified by:
getDisplayValue
in interfaceorg.apache.wicket.markup.html.form.IChoiceRenderer<T extends Serializable>
-
getIdValue
public String getIdValue(DisplayableValue<T> object, int index)
- Specified by:
getIdValue
in interfaceorg.apache.wicket.markup.html.form.IChoiceRenderer<T extends Serializable>
-
getObject
public DisplayableValue<T> getObject(String id, org.apache.wicket.model.IModel<? extends List<? extends DisplayableValue<T>>> choices)
- Specified by:
getObject
in interfaceorg.apache.wicket.markup.html.form.IChoiceRenderer<T extends Serializable>
-
convertToObject
public DisplayableValue<T> convertToObject(String value, Locale locale) throws org.apache.wicket.util.convert.ConversionException
- Specified by:
convertToObject
in interfaceorg.apache.wicket.util.convert.IConverter<T extends Serializable>
- Throws:
org.apache.wicket.util.convert.ConversionException
-
-