org.apache.wicket.extensions.ajax.markup.html.autocomplete
Class StringAutoCompleteRenderer
java.lang.Object
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteRenderer<T>
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteTextRenderer<Object>
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
Method Summary |
protected String |
getTextValue(Object object)
Retrieves the text value that will be set on the textbox if this assist is selected |
static
|
instance()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final IAutoCompleteRenderer INSTANCE
- A singleton instance
StringAutoCompleteRenderer
public StringAutoCompleteRenderer()
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.