|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ClientPersistentFieldStrategy
public class ClientPersistentFieldStrategy
Implements simple client-persistent properties. Most of the logic is delegated to an instance of ClientPersistentFieldStorage
. This division of layer allows this service to be a true singleton, and a listener to
the LinkSource
, and allow per-request state to be isolated inside the other service.
Constructor Summary | |
---|---|
ClientPersistentFieldStrategy(ClientPersistentFieldStorage storage)
|
Method Summary | |
---|---|
void |
createdComponentEventLink(Link link,
ComponentEventRequestParameters parameters)
Invoked when an action link (a link that asks a component to perform an action) is created. |
void |
createdPageRenderLink(Link link,
PageRenderRequestParameters parameters)
Invoked when a page link (a link that renders a page) is created. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientPersistentFieldStrategy(ClientPersistentFieldStorage storage)
Method Detail |
---|
public Collection<PersistentFieldChange> gatherFieldChanges(String pageName)
PersistentFieldStrategy
gatherFieldChanges
in interface PersistentFieldStrategy
public 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 nullpublic void createdComponentEventLink(Link link, ComponentEventRequestParameters parameters)
LinkCreationListener2
Link.addParameter(String, String)
).
createdComponentEventLink
in interface LinkCreationListener2
link
- the newly created linkparameters
- information encoded into the linkpublic void createdPageRenderLink(Link link, PageRenderRequestParameters parameters)
LinkCreationListener2
Link.addParameter(String, String)
).
createdPageRenderLink
in interface LinkCreationListener2
link
- the newly created linkparameters
- information encoded into the linkpublic void discardChanges(String pageName)
PersistentFieldStrategy
discardChanges
in interface PersistentFieldStrategy
pageName
- logical name of page whose field persistent data should be discarded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |