Package org.zkoss.zul

Examples of org.zkoss.zul.ClientConstraint


      boolean constrDone = false;
      if (_auxinf.constr instanceof CustomConstraint) { //client ignored if custom
        smartUpdate("constraint", "[c"); //implies validated at server
        return;
      } else if (_auxinf.constr instanceof ClientConstraint) {
        final ClientConstraint cc = (ClientConstraint)_auxinf.constr;
        try {
          final String cpkg = cc.getClientPackages();
          if (cpkg != null)
            smartUpdate("z$pk", cpkg);

          final String js = cc.getClientConstraint();
          if (js != null) {
            final char c = js.length() > 0 ? js.charAt(0): (char)0;
            if (c != '\'' && c != '"') {
              smartUpdate("z$al",
                new JavaScriptValue("{constraint:function(){\nreturn "+js+";}}"));
View Full Code Here


    final Constraint constr = _auxinf != null ? _auxinf.constr: null;
    if (constr instanceof CustomConstraint) { //client ignored if custom
      renderer.render("constraint", "[c"); //implies validated at server
      constrDone = true;
    } else if (constr instanceof ClientConstraint) {
      final ClientConstraint cc = (ClientConstraint)constr;
      try {
        render(renderer, "z$pk", cc.getClientPackages());

        final String js = cc.getClientConstraint();
        if (js != null) {
          final char c = js.length() > 0 ? js.charAt(0): (char)0;
          if (c != '\'' && c != '"') {
            renderer.renderDirectly("z$al",
              "{constraint:function(){\nreturn "+js+";}}");
View Full Code Here

TOP

Related Classes of org.zkoss.zul.ClientConstraint

Copyright © 2018 www.massapicom. 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.