|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.structure.PageImpl
public class PageImpl
| Constructor Summary | |
|---|---|
PageImpl(String name,
Locale locale,
PersistentFieldManager persistentFieldManager)
|
|
| 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. |
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 |
getName()
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PageImpl(String name,
Locale locale,
PersistentFieldManager persistentFieldManager)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic ComponentPageElement getComponentElementByNestedId(String nestedId)
Page
getComponentElementByNestedId in interface Pagepublic Locale getLocale()
Page
getLocale in interface Pagepublic void setRootElement(ComponentPageElement component)
Page
setRootElement in interface Pagepublic ComponentPageElement getRootElement()
Page
getRootElement in interface Pagepublic Component getRootComponent()
Page
getRootComponent in interface Pagepublic void addLifecycleListener(PageLifecycleListener listener)
Page
addLifecycleListener in interface Pagepublic boolean detached()
Page
detached in interface PagePageLifecycleListener.containingPageDidDetach()public void loaded()
Page
loaded in interface PagePageLifecycleListener.containingPageDidLoad()public void attached()
PagePage.loaded()
will preceded the call to Page.attached().
attached in interface Pagepublic org.slf4j.Logger getLogger()
Page
getLogger in interface Page
public void persistFieldChange(ComponentResources resources,
String fieldName,
Object newValue)
Page
persistFieldChange in interface Pageresources - 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
public Object getFieldChange(String nestedId,
String fieldName)
Page
getFieldChange in interface PagenestedId - the nested component id of the component containing the fieldfieldName - the name of the persistent field
public void decrementDirtyCount()
Page
decrementDirtyCount in interface Pagepublic void discardPersistentFieldChanges()
PageSession) which will take effect in the
next request (the attached page instance is not affected).
discardPersistentFieldChanges in interface Pagepublic void incrementDirtyCount()
Page
incrementDirtyCount in interface Pagepublic String getName()
Page
getName in interface Page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||