|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ClientPersistentFieldStorageImpl
@Scope(value="perthread") public class ClientPersistentFieldStorageImpl
Manages client-persistent values on behalf of a ClientPersistentFieldStorageImpl
. Some effort is made to
ensure that we don't uncessarily convert between objects and Base64 (the encoding used to record the value on the
client).
Constructor Summary | |
---|---|
ClientPersistentFieldStorageImpl(Request request,
ClientDataEncoder clientDataEncoder)
|
Method Summary | |
---|---|
void |
discardChanges(String pageName)
Discards any saved changes for the name page. |
Collection<PersistentFieldChange> |
gatherFieldChanges(String pageName)
Finds all persistent changes previously stored for the named page (for the current active session or client). |
void |
postChange(String pageName,
String componentId,
String fieldName,
Object newValue)
Posts a change of a persistent property. |
void |
updateLink(Link link)
Updates a link, adding a query parameter to it (if necessary) to store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientPersistentFieldStorageImpl(Request request, ClientDataEncoder clientDataEncoder)
Method Detail |
---|
public void updateLink(Link link)
ClientPersistentFieldStorage
updateLink
in interface ClientPersistentFieldStorage
public Collection<PersistentFieldChange> gatherFieldChanges(String pageName)
PersistentFieldStrategy
gatherFieldChanges
in interface PersistentFieldStrategy
public void discardChanges(String pageName)
PersistentFieldStrategy
discardChanges
in interface PersistentFieldStrategy
pageName
- logical name of page whose field persistent data should be discardedpublic void postChange(String pageName, String componentId, String fieldName, Object newValue)
PersistentFieldStrategy
postChange
in interface PersistentFieldStrategy
pageName
- the name of the page containing the componentcomponentId
- the nested id path of the component (or null for the page's root component)fieldName
- the name of the field whose persistent value has changednewValue
- the new value for the field, possibly null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |