org.apache.tapestry.contrib.table.components.inserted
Class SimpleTableColumnComponent
java.lang.Object
org.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.contrib.table.components.inserted.SimpleTableColumnComponent
- All Implemented Interfaces:
- EventListener, ITableRendererListener, PageDetachListener, IComponent, ILocatable, ILocationHolder, IRender
public class SimpleTableColumnComponent
- extends BaseComponent
- implements ITableRendererListener, PageDetachListener
A component that renders the default column header.
If the current column is sortable, it renders the header as a link.
Clicking on the link causes the table to be sorted on that column.
Clicking on the link again causes the sorting order to be reversed.
- Version:
- $Id: SimpleTableColumnComponent.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- mindbridge
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString |
Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification |
Methods inherited from interface org.apache.tapestry.IRender |
render |
SimpleTableColumnComponent
public SimpleTableColumnComponent()
pageDetached
public void pageDetached(PageEvent arg0)
- Description copied from interface:
PageDetachListener
- Invoked by the page from its
IPage.detach()
method.
- Specified by:
pageDetached
in interface PageDetachListener
- See Also:
PageDetachListener.pageDetached(PageEvent)
initializeRenderer
public void initializeRenderer(IRequestCycle objCycle,
ITableModelSource objSource,
ITableColumn objColumn,
Object objRow)
- Specified by:
initializeRenderer
in interface ITableRendererListener
- See Also:
ITableRendererListener.initializeRenderer(IRequestCycle, ITableModelSource, ITableColumn, Object)
getTableModel
public ITableModel getTableModel()
getColumnSorted
public boolean getColumnSorted()
getDisplayName
public String getDisplayName()
getIsSorted
public boolean getIsSorted()
getSortImage
public IAsset getSortImage()
getColumnSelectedParameters
public Object[] getColumnSelectedParameters()
columnSelected
public void columnSelected(IRequestCycle objCycle)