Package org.zkoss.zul

Examples of org.zkoss.zul.Constraint.validate()


    final Constraint constr = getConstraint();
    if (constr != null) { //then _auxinf must be non-null
      //Bug 1698190: contructor might be zscript
      Scopes.beforeInterpret(this);
      try {
        constr.validate(this, value);
        if (!_auxinf.checkOnly && (constr instanceof CustomConstraint)) {
          try {
            ((CustomConstraint)constr).showCustomError(this, null);
            //not call thru showCustomError(Wrong...) for better performance
          } catch (Throwable ex) {
View Full Code Here


     * @param comp
     */
    private void validate(Textbox comp) {
        if (comp != null && comp.getConstraint() != null && !comp.isDisabled()) {
            final Constraint constraint = comp.getConstraint();
            constraint.validate(comp, comp.getValue());
        }
    }

    public void createLabel() {
        try{
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.