public abstract class TableFormPages extends TablePages implements org.apache.tapestry.event.PageDetachListener, org.apache.tapestry.event.PageBeginRenderListener
TablePages
,
but is designed for operation in a form. The necessary page data is stored
in hidden fields, so that no StaleLink exceptions occur during a rewind.
The links also submit the form, which ensures that the data in the other
form fields is preserved even when the page chages.
The 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]
Constructor and Description |
---|
TableFormPages() |
Modifier and Type | Method and Description |
---|---|
void |
changePage(org.apache.tapestry.IRequestCycle objCycle) |
int |
getCurrentPage() |
int |
getPageCount() |
abstract int |
getSelectedPage() |
int |
getStartPage() |
int |
getStopPage() |
void |
pageBeginRender(org.apache.tapestry.event.PageEvent event) |
void |
pageDetached(org.apache.tapestry.event.PageEvent event) |
void |
setCurrentPage(int i) |
void |
setPageCount(int i) |
void |
setStartPage(int i) |
void |
setStopPage(int i) |
getBackPageContext, getCondBack, getCondCurrent, getCondFwd, getDisplayPage, getDisplayPageContext, getFirstPageContext, getFwdPageContext, getLastPageContext, getPageList, getPagesDisplayed, setCurrentPage, setDisplayPage
getTableModelSource
addOuter, finishLoad, renderComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
public TableFormPages()
public void pageDetached(org.apache.tapestry.event.PageEvent event)
pageDetached
in interface org.apache.tapestry.event.PageDetachListener
PageDetachListener.pageDetached(org.apache.tapestry.event.PageEvent)
public void pageBeginRender(org.apache.tapestry.event.PageEvent event)
pageBeginRender
in interface org.apache.tapestry.event.PageBeginRenderListener
PageBeginRenderListener.pageBeginRender(org.apache.tapestry.event.PageEvent)
public void changePage(org.apache.tapestry.IRequestCycle objCycle)
changePage
in class TablePages
public abstract int getSelectedPage()
public int getCurrentPage()
getCurrentPage
in class TablePages
public int getPageCount()
getPageCount
in class TablePages
public int getStartPage()
getStartPage
in class TablePages
public int getStopPage()
getStopPage
in class TablePages
public void setCurrentPage(int i)
i
- the current pagepublic void setPageCount(int i)
i
- number of all pages to displaypublic void setStartPage(int i)
i
- the first page to displaypublic void setStopPage(int i)
i
- the last page to display