org.apache.tapestry.contrib.table.components.inserted
Class SimpleTableColumnFormComponent
java.lang.Object
org.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.contrib.table.components.inserted.SimpleTableColumnFormComponent
- All Implemented Interfaces:
- ITableRendererListener, IComponent, ILocatable, ILocationHolder, IRender
public abstract class SimpleTableColumnFormComponent
- extends BaseComponent
- implements ITableRendererListener
A component that renders the default column header in a form.
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.
This component renders links that cause the form to be submitted.
This ensures that the updated data in the other form fields is preserved.
- Version:
- $Id: SimpleTableColumnFormComponent.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 |
SimpleTableColumnFormComponent
public SimpleTableColumnFormComponent()
getTableColumn
public abstract ITableColumn getTableColumn()
setTableColumn
public abstract void setTableColumn(ITableColumn objColumn)
getTableModelSource
public abstract ITableModelSource getTableModelSource()
setTableModelSource
public abstract void setTableModelSource(ITableModelSource objSource)
getSelectedColumnName
public abstract String getSelectedColumnName()
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()
columnSelected
public void columnSelected(IRequestCycle objCycle)