Examples of RenderingContext


Examples of org.apache.myfaces.trinidad.context.RenderingContext

  /**
   * @return true if we are in screen reader mode
   */
  public static boolean isScreenReaderMode(UIXRenderingContext context)
  {
    RenderingContext rc = RenderingContext.getCurrentInstance();
    return rc.getAccessibilityMode() ==
       RequestContext.Accessibility.SCREEN_READER;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

    // Get the Icon objects that we'll use to render this messageBox.
    IconData icons = _getIconData(context);
    int columnCount = _getColumnCount(icons);
   
    FacesContext fContext = context.getFacesContext();
    RenderingContext arc = RenderingContext.getCurrentInstance();
    // Render the top row if we have one
    if (_hasTopRow(icons))
      _renderTopRow(fContext, arc, icons, columnCount);

    // Start the contents row
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

    // Get the Icon objects that we'll use to render this messageBox.
    IconData icons = _getIconData(context);
    int columnCount = _getColumnCount(icons);
   
    FacesContext fContext = context.getFacesContext();
    RenderingContext arc = RenderingContext.getCurrentInstance();
   
    // Close up the contents row
    _endContentsRow(fContext, arc, icons);

    // Render the bottom row if we have one
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

  {

    ResponseWriter writer = context.getResponseWriter();

    MarlinBean text = new MarlinBean(STYLED_TEXT_NAME);
    RenderingContext arc = RenderingContext.getCurrentInstance();
    FacesContext fContext = context.getFacesContext();
    icon.renderIcon(fContext, arc, null);

    if (icon != null)
      writer.write(" ");
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

    // Get the Icon objects that we'll use to render this sideBar.
    IconData icons = _getIconData(context);
    int columnCount = _getColumnCount(icons);

    FacesContext fContext = context.getFacesContext();
    RenderingContext arc = RenderingContext.getCurrentInstance();

    // Render the top row if we have one
    if (_hasTopRow(icons))
      _renderTopRow(fContext, arc, icons, columnCount);
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

    // Get the Icon objects that we'll use to render this sideBar.
    IconData icons = _getIconData(context);
    int columnCount = _getColumnCount(icons);

    FacesContext fContext = context.getFacesContext();
    RenderingContext arc = RenderingContext.getCurrentInstance();
   
    // Close up the contents row
    _endContentsRow(fContext, arc, icons);

View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

  protected boolean isDisabled(
    UIXRenderingContext context,
    UINode           node
    )
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    boolean isDisabled = ((CoreRenderingContext) arc).isLinkDisabled();
    boolean disabledAttr = XhtmlLafUtils.getLocalBooleanAttribute(context,
                                               node,
                                               DISABLED_ATTR,
                                               false);
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

   * of their disabled attributes.
   * @see #isDisabled(UIXRenderingContext,UINode)
   */
  public static void setDisabled(UIXRenderingContext context, boolean isDisabled)
  {
    RenderingContext arc = RenderingContext.getCurrentInstance();
    ((CoreRenderingContext) arc).setLinkDisabled(isDisabled);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

      ResponseWriter writer = context.getResponseWriter();
      writer.startElement(TABLE_DATA_ELEMENT, null);

      // Render the icon
      FacesContext fContext = context.getFacesContext();
      RenderingContext arc = RenderingContext.getCurrentInstance();
      OutputUtils.renderIcon(fContext, arc, icon, "", null);

      writer.endElement(TABLE_DATA_ELEMENT);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.RenderingContext

    out.writeAttribute("border", "0", null);
    out.writeAttribute("cellspacing", "0", null);
    out.writeAttribute("cellpadding", "0", null);

    String styleClass = (String) component.getAttributes().get("styleClass");
    RenderingContext arc = RenderingContext.getCurrentInstance();
    if (styleClass != null)
    {
      XhtmlRenderer.renderStyleClass(context, arc, styleClass);
    }
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.