protected static class BaseTableRenderer.TableMetaInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
columnClasses |
int |
columnCount |
java.util.List<javax.faces.component.UIColumn> |
columns |
int |
columnStyleCounter |
private static java.lang.String[] |
EMPTY_STRING_ARRAY |
boolean |
hasFooterFacets |
boolean |
hasHeaderFacets |
static java.lang.String |
KEY |
java.lang.String[] |
rowClasses |
int |
rowStyleCounter |
Constructor and Description |
---|
TableMetaInfo(javax.faces.component.UIComponent table) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String[] |
getColumnClasses(javax.faces.component.UIComponent table)
Return an array of stylesheet classes to be applied to each column in
the table in the order specified.
|
private static java.util.List<javax.faces.component.UIColumn> |
getColumns(javax.faces.component.UIComponent table)
Return an Iterator over the
UIColumn children of the
specified UIData that have a rendered property
of true . |
java.lang.String |
getCurrentColumnClass()
Obtain the column class based on the current counter.
|
java.lang.String |
getCurrentRowClass()
Obtain the row class based on the current counter.
|
private static java.lang.String[] |
getRowClasses(javax.faces.component.UIComponent table)
Return an array of stylesheet classes to be applied to each row in the
table, in the order specified.
|
private static boolean |
hasFacet(java.lang.String name,
java.util.List<javax.faces.component.UIColumn> columns)
Return the number of child
UIColumn components nested in
the specified UIData that have a facet with the specified
name. |
void |
newRow()
Reset the counter used to apply column styles.
|
private static final java.lang.String[] EMPTY_STRING_ARRAY
public static final java.lang.String KEY
public final java.lang.String[] rowClasses
public final java.lang.String[] columnClasses
public final java.util.List<javax.faces.component.UIColumn> columns
public final boolean hasHeaderFacets
public final boolean hasFooterFacets
public final int columnCount
public int columnStyleCounter
public int rowStyleCounter
public void newRow()
public java.lang.String getCurrentColumnClass()
public java.lang.String getCurrentRowClass()
private static java.lang.String[] getColumnClasses(javax.faces.component.UIComponent table)
Return an array of stylesheet classes to be applied to each column in the table in the order specified. Every column may or may not have a stylesheet.
table
- UIComponent
component being renderedprivate static java.util.List<javax.faces.component.UIColumn> getColumns(javax.faces.component.UIComponent table)
Return an Iterator over the UIColumn
children of the
specified UIData
that have a rendered
property
of true
.
table
- the table from which to extract childrenprivate static boolean hasFacet(java.lang.String name, java.util.List<javax.faces.component.UIColumn> columns)
Return the number of child UIColumn
components nested in
the specified UIData
that have a facet with the specified
name.
name
- Name of the facet being analyzedcolumns
- the columns to searchprivate static java.lang.String[] getRowClasses(javax.faces.component.UIComponent table)
Return an array of stylesheet classes to be applied to each row in the table, in the order specified. Every row may or may not have a stylesheet.
table
- UIComponent
component being renderedCopyright © 2002-2013 Oracle America, Inc. All Rights Reserved.