public abstract class ValidatorScriptBase extends JSFunctionDefinition implements ComponentValidatorScript
| Modifier and Type | Field and Description |
|---|---|
static String |
AJAX |
static JSReference |
AJAX_REF |
static String |
CONVERTER |
static JSReference |
CONVERTER_REF |
static String |
CSV_NAMESPACE |
static String |
DISABLE_AJAX |
static JSReference |
DISABLE_AJAX_REF |
static String |
ELEMENT |
static JSReference |
ELEMENT_REF |
static String |
EOL |
static String |
EVENT |
static JSReference |
EVENT_REF |
static JSFunction |
GET_VALUE_FUNCTION |
static String |
MESSAGE |
static JSReference |
MESSAGE_REF |
static NullConverterScript |
NULL_CONVERTER_SCRIPT |
static String |
PARAMS |
static JSReference |
PARAMS_REF |
static String |
SOURCE_ID |
static JSReference |
SOURCE_ID_REF |
static JSFunction |
VALIDATE_FUNCTION |
static String |
VALIDATE_FUNCTION_NAME |
static String |
VALIDATORS |
static JSReference |
VALIDATORS_REF |
static String |
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 |
|---|
ValidatorScriptBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendAjaxFunction(Appendable target,
String ajaxScript) |
protected void |
appendAjaxParameter(Appendable target,
String ajaxScript) |
protected void |
appendBody(Appendable target) |
protected void |
appendParameters(Appendable target) |
protected void |
appendValidatorCall(Appendable target) |
String |
createCallScript(String clientId,
String sourceId)
Creates JavasCript that calls validator function. |
addParameter, addToBody, appendFunctionName, appendScript, getName, setNameappendScriptToStringBuilder, toScript, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetResourcesappendScript, appendScriptToStringBuilder, toScriptpublic static final String ELEMENT
public static final JSReference ELEMENT_REF
public static final String EVENT
public static final JSReference EVENT_REF
public static final String DISABLE_AJAX
public static final JSReference DISABLE_AJAX_REF
public static final String EOL
public static final String SOURCE_ID
public static final JSReference SOURCE_ID_REF
public static final String CONVERTER
public static final JSReference CONVERTER_REF
public static final String VALIDATORS
public static final JSReference VALIDATORS_REF
public static final String AJAX
public static final JSReference AJAX_REF
public static final String PARAMS
public static final JSReference PARAMS_REF
public static final String MESSAGE
public static final JSReference MESSAGE_REF
public static final NullConverterScript NULL_CONVERTER_SCRIPT
public static final String CSV_NAMESPACE
public static final String VALUE_FUNCTION_NAME
public static final JSFunction GET_VALUE_FUNCTION
public static final String VALIDATE_FUNCTION_NAME
public static final JSFunction VALIDATE_FUNCTION
public String createCallScript(String clientId, String sourceId)
ComponentValidatorScriptCreates JavasCript that calls validator function.
createCallScript in interface ComponentValidatorScriptprotected void appendParameters(Appendable target) throws IOException
IOExceptionprotected void appendBody(Appendable target) throws IOException
appendBody in class JSFunctionDefinitionIOExceptionprotected void appendValidatorCall(Appendable target) throws IOException
IOExceptionprotected void appendAjaxParameter(Appendable target, String ajaxScript) throws IOException
IOExceptionprotected void appendAjaxFunction(Appendable target, String ajaxScript) throws IOException
IOExceptionCopyright © 2015 JBoss by Red Hat. All Rights Reserved.