Class DisplayableChoiceRenderer<T>

java.lang.Object
com.evolveum.midpoint.gui.api.util.DisplayableChoiceRenderer<T>
All Implemented Interfaces:
Serializable, org.apache.wicket.markup.html.form.IChoiceRenderer<DisplayableValue<T>>, org.apache.wicket.model.IDetachable, org.apache.wicket.util.io.IClusterable

public class DisplayableChoiceRenderer<T> extends Object implements org.apache.wicket.markup.html.form.IChoiceRenderer<DisplayableValue<T>>
Created by Viliam Repan (lazyman).
See Also:
  • Constructor Details

    • DisplayableChoiceRenderer

      public DisplayableChoiceRenderer()
  • Method Details

    • getDisplayValue

      public Object getDisplayValue(DisplayableValue val)
      TODO This impl doesn't look good, label should take preference, that's why it's there for...
      Specified by:
      getDisplayValue in interface org.apache.wicket.markup.html.form.IChoiceRenderer<T>
    • getIdValue

      public String getIdValue(DisplayableValue val, int index)
      Specified by:
      getIdValue in interface org.apache.wicket.markup.html.form.IChoiceRenderer<T>
    • 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>