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