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

java.lang.Object
  |
  +--org.apache.tapestry.spec.BaseLocatable
        |
        +--org.apache.tapestry.AbstractComponent
              |
              +--org.apache.tapestry.BaseComponent
                    |
                    +--org.apache.tapestry.contrib.table.components.AbstractTableViewComponent
                          |
                          +--org.apache.tapestry.contrib.table.components.TablePages
All Implemented Interfaces:
IComponent, ILocatable, ILocationHolder, IRender
Direct Known Subclasses:
TableFormPages

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

Parameter Type Direction Required Default Description
pagesDisplayed int in no 7 Determines the maximum number of pages to be displayed in the page list when the table has more than one page.

For example, if the table has 20 pages, and 10 is the current page, pages from 7 to 13 in the page list will be shown if this parameter has a value of 7.

Version:
$Id: TablePages.java,v 1.2 2003/03/15 21:22:17 hlship Exp $
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()
           
 int getPagesDisplayed()
           
 IBinding getPagesDisplayedBinding()
          Returns the PagesDisplayedBinding.
 int getStartPage()
           
 int getStopPage()
           
 void setCurrentPage(ITableModelSource objSource, int nPage)
           
 void setDisplayPage(int displayPage)
          Sets the displayPage.
 void setPagesDisplayedBinding(IBinding PagesDisplayedBinding)
          Sets the PagesDisplayedBinding.
 
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

getPagesDisplayedBinding

public IBinding getPagesDisplayedBinding()
Returns the PagesDisplayedBinding.
Returns:
IBinding

setPagesDisplayedBinding

public void setPagesDisplayedBinding(IBinding PagesDisplayedBinding)
Sets the PagesDisplayedBinding.
Parameters:
PagesDisplayedBinding - The PagesDisplayedBinding to set

getPagesDisplayed

public 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)