|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.PageCallback
@ImmutableSessionPersistedObject public class PageCallback
A way of capturing the name of a page and the page activation context so that, at a future date, the page can be invoked with that data. This kind of callback is very useful when creating more complicated workflows, where access to a page is "interrupted" with some operation before returning (via a callback) to the original flow.
Since the callback is serializable, it can be stored in the session.
Constructor Summary | |
---|---|
PageCallback(String pageName)
|
|
PageCallback(String pageName,
EventContext activationContext)
|
|
PageCallback(String pageName,
String[] activationContext)
|
Method Summary | |
---|---|
protected String |
activationContextDescription()
Returns the activation context as a string of value separated by slashes. |
String |
getPageName()
|
protected boolean |
hasActivationContext()
Does the activation context have any values? Used, typically, inside an override of toString() . |
Link |
toLink(PageRenderLinkSource linkSource)
Converts the callback (the page name and activation context) to a link; such a link may be returned from a event handler method to cause Tapestry to redirect to the page. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PageCallback(String pageName, String[] activationContext)
public PageCallback(String pageName, EventContext activationContext)
public PageCallback(String pageName)
Method Detail |
---|
public String getPageName()
public String toString()
toString
in class Object
protected final boolean hasActivationContext()
toString()
.
protected final String activationContextDescription()
toString()
.
public Link toLink(PageRenderLinkSource linkSource)
PageRenderLinkSource
service.
linkSource
- used to generate the link
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |