public class ClientOnlyScript extends ValidatorScriptBase
| Modifier and Type | Field and Description |
|---|---|
protected LibraryScriptFunction |
converter |
static ResourceKey |
CSV_RESOURCE |
protected String |
oninvalid |
protected String |
onvalid |
protected com.google.common.collect.ImmutableList<? extends LibraryScriptFunction> |
validators |
AJAX, AJAX_REF, CLIENT_ID, CLIENT_ID_REF, CONVERTER, CONVERTER_REF, CSV_NAMESPACE, DISABLE_AJAX, DISABLE_AJAX_REF, ELEMENT, ELEMENT_REF, EOL, EVENT, EVENT_REF, GET_VALUE_FUNCTION, MESSAGE, MESSAGE_REF, NULL_CONVERTER_SCRIPT, PARAMS, PARAMS_REF, SOURCE_ID, SOURCE_ID_REF, VALIDATE_FUNCTION, VALIDATE_FUNCTION_NAME, VALIDATORS, VALIDATORS_REF, VALUE_FUNCTION_NAMECOLON, COMMA, DOT, EMPTY_STRING, EQUALS, FUNCTION, LEFT_CURLY_BRACKET, LEFT_ROUND_BRACKET, LEFT_SQUARE_BRACKET, RIGHT_CURLY_BRACKET, RIGHT_ROUND_BRACKET, RIGHT_SQUARE_BRACKET| Constructor and Description |
|---|
ClientOnlyScript(LibraryScriptFunction clientSideConverterScript,
Collection<? extends LibraryScriptFunction> validatorScripts,
String onvalid,
String oninvalid) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendAjaxParameter(Appendable target) |
protected void |
appendConverter(Appendable target,
LibraryScriptFunction converter) |
void |
appendFunctionName(Appendable target) |
protected void |
appendParameters(Appendable target) |
protected void |
appendValidator(Appendable target,
LibraryScriptFunction validatorScript) |
boolean |
equals(Object obj) |
Iterable<ResourceKey> |
getResources()
Returns a list of resources contained in this resource library
|
int |
hashCode() |
appendAjaxFunction, appendAjaxParameter, appendBody, appendValidatorCall, createCallScriptaddParameter, addToBody, appendScript, getName, setNameappendScriptToStringBuilder, toScript, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNameappendScript, appendScriptToStringBuilder, toScriptpublic static final ResourceKey CSV_RESOURCE
protected final LibraryScriptFunction converter
protected final com.google.common.collect.ImmutableList<? extends LibraryScriptFunction> validators
protected final String onvalid
protected final String oninvalid
public ClientOnlyScript(LibraryScriptFunction clientSideConverterScript, Collection<? extends LibraryScriptFunction> validatorScripts, String onvalid, String oninvalid)
public Iterable<ResourceKey> getResources()
ResourceLibraryReturns a list of resources contained in this resource library
The result does not have to be stable; i.e. the returned list of resources may differ for each execution based on context, configuration, time, etc.
public void appendFunctionName(Appendable target) throws IOException
appendFunctionName in class JSFunctionDefinitionIOExceptionprotected void appendParameters(Appendable target) throws IOException
appendParameters in class ValidatorScriptBaseIOExceptionprotected void appendValidator(Appendable target, LibraryScriptFunction validatorScript) throws IOException
IOExceptionprotected void appendConverter(Appendable target, LibraryScriptFunction converter) throws IOException
IOExceptionprotected void appendAjaxParameter(Appendable target) throws IOException
IOExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.