org.apache.tapestry.contrib.table.components
Class TablePages

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.AbstractTableViewComponent
                  extended by org.apache.tapestry.contrib.table.components.TablePages
All Implemented Interfaces:
IComponent, ILocatable, ILocationHolder, IRender
Direct Known Subclasses:
TableFormPages

public abstract class TablePages
extends AbstractTableViewComponent

A low level Table component that renders the pages in the table. This component must be wrapped by TableView.

The component generates a list of pages in the Table centered around the current one and allows you to navigate to other pages.

Please see the Component Reference for details on how to use this component. [Component Reference]

Version:
$Id: TablePages.java 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge

Constructor Summary
TablePages()
           
 
Method Summary
 void changePage(IRequestCycle objCycle)
           
 Object[] getBackPageContext()
           
 boolean getCondBack()
           
 boolean getCondCurrent()
           
 boolean getCondFwd()
           
 int getCurrentPage()
           
 int getDisplayPage()
          Returns the displayPage.
 Object[] getDisplayPageContext()
           
 Object[] getFirstPageContext()
           
 Object[] getFwdPageContext()
           
 Object[] getLastPageContext()
           
 int getPageCount()
           
 Integer[] getPageList()
           
abstract  int getPagesDisplayed()
           
 int getStartPage()
           
 int getStopPage()
           
 void setCurrentPage(ITableModelSource objSource, int nPage)
           
 void setDisplayPage(int displayPage)
          Sets the displayPage.
 
Methods inherited from class org.apache.tapestry.contrib.table.components.AbstractTableViewComponent
getTableModelSource
 
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.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

TablePages

public TablePages()
Method Detail

getPagesDisplayed

public abstract int getPagesDisplayed()

getDisplayPage

public int getDisplayPage()
Returns the displayPage.

Returns:
int

setDisplayPage

public void setDisplayPage(int displayPage)
Sets the displayPage.

Parameters:
displayPage - The displayPage to set

getCurrentPage

public int getCurrentPage()

getPageCount

public int getPageCount()

getCondBack

public boolean getCondBack()

getCondFwd

public boolean getCondFwd()

getCondCurrent

public boolean getCondCurrent()

getStartPage

public int getStartPage()

getStopPage

public int getStopPage()

getPageList

public Integer[] getPageList()

getFirstPageContext

public Object[] getFirstPageContext()

getLastPageContext

public Object[] getLastPageContext()

getBackPageContext

public Object[] getBackPageContext()

getFwdPageContext

public Object[] getFwdPageContext()

getDisplayPageContext

public Object[] getDisplayPageContext()

changePage

public void changePage(IRequestCycle objCycle)

setCurrentPage

public void setCurrentPage(ITableModelSource objSource,
                           int nPage)