Examples of IdSpace


Examples of org.zkoss.zk.ui.IdSpace

   * @return the previous virtual ID space if any
   * @see org.zkoss.zk.ui.impl.SimpleIdSpace
   * @since 5.0.4
   */
  public static IdSpace setVirtualIdSpace(IdSpace idspace) {
    final IdSpace old = getVirtualIdSpace();
    _virtIS.set(idspace);
    return old;
  }
View Full Code Here

Examples of org.zkoss.zk.ui.IdSpace

    if (exec != null) {
      Object o = ZKProxy.getProxy().getSelf((ExecutionCtrl)exec);
      Component self = null;
      if(o instanceof Component)
        self = (Component) o;
      final IdSpace idspace =
        self == null ((ExecutionCtrl)exec).getCurrentPage() : self.getSpaceOwner();
      Map idspaceScope = null;
      if (idspace instanceof Component) {
        idspaceScope = (Map) ((Component)idspace).getAttribute(IDSPACE_SCOPE);
        if (idspaceScope == null) {
View Full Code Here

Examples of org.zkoss.zk.ui.IdSpace

  public String getConversationId() {
    final Execution exec = Executions.getCurrent();
    if (exec != null) {
      final Component self = ZKProxy.getProxy().getSelf((ExecutionCtrl)exec);
      final IdSpace idspace = self.getSpaceOwner();
      if (idspace instanceof Component) {
        return ((Component)idspace).getUuid();
      } else {
        return ((Page)idspace).getId();
      }
View Full Code Here

Examples of org.zkoss.zk.ui.IdSpace

  public Object remove(String name) {
    final Execution exec = Executions.getCurrent();
    if (exec != null) {
      final Component self = ZKProxy.getProxy().getSelf((ExecutionCtrl)exec);
      final IdSpace idspace = self.getSpaceOwner();
      Map idspaceScope = null;
      if (idspace instanceof Component) {
        idspaceScope = (Map) ((Component)idspace).getAttribute(IDSPACE_SCOPE);
      } else {
        idspaceScope = (Map) ((Page)idspace).getAttribute(IDSPACE_SCOPE);
View Full Code Here

Examples of org.zkoss.zk.ui.IdSpace

    if ("application".equals(fdname))
      return comp.getDesktop().getWebApp();
    if ("componentScope".equals(fdname))
      return comp.getAttributes();
    if ("spaceScope".equals(fdname)) {
      final IdSpace spaceOwner = comp.getSpaceOwner();
      return (spaceOwner instanceof Page) ?
          comp.getPage().getAttributes() : ((Component)spaceOwner).getAttributes();
    }
    if ("pageScope".equals(fdname))
      return comp.getPage().getAttributes();
View Full Code Here

Examples of org.zkoss.zk.ui.IdSpace

   * Find a component's path by gathering its space owners ID until a Page.
   */
  private String toPath(Component component){
    StringBuilder path = new StringBuilder();
   
    IdSpace currentIdSpace ;
    if(component instanceof IdSpace)
      currentIdSpace= (IdSpace) component;
    else{
      currentIdSpace = component.getSpaceOwner();
      path.append("/").append(component.getId());
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.