org.apache.wicket.extensions.markup.html.form.select
Interface IOptionRenderer<T>

Type Parameters:
T - the model object's type
All Superinterfaces:
IClusterable, Serializable

public interface IOptionRenderer<T>
extends IClusterable

Author:
Igor Vaynberg (ivaynberg)

Method Summary
 String getDisplayValue(T object)
          Get the value for displaying to the user.
 IModel<T> getModel(T value)
          Gets the model that will be used to represent the value object.
 

Method Detail

getDisplayValue

String getDisplayValue(T object)
Get the value for displaying to the user.

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

getModel

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


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.