Class DisplayableRenderer<T extends Serializable>

  • 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 Detail

      • DisplayableRenderer

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

      • 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>
      • 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