|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
java.util.Collection |
getChanges()
Returns a Collection of IPageChange objects that represent
the persistant state of the page. |
boolean |
getHasChanges()
Returns true if the recorder has any changes for the page. |
boolean |
isDirty()
Returns true if the recorder has observed any changes that have not been committed to external storage. |
boolean |
isLocked()
Returns true if the recorder is in a locked state, following a commit() . |
void |
rollback(IPage page)
Rolls back the page to the currently persisted state. |
void |
setLocked(boolean value)
Invoked to lock or unlock the recorder. |
Methods inherited from interface com.primix.tapestry.event.ChangeObserver |
observeChange |
Method Detail |
public void commit() throws PageRecorderCommitException
After commiting, a page record automatically locks itself.
public java.util.Collection getChanges()
Collection
of IPageChange
objects that represent
the persistant state of the page.public boolean getHasChanges()
public boolean isDirty()
public boolean isLocked()
commit()
.public 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(PageEvent)
.
public void setLocked(boolean value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |