Package org.xulfaces.component.tree

Examples of org.xulfaces.component.tree.TreeRowComponent


        .getAttributes().get("annotatedAttributes"));
    responseWriter.endElement("treecell");
  }

  private String computeId(TreeCellComponent treeCellComponent){
    TreeRowComponent treeRowComponent = (TreeRowComponent) treeCellComponent.getParent();
    StringBuffer stringBuffer = new StringBuffer(treeRowComponent.getNodeId());
    stringBuffer.append(":tc:");
    stringBuffer.append(treeCellComponent.getId());
    return stringBuffer.toString();
  }
View Full Code Here


 
  public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
   
    ResponseWriter responseWriter = facesContext.getResponseWriter();   
    responseWriter.startElement("treerow",component);
    TreeRowComponent treeRowComponent = (TreeRowComponent) component;
    TreeItemComponent treeItemComponent = (TreeItemComponent) treeRowComponent.getParent();
    StringBuffer stringBuffer = new StringBuffer(treeItemComponent.getNodeId());
    stringBuffer.append(":tr");
    treeRowComponent.setNodeId(stringBuffer.toString());
    responseWriter.writeAttribute("id",treeRowComponent.getNodeId(), "id");
    if(!isParentSmoothlyUpdateable(component)){
      if (component instanceof SmoothlyUpdateable) {
        SmoothlyUpdateable smoothlyUpdateable = (SmoothlyUpdateable) component;
        if (smoothlyUpdateable.needsUpdate()) {
          Bridge bridge = XulUtils.getBridge();
          Zone zone = new Zone(treeRowComponent.getNodeId());
          bridge.addCommand(new UpdateZoneCommand(zone,buildTargetName(component)));
        }
      }
    }
   
View Full Code Here

        responseWriter.endElement("treeitem");       
  }

  public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {
    List children = component.getChildren();
    TreeRowComponent treeRowComponent = (TreeRowComponent) children.get(0);   
    if (treeRowComponent.isRendered()) {
      renderChild(facesContext,treeRowComponent);             
    }

  }
View Full Code Here

TOP

Related Classes of org.xulfaces.component.tree.TreeRowComponent

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.