|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.ColumnData
public final class ColumnData
Field Summary | |
---|---|
static int |
ICON_FORMAT
corresponds to CoreColumn.ALIGN_CENTER |
static int |
NUMBER_FORMAT
corresponds to CoreColumn.ALIGN_RIGHT |
static int |
SPECIAL_COLUMN_INDEX
the logical index of a special column such as select,details,etc... |
static int |
TEXT_FORMAT
corresponds to CoreColumn.ALIGN_LEFT |
Constructor Summary | |
---|---|
ColumnData()
|
Method Summary | |
---|---|
int |
getColumnCount()
|
java.lang.String |
getCurrentHeaderID()
|
boolean |
getCurrentHeaderNoWrap()
gets whether the current header should be wrapped |
java.awt.Dimension |
getCurrentSpan()
Gets the row/colSpan that the current header node should use. |
java.lang.String |
getHeaderID(int physicalIndex)
gets the id for this column |
java.lang.String |
getHeaderIDs(int physicalIndex)
gets the list of header IDs that apply to the given column. |
boolean |
getHeaderNoWrap(int physicalIndex)
|
int |
getHeaderRowSpan()
|
int |
getLogicalColumnIndex()
|
boolean |
getNoWrap(int physicalIndex)
|
int |
getObjectNameColumnIndex()
gets the physical index of the designated object name column. |
int |
getPhysicalColumnIndex()
|
int |
getPhysicalIndexOfFirstFooter()
gets the physical index of the first column with a footer |
int |
getRowIndex()
gets the rowIndex for a columnHeader. this is used for rowSpanning in column headers. |
java.lang.Object |
getWidth(int physicalIndex)
|
void |
incrementColumnIndex()
increments both the physical and the logical column indices by one. |
boolean |
isColumnGroupHeader()
|
boolean |
isRowHeader(int physicalIndex)
returns true if the specified column's rowHeader attribute is true. |
static java.lang.String |
selectFormat(TableRenderingContext tContext,
java.lang.String textClass,
java.lang.String numberClass,
java.lang.String iconClass)
|
void |
setColumnCount(int columns)
sets the number of visible columns in the data part of this table. |
void |
setColumnData(java.lang.Object width,
java.lang.Object align,
boolean noWrap,
boolean headerNoWrap,
boolean separateRows,
boolean rowHeader)
|
void |
setColumnGroupHeader(boolean isColumnGroupHeader)
|
void |
setColumnIndex(int physical,
int logical)
sets the (zero based) indices of the column that is currently being rendered |
void |
setCurrentColumnHasFooter()
indicates that the current column has a footer |
void |
setCurrentHeaderID(java.lang.String id)
|
void |
setCurrentHeaderNoWrap(boolean isNoWrap)
sets whether the current header should be wrapped. |
void |
setCurrentSpan(int rowSpan,
int colSpan)
indicate to a header node what row/colSpan it should use. |
void |
setDataFormat(int physicalIndex,
java.lang.Object format)
|
void |
setHeaderID(int physicalIndex,
java.lang.String headerID)
sets the id for this column |
void |
setHeaderIDs(int physicalIndex,
java.lang.String headerIDs)
sets the list of IDs that apply to this column |
void |
setHeaderRowSpan(int span)
|
void |
setRowIndex(int index)
sets the rowIndex for a columnHeader. this is used for rowSpanning in column headers. |
void |
setSpecialColumnData(TableRenderingContext tContext,
org.apache.myfaces.trinidad.context.RenderingContext arc,
boolean noWrap,
java.lang.String formatType)
|
boolean |
useSeparateRows(int physicalIndex)
returs true if the specified column's useSeparateRows attr is true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TEXT_FORMAT
CoreColumn.ALIGN_LEFT
public static final int NUMBER_FORMAT
CoreColumn.ALIGN_RIGHT
public static final int ICON_FORMAT
CoreColumn.ALIGN_CENTER
public static final int SPECIAL_COLUMN_INDEX
Constructor Detail |
---|
public ColumnData()
Method Detail |
---|
public int getRowIndex()
public void setRowIndex(int index)
index
- public int getColumnCount()
setColumnCount(int)
public void setColumnCount(int columns)
public int getObjectNameColumnIndex()
public int getPhysicalIndexOfFirstFooter()
public void setCurrentColumnHasFooter()
public int getPhysicalColumnIndex()
setColumnIndex(int, int)
public int getLogicalColumnIndex()
setColumnIndex(int, int)
public void setColumnIndex(int physical, int logical)
physical
- this is the index of the column as it appears visually on
the screen. rowHeaders will always have a physical index of zero.logical
- this is the index of the indexed child (of the table)
being used to render this columngetPhysicalColumnIndex()
,
getLogicalColumnIndex()
,
incrementColumnIndex()
public void incrementColumnIndex()
setColumnIndex(int,int)
public void setCurrentSpan(int rowSpan, int colSpan)
public java.awt.Dimension getCurrentSpan()
public int getHeaderRowSpan()
setHeaderRowSpan(int)
public void setHeaderRowSpan(int span)
span
- the rowSpan of the entire column header. The span will only
be set if it is greater than the current span.public java.lang.String getHeaderIDs(int physicalIndex)
public java.lang.String getHeaderID(int physicalIndex)
physicalIndex
-
public void setHeaderID(int physicalIndex, java.lang.String headerID)
physicalIndex
- headerID
- public void setHeaderIDs(int physicalIndex, java.lang.String headerIDs)
physicalIndex
- headerIDs
- public void setCurrentHeaderID(java.lang.String id)
public java.lang.String getCurrentHeaderID()
public void setCurrentHeaderNoWrap(boolean isNoWrap)
public boolean getCurrentHeaderNoWrap()
public boolean useSeparateRows(int physicalIndex)
public boolean isRowHeader(int physicalIndex)
public void setColumnData(java.lang.Object width, java.lang.Object align, boolean noWrap, boolean headerNoWrap, boolean separateRows, boolean rowHeader)
public void setSpecialColumnData(TableRenderingContext tContext, org.apache.myfaces.trinidad.context.RenderingContext arc, boolean noWrap, java.lang.String formatType)
public java.lang.Object getWidth(int physicalIndex)
public boolean getNoWrap(int physicalIndex)
physicalIndex
- the physical index of the column.
public boolean getHeaderNoWrap(int physicalIndex)
physicalIndex
- the physical index of the column.
public boolean isColumnGroupHeader()
public void setColumnGroupHeader(boolean isColumnGroupHeader)
isColumnGroupHeader
- true if we are currently rendering the column
group headerpublic void setDataFormat(int physicalIndex, java.lang.Object format)
public static java.lang.String selectFormat(TableRenderingContext tContext, java.lang.String textClass, java.lang.String numberClass, java.lang.String iconClass)
tContext
- the column being processed is the one at
the physicalColumnIndex in this table context.textClass
- the styleClass to return if the column align is "left"numberClass
- the styleClass to return if the column align is "right"iconClass
- the string to return if the column align is "center".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |