SimpleConstraint

A simple constraint that you could build based the predefined constants.

Interface Name

org.zkoss.zul.SimpleConstraint

Methods

Name

Description

Return Data Type

getClientValidation()

Returns the function name in JavaScript or a Javascript code snippet used to validate the value at the client.

String

Name

Description

Return Data Type

getErrorMessage(org.zkoss.zk.ui.Component comp)

Returns the error message when the client detects an error

String

getInstance(java.lang.String flags)

Parses flags from a string to an integer representing a combination of NO_POSITIVE and other NO_xxx flags.

org.zkoss.zul.

SimpleConstraint

isClientComplete()

Returns whether the client's validation is complete.

boolean

validate(org.zkoss.zk.ui.Component comp, java.lang.Object value)

Verifies whether the value is acceptable.

void