Java Doc for Page.java in  » Web-Framework » Tapestry » org » apache » tapestry » internal » structure » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » Tapestry » org.apache.tapestry.internal.structure 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tapestry.internal.structure.Page

All known Subclasses:   org.apache.tapestry.internal.structure.PageImpl,
Page
public interface Page (Code)
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 Page.getRootComponent() root component of the actual page.

One of the most important aspects of a Page is that it does not have to be coded in a thread-safe manner. Pages are always accessed within a single thread, associated with a single incoming request.

The Page object is never visible to end-user code. The page also exists to provide a kind of service to components embedded (directly or indirectly) within the page.





Method Summary
 voidaddLifecycleListener(PageLifecycleListener listener)
     Adds a listener that is notified of large scale page events.
 voidattached()
     Invoked to inform the page that it is attached to the current request.
 LinkcreateActionLink(ComponentPageElement element, String action, boolean forForm, Object... context)
     Creates a link that will trigger behavior in a component within the page.
 LinkcreatePageLink(String pageName, boolean override, Object... context)
     Creates a link to the named page.
 voiddecrementDirtyCount()
     Called as a component finishes rendering itself.
 booleandetached()
     Invoked to inform the page that it is being detached from the current request.
 ComponentPageElementgetComponentElementByNestedId(String nestedId)
     Retrieves a component element by its nested id (a sequence of simple ids, separated by dots).
 ObjectgetFieldChange(ComponentPageElement element, String fieldName)
     Gets a change for a field within the component.
 LocalegetLocale()
     The locale for which the page is localized.
 LoggetLog()
     Returns the log of the root component element.
 StringgetLogicalName()
     Returns the short, logical name for the page.
 ComponentgetRootComponent()
     The root component of the page.
 ComponentPageElementgetRootElement()
     The root component of the page.
 voidincrementDirtyCount()
     Called as a component initially starts to render itself.
 voidloaded()
     Inform the page that it is now completely loaded.
 voidpersistFieldChange(ComponentResources resources, String fieldName, Object newValue)
     Posts a change to a persistent field.
 voidsetRootElement(ComponentPageElement component)
     Invoked during page construction time to connect the page's root component to the page instance.



Method Detail
addLifecycleListener
void addLifecycleListener(PageLifecycleListener listener)(Code)
Adds a listener that is notified of large scale page events.



attached
void attached()(Code)
Invoked to inform the page that it is attached to the current request. This occurs when a page is first referenced within a request. If the page was created from scratch for this request, the call to Page.loaded() will preceded the call to Page.attached() .



createActionLink
Link createActionLink(ComponentPageElement element, String action, boolean forForm, Object... context)(Code)
Creates a link that will trigger behavior in a component within the page.
Parameters:
  element -
Parameters:
  action -
Parameters:
  forForm -
Parameters:
  context -



createPageLink
Link createPageLink(String pageName, boolean override, Object... context)(Code)
Creates a link to the named page.
Parameters:
  pageName - the logical name of the page
Parameters:
  override - if true, the provided context is used even if empty
Parameters:
  context - optional activation context for the page (if not provided, it is generated fromthe page itself)



decrementDirtyCount
void decrementDirtyCount()(Code)
Called as a component finishes rendering itself.



detached
boolean detached()(Code)
Invoked to inform the page that it is being detached from the current request. This occurs just before the page is returned to the page pool.

A page may be clean or dirty. A page is dirty if its dirty count is greater than zero (meaning that, during the render of the page, some components did not fully render), or if any of its listeners throw an exception from containingPageDidDetech().

The page pool should discard pages that are dirty, rather than store them into the pool. true if the page is "dirty", false otherwise
See Also:   org.apache.tapestry.runtime.PageLifecycleListener.containingPageDidDetach




getComponentElementByNestedId
ComponentPageElement getComponentElementByNestedId(String nestedId)(Code)
Retrieves a component element by its nested id (a sequence of simple ids, separated by dots). A nested id of '' (the empty string) returns the root element of the page.
throws:
  IllegalArgumentException - if the nestedId does not correspond to a component



getFieldChange
Object getFieldChange(ComponentPageElement element, String fieldName)(Code)
Gets a change for a field within the component.
Parameters:
  element - the element for which a persistent field value is required
Parameters:
  fieldName - the name of the persistent field the value, or null if no value is stored



getLocale
Locale getLocale()(Code)
The locale for which the page is localized. This is set when the page is created and does not change.



getLog
Log getLog()(Code)
Returns the log of the root component element.



getLogicalName
String getLogicalName()(Code)
Returns the short, logical name for the page.



getRootComponent
Component getRootComponent()(Code)
The root component of the page. A convenience over invoking getRootElement().getComponent().



getRootElement
ComponentPageElement getRootElement()(Code)
The root component of the page. This is the wrapper around the end developer's view of the page.



incrementDirtyCount
void incrementDirtyCount()(Code)
Called as a component initially starts to render itself. This is used to check for the cases where a component causes a runtime exception that aborts the render early, leaving the page in an invalid state.



loaded
void loaded()(Code)
Inform the page that it is now completely loaded.
See Also:   org.apache.tapestry.runtime.PageLifecycleListener.containingPageDidLoad



persistFieldChange
void persistFieldChange(ComponentResources resources, String fieldName, Object newValue)(Code)
Posts a change to a persistent field.
Parameters:
  resources - the component resources for the component or mixin containing the field whosevalue changed
Parameters:
  fieldName - the name of the field
Parameters:
  newValue - the new value for the field



setRootElement
void setRootElement(ComponentPageElement component)(Code)
Invoked during page construction time to connect the page's root component to the page instance.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.