Type Parameters:
T - the model object's type
All Superinterfaces:
org.apache.wicket.util.io.IClusterable, org.apache.wicket.model.IDetachable, Serializable

public interface IOptionRenderer<T> extends org.apache.wicket.model.IDetachable
Author:
Igor Vaynberg (ivaynberg)
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Override when needed.
    Get the value for displaying to the user.
    org.apache.wicket.model.IModel<T>
    getModel(T value)
    Gets the model that will be used to represent the value object.
  • Method Details

    • getDisplayValue

      Get the value for displaying to the user.
      Parameters:
      object - SelectOption model object
      Returns:
      the value for displaying to the user.
    • getModel

      org.apache.wicket.model.IModel<T> getModel(T value)
      Gets the model that will be used to represent the value object. This is a good place to wrap the value object with a detachable model one is desired
      Parameters:
      value -
      Returns:
      model that will contain the value object
    • detach

      default void detach()
      Override when needed.
      Specified by:
      detach in interface org.apache.wicket.model.IDetachable