A renderer used to generate html output for the
AutoCompleteBehavior .
Helper implementations of this interface may abstract the implementation specific
details. Direct implementations of this interface should only be used when
total control is required.
The autocompletion value is supplied via an attribute on the first html element
named textvalue , if no attribute is found the innerHtml property
of the first element will be used instead.
For example:
new IAutoCompleteRenderer() {
void renderHead(Response r) { r.write(" "); }
void render(Object o, Response r) {
// notice the textvalue attribute we define for li element
r.write("- "+o.toString()+"
";
}
void renderFooter(Response r) { r.write(" "); }
}
since: 1.2 author: Igor Vaynberg (ivaynberg) author: Janne Hietamäki (jannehietamaki) |