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

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.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

Constructor Summary
SimpleTableColumnComponent()
           
 
Method Summary
 void columnSelected(IRequestCycle objCycle)
           
 Object[] getColumnSelectedParameters()
           
 boolean getColumnSorted()
           
 String getDisplayName()
           
 boolean getIsSorted()
           
 IAsset getSortImage()
           
 ITableModel getTableModel()
           
 void initializeRenderer(IRequestCycle objCycle, ITableModelSource objSource, ITableColumn objColumn, Object objRow)
           
 void pageDetached(PageEvent arg0)
          Invoked by the page from its IPage.detach() method.
 
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

SimpleTableColumnComponent

public SimpleTableColumnComponent()
Method Detail

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)