com.googlecode.wicket.jquery.ui.kendo.combobox
Class ComboBoxRenderer<T>

java.lang.Object
  extended by com.googlecode.wicket.jquery.ui.renderer.TextRenderer<T>
      extended by com.googlecode.wicket.jquery.ui.kendo.combobox.ComboBoxRenderer<T>
Type Parameters:
T - the model object type
All Implemented Interfaces:
ITextRenderer<T>, Serializable, org.apache.wicket.IClusterable

public class ComboBoxRenderer<T>
extends TextRenderer<T>

Provides the default ComboBox renderer.

Author:
Sebastien Briquet - sebfz1
See Also:
Serialized Form

Constructor Summary
ComboBoxRenderer()
          Constructor
ComboBoxRenderer(String textExpression)
          Constructor
ComboBoxRenderer(String textExpression, String valueExpression)
          Constructor
 
Method Summary
 String getTextField()
          Gets the name of the field that acts as the 'dataTextField' in the JSON response.
 String getValue(T object)
          Gets the value that should be renderer for the supplied object
 String getValueField()
          Gets the name of the field that acts as the 'dataValueField' in the JSON response.
 
Methods inherited from class com.googlecode.wicket.jquery.ui.renderer.TextRenderer
getExpression, getText, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboBoxRenderer

public ComboBoxRenderer()
Constructor


ComboBoxRenderer

public ComboBoxRenderer(String textExpression)
Constructor

Parameters:
textExpression - the property expression that will be resolved for the bean supplied to TextRenderer.getText(Object)

ComboBoxRenderer

public ComboBoxRenderer(String textExpression,
                        String valueExpression)
Constructor

Parameters:
textExpression - the property expression that will be resolved for the bean supplied to TextRenderer.getText(Object)
valueExpression - the property expression that will be resolved for the bean supplied to getValue(Object)
Method Detail

getTextField

public String getTextField()
Gets the name of the field that acts as the 'dataTextField' in the JSON response.

Returns:
the name of the text field

getValue

public String getValue(T object)
Gets the value that should be renderer for the supplied object

Parameters:
object - the T object
Returns:
the value

getValueField

public String getValueField()
Gets the name of the field that acts as the 'dataValueField' in the JSON response.

Returns:
the name of the value field


Copyright © 2013 7thWeb. All Rights Reserved.