|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPageRecorder
Defines an object that can observe changes to properties of a page and its components, store the state of the page between request cycles, and restore a page's state on a subsequent request cycle.
Concrete implementations of this can store the changes in memory, as client-side cookies, in a flat file, or in a database.
Method Summary | |
---|---|
void |
commit()
Persists all changes that have been accumulated. |
void |
rollback(IPage page)
Rolls back the page to the currently persisted state. |
Methods inherited from interface org.apache.tapestry.event.ChangeObserver |
---|
isLocked, observeChange |
Method Detail |
---|
void commit()
After commiting, a page recorder automatically locks itself.
void rollback(IPage page)
A page recorder can only rollback changes to properties which have changed at some point.
This can cause some minor problems, addressed by
PageDetachListener.pageDetached(org.apache.tapestry.event.PageEvent)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |