Package org.zkoss.zk.ui.metainfo

Examples of org.zkoss.zk.ui.metainfo.ZScript


        if (!_event.isPropagatable())
          return; //done
      }
    }

    final ZScript zscript = ((ComponentCtrl)_comp).getEventHandler(evtnm);
    if (zscript != null && page != null) {
      page.interpret(
        zscript.getLanguage(), zscript.getContent(page, _comp), scope);
      if (!_event.isPropagatable())
        return; //done
    }

    retry = false;
View Full Code Here


   */
  private void evalDeferredZScripts(Interpreter ip, String zslang) {
    if (_zsDeferred != null) {
      for (Iterator it = _zsDeferred.iterator(); it.hasNext();) {
        final Object[] zsInfo = (Object[])it.next();
        final ZScript zscript = (ZScript)zsInfo[1];
        String targetlang = zscript.getLanguage();
        if (targetlang == null)
          targetlang = _zslang; //use default

        if (targetlang.equalsIgnoreCase(zslang)) { //case insensitive
          it.remove(); //done

          final Component parent = (Component)zsInfo[0];
          if ((parent == null || parent.getPage() == this)
          && isEffective(zscript, parent)) {
            final Scope scope =
              Scopes.beforeInterpret(parent != null ? (Scope)parent: this);
            try {
              ip.interpret(zscript.getContent(this, parent), scope);
            } finally {
              Scopes.afterInterpret();
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.metainfo.ZScript

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.