org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table
Class CellUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.CellUtils

public class CellUtils
extends java.lang.Object

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/xhtml/table/CellUtils.java#0 $) $Date: 10-nov-2005.19:02:33 $
Author:
The Oracle ADF Faces Team

Field Summary
static java.lang.String[] BORDER_CLASS
           
 
Constructor Summary
protected CellUtils()
           
 
Method Summary
static java.lang.String getBorderClass(boolean top, boolean left, boolean bottom, boolean right)
          Get the style string for a given border combination.
static java.lang.String getDataBorderStyle(org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext)
          gets a style attribute for a table data cell at the given physical/logical column indices and row index.
static java.lang.String getHeaderBorderStyle(TableRenderingContext tContext, org.apache.myfaces.trinidad.context.RenderingContext afContext, boolean isColumnHeader, boolean isSortable)
          figure out any grid line borders for IE / Moz.
static void renderHeaderAttrs(javax.faces.context.FacesContext context, TableRenderingContext tContext, java.lang.Object abbreviation, java.lang.Object width, boolean isNoWrap, boolean isColumnHeader)
          renders abbr, scope, width and nowrap
static void renderSpan(javax.faces.context.FacesContext rContext, boolean isRowSpan, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BORDER_CLASS

public static final java.lang.String[] BORDER_CLASS
Constructor Detail

CellUtils

protected CellUtils()
Method Detail

renderHeaderAttrs

public static void renderHeaderAttrs(javax.faces.context.FacesContext context,
                                     TableRenderingContext tContext,
                                     java.lang.Object abbreviation,
                                     java.lang.Object width,
                                     boolean isNoWrap,
                                     boolean isColumnHeader)
                              throws java.io.IOException
renders abbr, scope, width and nowrap

Throws:
java.io.IOException

renderSpan

public static void renderSpan(javax.faces.context.FacesContext rContext,
                              boolean isRowSpan,
                              int value)
                       throws java.io.IOException
Throws:
java.io.IOException

getHeaderBorderStyle

public static java.lang.String getHeaderBorderStyle(TableRenderingContext tContext,
                                                    org.apache.myfaces.trinidad.context.RenderingContext afContext,
                                                    boolean isColumnHeader,
                                                    boolean isSortable)
figure out any grid line borders for IE / Moz. This is for header cells.


getDataBorderStyle

public static java.lang.String getDataBorderStyle(org.apache.myfaces.trinidad.context.RenderingContext arc,
                                                  TableRenderingContext tContext)
gets a style attribute for a table data cell at the given physical/logical column indices and row index.


getBorderClass

public static java.lang.String getBorderClass(boolean top,
                                              boolean left,
                                              boolean bottom,
                                              boolean right)
Get the style string for a given border combination.



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.