|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.contrib.table.components.AbstractTableViewComponent
org.apache.tapestry.contrib.table.components.TablePages
org.apache.tapestry.contrib.table.components.TableFormPages
public abstract class TableFormPages
A low level Table component that renders the pages in the table.
This component is a variant of 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 Summary | |
---|---|
TableFormPages()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.tapestry.contrib.table.components.TablePages |
---|
getBackPageContext, getCondBack, getCondCurrent, getCondFwd, getDisplayPage, getDisplayPageContext, getFirstPageContext, getFwdPageContext, getLastPageContext, getPageList, getPagesDisplayed, setCurrentPage, setDisplayPage |
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, 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 |
Methods inherited from class org.apache.hivemind.impl.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, 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 |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Constructor Detail |
---|
public TableFormPages()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |