|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.contrib.table.components.AbstractTableViewComponent
org.apache.tapestry.contrib.table.components.TableColumns
public abstract class TableColumns
A low level Table component that renders the column headers in the table.
This component must be wrapped by TableView.
The component iterates over all column objects in the
ITableColumnModel and renders
a header for each one of them using the renderer provided by the
getColumnRender() method in ITableColumn.
The headers are wrapped in 'th' tags by default.
Please see the Component Reference for details on how to use this component. [Component Reference]
| Field Summary | |
|---|---|
static String |
TABLE_COLUMN_ARROW_DOWN_ATTRIBUTE
|
static String |
TABLE_COLUMN_ARROW_UP_ATTRIBUTE
|
static String |
TABLE_COLUMN_CSS_CLASS_SUFFIX
|
| Constructor Summary | |
|---|---|
TableColumns()
|
|
| Method Summary | |
|---|---|
abstract IAsset |
getArrowDownAsset()
|
abstract IAsset |
getArrowUpAsset()
|
abstract IBinding |
getClassBinding()
|
abstract IBinding |
getColumnBinding()
|
String |
getColumnClass()
Returns the CSS class of the generated table cell. |
ITableColumn |
getTableColumn()
Returns the currently rendered table column. |
Iterator |
getTableColumnIterator()
Get the list of all table columns to be displayed. |
IRender |
getTableColumnRenderer()
Returns the renderer to be used to generate the header of the current column |
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Renders the top level components contained by the receiver. |
void |
setTableColumn(ITableColumn tableColumn)
Sets the currently rendered table column. |
| Methods inherited from class org.apache.tapestry.contrib.table.components.AbstractTableViewComponent |
|---|
getTableModelSource |
| Methods inherited from class org.apache.tapestry.BaseComponent |
|---|
addOuter, finishLoad |
| Methods inherited from class org.apache.tapestry.spec.BaseLocatable |
|---|
getLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.tapestry.ILocationHolder |
|---|
setLocation |
| Methods inherited from interface org.apache.tapestry.ILocatable |
|---|
getLocation |
| Field Detail |
|---|
public static final String TABLE_COLUMN_ARROW_UP_ATTRIBUTE
public static final String TABLE_COLUMN_ARROW_DOWN_ATTRIBUTE
public static final String TABLE_COLUMN_CSS_CLASS_SUFFIX
| Constructor Detail |
|---|
public TableColumns()
| Method Detail |
|---|
public abstract IBinding getColumnBinding()
public abstract IBinding getClassBinding()
public abstract IAsset getArrowDownAsset()
public abstract IAsset getArrowUpAsset()
public ITableColumn getTableColumn()
public void setTableColumn(ITableColumn tableColumn)
tableColumn - The current table columnpublic Iterator getTableColumnIterator()
public IRender getTableColumnRenderer()
public String getColumnClass()
protected void renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
BaseComponent
renderComponent in class BaseComponentBaseComponent.renderComponent(IMarkupWriter, IRequestCycle)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||