Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.Richlet


        sess.setAttribute(Attributes.GAE_FIX, new Integer(0));
        ((SessionCtrl)sess).notifyClientRequest(true);

        final UiFactory uf = wappc.getUiFactory();
        if (uf.isRichlet(ri, bRichlet)) {
          final Richlet richlet = uf.getRichlet(ri, path);
          if (richlet == null)
            return false; //not found

          final Page page = WebManager.newPage(uf, ri, richlet, response, path);
          final Execution exec = new ExecutionImpl(
View Full Code Here


        PageDefinitions.getLocator(wapp, path));
      sess.setAttribute(Attributes.GAE_FIX, new Integer(0));
      ((SessionCtrl)sess).notifyClientRequest(true);

      final UiFactory uf = wappc.getUiFactory();
      final Richlet richlet = new StandaloneRichlet(comp);

      final Page page = WebManager.newPage(uf, ri, richlet, response, path);
      exec = new ExecutionImpl(ctx, request, response, desktop, page);
      exec.setAttribute(Attributes.PAGE_REDRAW_CONTROL, "page");
      exec.setAttribute(Attributes.PAGE_RENDERER, new PageRenderer(exec));
View Full Code Here

      final Object o = ((Class)info[0]).newInstance();
      if (!(o instanceof Richlet))
        throw new UiException(Richlet.class+" must be implemented by "+info[0]);

      final Richlet richlet = (Richlet)o;
      richlet.init(new RichletConfigImpl(_wapp, (Map)info[1]));

      synchronized (_richlets) {
        _richlets.put(name, richlet);
      }
      return richlet;
View Full Code Here

    else if (path.charAt(0) != '/')
      path = '/' + path;

    final int len = path.length();
    for (int j = len;;) {
      final Richlet richlet =
        getRichletByPath0(path.substring(0, j), j != len);
      if (richlet != null || j == 0)
        return richlet;
      j = path.lastIndexOf('/', j - 1); //j must not -1
    }
View Full Code Here

        final Page page;
        final PageRenderPatch patch = getRenderPatch();
        final Writer out = patch.beforeRender(ri);
        final UiFactory uf = wappc.getUiFactory();
        if (uf.isRichlet(ri, bRichlet)) {
          final Richlet richlet = uf.getRichlet(ri, path);
          if (richlet == null)
            return false; //not found

          page = WebManager.newPage(uf, ri, richlet, httpres, path);
          final Execution exec =
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.Richlet

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.