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:
  • Constructor Details

    • DisplayableRenderer

      public DisplayableRenderer(org.apache.wicket.model.IModel<List<DisplayableValue<T>>> allChoices)
  • Method Details

    • getTargetType

      protected Class<DisplayableValue<T>> getTargetType()
      Specified by:
      getTargetType in class org.apache.wicket.util.convert.converter.AbstractConverter<DisplayableValue<T extends Serializable>>
    • getDisplayValue

      public Object getDisplayValue(DisplayableValue<T> object)
      Specified by:
      getDisplayValue in interface org.apache.wicket.markup.html.form.IChoiceRenderer<T extends Serializable>
    • getIdValue

      public String getIdValue(DisplayableValue<T> object, int index)
      Specified by:
      getIdValue in interface org.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 interface org.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 interface org.apache.wicket.util.convert.IConverter<T extends Serializable>
      Throws:
      org.apache.wicket.util.convert.ConversionException