Package org.zkoss.zk.ui.sys

Examples of org.zkoss.zk.ui.sys.DesktopCtrl.removeComponent()


           parent.incNChild(-1);

          final String s = ((HtmlNativeComponent)n).getFullContent();
           _postfix = _postfix != null ? _postfix + s: s;
          if (desktopCtrl != null)
            desktopCtrl.removeComponent(n, false); //ok but no need to recycle
          return this;
         }
         if (getFirstChild() == null) {
           //remove this
           final AbstractComponent p = (AbstractComponent)getPreviousSibling();
View Full Code Here


           final String s = getFullContent(),
             prefix = ((HtmlNativeComponent)n)._prefix;
           ((HtmlNativeComponent)n)._prefix = prefix != null ? s + prefix: s;
          if (desktopCtrl != null)
            desktopCtrl.removeComponent(this, false); //ok but no need to recycle
          return n;
         }
      }
    }
    return null;
View Full Code Here

          bEpilog = true;
        } else { //childWithChild
          _prolog = nc.getFullContent() + _prolog;
        }
        if (desktopCtrl != null)
          desktopCtrl.removeComponent(nc, false); //ok but no need to recycle
      }
      if (childWithChild == null) {
        nChild(null, null, 0);
      } else {
        nChild(
View Full Code Here

      if (comp._parent == null)
        ((AbstractPage)_page).onReplaced(this, comp);
        //call onReplaced instead addRoot/removeRoot

      final DesktopCtrl desktopCtrl = (DesktopCtrl)_page.getDesktop();
      desktopCtrl.removeComponent(this, false);
      desktopCtrl.addComponent(comp);
      _page = null;
    }

    //add comp to the fellow map
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.