public class AbstractObjectAutoCompleteRenderer<O> extends Object implements Serializable
Constructor and Description |
---|
AbstractObjectAutoCompleteRenderer() |
Modifier and Type | Method and Description |
---|---|
protected String |
getIdValue(O object)
Get id of the object to render.
|
protected String |
getIdValueForObject(O object)
Get the verified id value for an object
|
protected String |
getTextValue(O pObject)
Retrieves the text value that will be set on the textbox if this assist is selected Can be
overwritten, by default it returns the object's toString()
|
protected String |
getTextValueForObject(O object)
Get and check proper text value
|
protected void |
renderChoice(O object,
org.apache.wicket.request.Response response,
String criteria)
Render the visual portion of the assist.
|
protected void |
renderObject(O object,
org.apache.wicket.request.Response response,
String criteria) |
void |
setIdProperty(String pIdProperty)
Set the property for extracting the id of an object
|
protected final String getIdValueForObject(O object)
object
- for which to fetch the idIllegalStateException
- if the id value could not be extractedprotected String getIdValue(O object)
idProperty
, but can be overwritten by a subclassobject
- object from which to extract the idIllegalArgumentException
- if no id could be extractedprotected final String getTextValueForObject(O object)
object
- object for which to get the text valueIllegalStateException
- if the text value could not be extractedprotected String getTextValue(O pObject)
pObject
- assist choice objectpublic void setIdProperty(String pIdProperty)
pIdProperty
- property name of the object idprotected void renderObject(O object, org.apache.wicket.request.Response response, String criteria)
protected void renderChoice(O object, org.apache.wicket.request.Response response, String criteria)
object
- current assist choiceresponse
- criteria
- Copyright © 2015. All rights reserved.