org.apache.tapestry.contrib.table.components.inserted
Class SimpleTableColumnFormComponent

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by 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

Constructor Summary
SimpleTableColumnFormComponent()
           
 
Method Summary
 void columnSelected(IRequestCycle objCycle)
           
 boolean getColumnSorted()
           
 String getDisplayName()
           
 boolean getIsSorted()
           
abstract  String getSelectedColumnName()
           
 IAsset getSortImage()
           
abstract  ITableColumn getTableColumn()
           
 ITableModel getTableModel()
           
abstract  ITableModelSource getTableModelSource()
           
 void initializeRenderer(IRequestCycle objCycle, ITableModelSource objSource, ITableColumn objColumn, Object objRow)
           
abstract  void setTableColumn(ITableColumn objColumn)
           
abstract  void setTableModelSource(ITableModelSource objSource)
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
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 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.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
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

SimpleTableColumnFormComponent

public SimpleTableColumnFormComponent()
Method Detail

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)