|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Page
Represents a unique page within the application. Pages are part of the internal structure of a Tapestry
application; end developers who refer to "page" are really referring to the root
component of the actual page.
| Method Summary | |
|---|---|
void |
addLifecycleListener(PageLifecycleListener listener)
Adds a listener that is notified of large scale page events. |
void |
attached()
Invoked to inform the page that it is attached to the current request. |
Link |
createActionLink(String nestedId,
String eventType,
boolean forForm,
Object... context)
Creates a link that will trigger behavior in a component within the page. |
Link |
createPageLink(String pageName,
boolean override,
Object... context)
Creates a link to the named page. |
void |
decrementDirtyCount()
Called as a component finishes rendering itself. |
boolean |
detached()
Invoked to inform the page that it is being detached from the current request. |
void |
discardPersistentFieldChanges()
Discards all persistent field changes for the page containing the component. |
ComponentPageElement |
getComponentElementByNestedId(String nestedId)
Retrieves a component element by its nested id (a sequence of simple ids, separated by dots). |
Object |
getFieldChange(String nestedId,
String fieldName)
Gets a change for a field within the component. |
Locale |
getLocale()
The locale for which the page is localized. |
org.slf4j.Logger |
getLogger()
Returns the logger of the root component element. |
String |
getLogicalName()
Returns the short, logical name for the page. |
Component |
getRootComponent()
The root component of the page. |
ComponentPageElement |
getRootElement()
The root component of the page. |
void |
incrementDirtyCount()
Called as a component initially starts to render itself. |
void |
loaded()
Inform the page that it is now completely loaded. |
void |
persistFieldChange(ComponentResources resources,
String fieldName,
Object newValue)
Posts a change to a persistent field. |
void |
setRootElement(ComponentPageElement component)
Invoked during page construction time to connect the page's root component to the page instance. |
| Method Detail |
|---|
String getLogicalName()
Locale getLocale()
void setRootElement(ComponentPageElement component)
ComponentPageElement getRootElement()
Component getRootComponent()
boolean detached()
PageLifecycleListener.containingPageDidDetach()void attached()
loaded()
will preceded the call to attached().
void loaded()
PageLifecycleListener.containingPageDidLoad()void addLifecycleListener(PageLifecycleListener listener)
org.slf4j.Logger getLogger()
ComponentPageElement getComponentElementByNestedId(String nestedId)
IllegalArgumentException - if the nestedId does not correspond to a component
Link createActionLink(String nestedId,
String eventType,
boolean forForm,
Object... context)
ComponentResources.createActionLink(String, boolean, Object[])
Link createPageLink(String pageName,
boolean override,
Object... context)
ComponentResources.createPageLink(String, boolean, Object[])
void persistFieldChange(ComponentResources resources,
String fieldName,
Object newValue)
resources - the component resources for the component or mixin containing the field whose value changedfieldName - the name of the fieldnewValue - the new value for the field
Object getFieldChange(String nestedId,
String fieldName)
nestedId - the nested component id of the component containing the fieldfieldName - the name of the persistent field
void incrementDirtyCount()
void decrementDirtyCount()
void discardPersistentFieldChanges()
Session) which will take effect in the
next request (the attached page instance is not affected).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||