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

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

public final class BandingData
extends java.lang.Object

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

Method Summary
static BandingData create(TableRenderingContext context)
           
 boolean getBand(TableRenderingContext context, int row, int physicalColumn, int logicalColumn)
          computes the banding shade to use for a table cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static BandingData create(TableRenderingContext context)
Parameters:
context - gets the appropriate banding data from this context.

getBand

public boolean getBand(TableRenderingContext context,
                       int row,
                       int physicalColumn,
                       int logicalColumn)
computes the banding shade to use for a table cell. Either the cell's row or column(s) will be used depending on the type of this banding.

Parameters:
row - the rowIndex of the table cell.
physicalColumn - the actual column of the table cell.
logicalColumn - the index (of this cell) into the column band DataObjectList on the context.
Returns:
the banding color to use. There are only two colors, so a boolean is returned


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