Package org.apache.myfaces.tobago.internal.context

Examples of org.apache.myfaces.tobago.internal.context.ResponseWriterDivider


      writer.endElement(HtmlElements.OPTION);
    }

    if (folder) {
      boolean siblingMode = "siblingLeafOnly".equals(tree.getAttributes().get(Attributes.SELECTABLE));
      ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, TreeListboxRenderer.DIVIDER);
      boolean alreadyExists = divider.activateBranch(facesContext);
      writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      if (!alreadyExists) {
        writer.startElement(HtmlElements.DIV, null);
        writer.writeClassAttribute(Classes.create(tree, "level"));
        Style levelStyle = new Style();
View Full Code Here


    UITreeNode node = (UITreeNode) component;
    boolean folder = node.isFolder();
    if (folder) {
      TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      writer.endElement(HtmlElements.SELECT);
      ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, TreeListboxRenderer.DIVIDER);
      divider.passivateBranch(facesContext);
    }
  }
View Full Code Here

    scrollDivStyle.setHeight(style.getHeight() // todo: what, when there is no scrollbar?
        .subtract(15)); // todo: scrollbar height
    scrollDivStyle.setPosition(Position.ABSOLUTE);
    writer.writeStyleAttribute(scrollDivStyle);
   
    ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, DIVIDER);
    // write in all open branches the end tag.
    while (divider.activateBranch(facesContext)) {
      writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      writer.endElement(HtmlElements.DIV);
    }
    while (divider.passivateBranch(facesContext)) {
    } 
     
    divider.writeOutAndCleanUp(facesContext);

    writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);

    writer.endElement(HtmlElements.DIV);
   
View Full Code Here

    scrollDivStyle.setHeight(style.getHeight() // todo: what, when there is no scrollbar?
        .subtract(15)); // todo: scrollbar height
    scrollDivStyle.setPosition(Position.ABSOLUTE);
    writer.writeStyleAttribute(scrollDivStyle);
   
    ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, DIVIDER);
    // write in all open branches the end tag.
    while (divider.activateBranch(facesContext)) {
      writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      writer.endElement(HtmlElements.DIV);
    }
    while (divider.passivateBranch(facesContext)) {
    } 
     
    divider.writeOutAndCleanUp(facesContext);

    writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);

    writer.endElement(HtmlElements.DIV);
   
View Full Code Here

    scrollDivStyle.setHeight(style.getHeight() // todo: what, when there is no scrollbar?
        .subtract(15)); // todo: scrollbar height
    scrollDivStyle.setPosition(Position.ABSOLUTE);
    writer.writeStyleAttribute(scrollDivStyle);
   
    ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, DIVIDER);
    // write in all open branches the end tag.
    while (divider.activateBranch(facesContext)) {
      writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      writer.endElement(HtmlElements.DIV);
    }
    while (divider.passivateBranch(facesContext)) {
    } 
     
    divider.writeOutAndCleanUp(facesContext);

    writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);

    writer.endElement(HtmlElements.DIV);
   
View Full Code Here

      writer.endElement(HtmlElements.OPTION);
    }

    if (folder) {
      boolean siblingMode = "siblingLeafOnly".equals(tree.getAttributes().get(Attributes.SELECTABLE));
      ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, TreeListboxRenderer.DIVIDER);
      boolean alreadyExists = divider.activateBranch(facesContext);
      writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      if (!alreadyExists) {
        writer.startElement(HtmlElements.DIV, null);
        writer.writeClassAttribute(Classes.create(tree, "level"));
        Style levelStyle = new Style();
View Full Code Here

    UITreeNode node = (UITreeNode) component;
    boolean folder = node.isFolder();
    if (folder) {
      TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      writer.endElement(HtmlElements.SELECT);
      ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, TreeListboxRenderer.DIVIDER);
      divider.passivateBranch(facesContext);
    }
  }
View Full Code Here

    scrollDivStyle.setHeight(style.getHeight() // todo: what, when there is no scrollbar?
        .subtract(15)); // todo: scrollbar height
    scrollDivStyle.setPosition(Position.ABSOLUTE);
    writer.writeStyleAttribute(scrollDivStyle);
   
    ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, DIVIDER);
    // write in all open branches the end tag.
    while (divider.activateBranch(facesContext)) {
      writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      writer.endElement(HtmlElements.DIV);
    }
    while (divider.passivateBranch(facesContext)) {
    } 
     
    divider.writeOutAndCleanUp(facesContext);

    writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);

    writer.endElement(HtmlElements.DIV);
   
View Full Code Here

      writer.endElement(HtmlElements.OPTION);
    }

    if (folder) {
      boolean siblingMode = "siblingLeafOnly".equals(tree.getAttributes().get(Attributes.SELECTABLE));
      ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, TreeListboxRenderer.DIVIDER);
      boolean alreadyExists = divider.activateBranch(facesContext);
      writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      if (!alreadyExists) {
        writer.startElement(HtmlElements.DIV, null);
        writer.writeClassAttribute(Classes.create(tree, "level"));
        Style levelStyle = new Style();
View Full Code Here

    UITreeNode node = (UITreeNode) component;
    boolean folder = node.isFolder();
    if (folder) {
      TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
      writer.endElement(HtmlElements.SELECT);
      ResponseWriterDivider divider = ResponseWriterDivider.getInstance(facesContext, TreeListboxRenderer.DIVIDER);
      divider.passivateBranch(facesContext);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.tobago.internal.context.ResponseWriterDivider

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.