Package org.zkoss.zk.ui

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


    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

  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

  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

    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

   * 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

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

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.