|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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
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.
Parameter | Type | Direction | Required | Default | Description |
---|---|---|---|---|---|
element | String | in | no | th | The tag to use to wrap the column headers. |
column | ITableColumn |
out | no | The object representing the current column. | |
arrowUpAsset | IAsset |
in | no | The image to use to describe a column sorted in an ascending order. | |
arrowDownAsset | IAsset |
in | no | The image to use to describe a column sorted in a descending order. |
Field Summary | |
static String |
TABLE_COLUMN_ARROW_DOWN_ATTRIBUTE
|
static String |
TABLE_COLUMN_ARROW_UP_ATTRIBUTE
|
Constructor Summary | |
TableColumns()
|
Method Summary | |
IAsset |
getArrowDownAsset()
Returns the arrowDownAsset. |
IAsset |
getArrowUpAsset()
Returns the arrowUpAsset. |
IBinding |
getColumnBinding()
Returns the valueBinding. |
String |
getElement()
Returns the element. |
IBinding |
getElementBinding()
Returns the elementBinding. |
ITableColumn |
getTableColumn()
Returns the tableColumn. |
Iterator |
getTableColumnIterator()
|
IRender |
getTableColumnRenderer()
|
protected void |
initialize()
|
void |
pageDetached(PageEvent event)
Invoked by the page from its IPage.detach() method. |
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Renders the top level components contained by the receiver. |
void |
setArrowDownAsset(IAsset arrowDownAsset)
Sets the asset to use to render an image describing a column sorted in a descending order. |
void |
setArrowUpAsset(IAsset arrowUpAsset)
Sets the asset to use to render an image describing a column sorted in an ascending order. |
void |
setColumnBinding(IBinding valueBinding)
Sets the valueBinding. |
void |
setElementBinding(IBinding elementBinding)
Sets the elementBinding. |
void |
setTableColumn(ITableColumn tableColumn)
Sets the tableColumn. |
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
Constructor Detail |
public TableColumns()
Method Detail |
public void pageDetached(PageEvent event)
PageDetachListener
IPage.detach()
method.pageDetached
in interface PageDetachListener
PageDetachListener.pageDetached(PageEvent)
protected void initialize()
public Iterator getTableColumnIterator()
public ITableColumn getTableColumn()
public void setTableColumn(ITableColumn tableColumn)
tableColumn
- The tableColumn to setpublic IRender getTableColumnRenderer()
public IBinding getColumnBinding()
public void setColumnBinding(IBinding valueBinding)
valueBinding
- The valueBinding to setpublic IBinding getElementBinding()
public void setElementBinding(IBinding elementBinding)
elementBinding
- The elementBinding to setpublic String getElement()
public IAsset getArrowDownAsset()
public IAsset getArrowUpAsset()
public void setArrowDownAsset(IAsset arrowDownAsset)
arrowDownAsset
- The asset of a 'down' arrow imagepublic void setArrowUpAsset(IAsset arrowUpAsset)
arrowUpAsset
- The asset of an 'up' arrow imageprotected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
BaseComponent
renderComponent
in class BaseComponent
BaseComponent.renderComponent(IMarkupWriter, IRequestCycle)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |