org.apache.wicket.extensions.ajax.markup.html.autocomplete
Class StringAutoCompleteRenderer

java.lang.Object
  extended by org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteRenderer<T>
      extended by org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteTextRenderer<Object>
          extended by org.apache.wicket.extensions.ajax.markup.html.autocomplete.StringAutoCompleteRenderer
All Implemented Interfaces:
Serializable, IAutoCompleteRenderer<Object>, IClusterable

public final class StringAutoCompleteRenderer
extends AbstractAutoCompleteTextRenderer<Object>

An renderer that calls object.toString() to get the text value. Great for quickly generating a list of assists.

Since:
1.2
Author:
Igor Vaynberg (ivaynberg)
See Also:
Serialized Form

Field Summary
static IAutoCompleteRenderer INSTANCE
          A singleton instance
 
Constructor Summary
StringAutoCompleteRenderer()
           
 
Method Summary
protected  String getTextValue(Object object)
          Retrieves the text value that will be set on the textbox if this assist is selected
static
<T> IAutoCompleteRenderer<T>
instance()
           
 
Methods inherited from class org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteTextRenderer
renderChoice
 
Methods inherited from class org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteRenderer
getOnSelectJavascriptExpression, render, renderFooter, renderHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IAutoCompleteRenderer INSTANCE
A singleton instance

Constructor Detail

StringAutoCompleteRenderer

public StringAutoCompleteRenderer()
Method Detail

instance

public static final <T> IAutoCompleteRenderer<T> instance()
Type Parameters:
T -
Returns:
A static instance of the class

getTextValue

protected String getTextValue(Object object)
Description copied from class: AbstractAutoCompleteRenderer
Retrieves the text value that will be set on the textbox if this assist is selected

Specified by:
getTextValue in class AbstractAutoCompleteRenderer<Object>
Parameters:
object - assist choice object
Returns:
the text value that will be set on the textbox if this assist is selected
See Also:
AbstractAutoCompleteRenderer.getTextValue(Object)


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