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, 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_NAME
COLON, 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, createCallScript
addParameter, addToBody, appendScript, getName, setName
appendScriptToStringBuilder, toScript, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName
appendScript, appendScriptToStringBuilder, toScript
public 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()
ResourceLibrary
Returns 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 JSFunctionDefinition
IOException
protected void appendParameters(Appendable target) throws IOException
appendParameters
in class ValidatorScriptBase
IOException
protected void appendValidator(Appendable target, LibraryScriptFunction validatorScript) throws IOException
IOException
protected void appendConverter(Appendable target, LibraryScriptFunction converter) throws IOException
IOException
protected void appendAjaxParameter(Appendable target) throws IOException
IOException
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.