public class AutoCompleterResult extends Object
AutoCompleterComponent.
Use as follows:
public class MyChip implements AjaxRequestHandler
{
...
public void processAjaxEvents( HttpServletRequest request, HttpServletResponse response, PrintWriter out, Map requestParameters )
{
...
List result = ...
if( !result.isEmpty() )
{
AutocompleterResult res = new AutocompleterResult();
for( final Iterator iter = matching.iterator(); iter.hasNext(); )
{
final Product p = (Product)iter.next();
// we're passing both display value AND event return value
// please note that the autocompleter component must be
// given an event id !
res.addResult(p.getCode(), p.getPK().toString() );
}
out.println(res.getResponseText());
}
}
}
| Constructor and Description |
|---|
AutoCompleterResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalMessage(String message) |
void |
addMoreMessage(int count) |
void |
addResult(String displayString) |
void |
addResult(String displayString,
String value) |
String |
getResponseText() |
Copyright © 2017 SAP SE. All Rights Reserved.