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>
,IDetachable
,IClusterable
public final class StringAutoCompleteRenderer extends AbstractAutoCompleteTextRenderer<Object>
A 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
Fields Modifier and Type Field Description static IAutoCompleteRenderer
INSTANCE
A singleton instance
-
Constructor Summary
Constructors Constructor Description StringAutoCompleteRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getTextValue(Object object)
Retrieves the text value that will be set on the textbox if this assist is selectedstatic <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
-
Methods inherited from interface org.apache.wicket.extensions.ajax.markup.html.autocomplete.IAutoCompleteRenderer
detach
-
-
-
-
Field Detail
-
INSTANCE
public static final IAutoCompleteRenderer INSTANCE
A singleton instance
-
-
Constructor Detail
-
StringAutoCompleteRenderer
public StringAutoCompleteRenderer()
-
-
Method Detail
-
instance
public static <T> IAutoCompleteRenderer<T> instance()
- Type Parameters:
T
-- Returns:
- the single instance
-
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 classAbstractAutoCompleteRenderer<Object>
- Parameters:
object
- assist choice object- Returns:
- the text value that will be set on the textbox if this assist is selected
-
-