public interface IOptionsRenderer extends Serializable
Renders a set of options.
| Modifier and Type | Method and Description |
|---|---|
void |
renderAfter(StringBuilder stringBuilder)
Renders a JavaScript code after iterating on each key, value pair.
|
void |
renderBefore(StringBuilder stringBuilder)
Renders a JavaScript code before iterating on each key, value pair.
|
CharSequence |
renderOption(String name,
Object value,
boolean isLast)
Renders the current option (e.g.
|
void renderBefore(StringBuilder stringBuilder)
stringBuilder - The current JavaScript outputCharSequence renderOption(String name, Object value, boolean isLast)
name - The option namevalue - The option valueisLast - true if this is the last option, false otherwiseCharSequence rendering the option JavaScript code.void renderAfter(StringBuilder stringBuilder)
stringBuilder - The current JavaScript outputCopyright © 2009-2012. All Rights Reserved.