|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface defining a table column. A column is responsible for presenting a particular part of the data from the objects in the table. This is done via the getValueRender() method. A column may be sortable, in which case it defines the way in which the objects in the table must be sorted by providing a Comparator.
Method Summary | |
java.lang.String |
getColumnName()
Method getColumnName provides the name of the column. |
org.apache.tapestry.IRender |
getColumnRenderer(org.apache.tapestry.IRequestCycle objCycle,
ITableModelSource objSource)
Method getColumnRenderer provides a renderer that takes care of rendering the column in the table header. |
java.util.Comparator |
getComparator()
Method getComparator returns the Comparator to be used to sort the data in the table according to this column. |
boolean |
getSortable()
Method getSortable declares whether the column allows sorting. |
org.apache.tapestry.IRender |
getValueRenderer(org.apache.tapestry.IRequestCycle objCycle,
ITableModelSource objSource,
java.lang.Object objRow)
Method getValueRenderer provides a renderer for presenting the value of a particular row in the current column. |
Method Detail |
public java.lang.String getColumnName()
public boolean getSortable()
public java.util.Comparator getComparator()
public org.apache.tapestry.IRender getColumnRenderer(org.apache.tapestry.IRequestCycle objCycle, ITableModelSource objSource)
objCycle
- the current request cycleobjSource
- a component that can provide the table model (typically TableView)
public org.apache.tapestry.IRender getValueRenderer(org.apache.tapestry.IRequestCycle objCycle, ITableModelSource objSource, java.lang.Object objRow)
objCycle
- the current request cycleobjSource
- a component that can provide the table model (typically TableView)objRow
- the row data
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |