Java Doc for ComponentPageElementImpl.java in  » Library » 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 » Library » Tapestry » org.apache.tapestry.internal.structure 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tapestry.ioc.BaseLocatable
      org.apache.tapestry.internal.structure.ComponentPageElementImpl

ComponentPageElementImpl
public class ComponentPageElementImpl extends BaseLocatable implements ComponentPageElement,PageLifecycleListener(Code)
Implements org.apache.tapestry.internal.structure.PageElement and org.apache.tapestry.internal.InternalComponentResources , and represents a component within an overall page. Much of a component page element's behavior is delegated to user code, via a org.apache.tapestry.runtime.Component instance.

Once instantiated, a ComponentPageElementImpl should be registered as a org.apache.tapestry.internal.structure.Page . This could be done inside the constructors, but that tends to complicate unit tests, so its done by org.apache.tapestry.internal.services.PageElementFactoryImpl .




Constructor Summary
public  ComponentPageElementImpl(Page page, ComponentPageElement container, String id, String elementName, Instantiator instantiator, TypeCoercer typeCoercer, ComponentMessagesSource messagesSource, Location location)
     Constructor for other components embedded within the root component or at deeper levels of the hierarchy.
public  ComponentPageElementImpl(Page page, Instantiator instantiator, TypeCoercer typeCoercer, ComponentMessagesSource messagesSource)
     Constructor for the root component of a page.

Method Summary
public  voidaddBlock(String blockId, Block block)
    
public  voidaddEmbeddedElement(ComponentPageElement child)
    
public  voidaddMixin(Instantiator instantiator)
    
public  voidaddToBody(PageElement element)
    
public  voidaddToTemplate(PageElement element)
    
public  voidbindParameter(String parameterName, Binding binding)
    
public  voidcontainingPageDidAttach()
    
public  voidcontainingPageDidDetach()
    
public  voidcontainingPageDidLoad()
    
public  LinkcreateActionLink(String action, boolean forForm, Object... context)
     Delegates to the Page.createActionLink(ElementComponentPageElementStringbooleanObject[]) the containing page .
public  LinkcreatePageLink(String pageName, boolean override, Object... context)
    
public  voidenqueueBeforeRenderBody(RenderQueue queue)
    
public  BlockfindBlock(String id)
    
public  BlockgetBlock(String id)
    
public  StringgetCompleteId()
    
public  ComponentgetComponent()
    
public  InternalComponentResourcesgetComponentResources()
    
public  ComponentPageElementgetContainerElement()
    
public  PagegetContainingPage()
    
public  StringgetDefaultBindingPrefix(String parameterName)
    
public  StringgetElementName()
    
public  ComponentPageElementgetEmbeddedElement(String embeddedId)
    
public  ObjectgetFieldChange(String fieldName)
    
public  StringgetId()
    
public  LocalegetLocale()
    
public  LoggetLog()
    
public  ComponentgetMixinByClassName(String mixinClassName)
    
public  StringgetNestedId()
    
public  StringgetPageName()
    
public  booleanhandleEvent(ComponentEvent event)
    
public  booleanhasFieldChange(String fieldName)
    
public  booleanisLoaded()
    
public  booleanisRendering()
    
public  voidpersistFieldChange(ComponentResources resources, String fieldName, Object newValue)
    
public  voidqueueRender(RenderQueue queue)
    
final public  voidrender(MarkupWriter writer, RenderQueue queue)
     Pushes the SetupRender phase state onto the queue.
public  StringtoString()
    
public  booleantriggerEvent(String eventType, Object[] context, ComponentEventHandler handler)
    


Constructor Detail
ComponentPageElementImpl
public ComponentPageElementImpl(Page page, ComponentPageElement container, String id, String elementName, Instantiator instantiator, TypeCoercer typeCoercer, ComponentMessagesSource messagesSource, Location location)(Code)
Constructor for other components embedded within the root component or at deeper levels of the hierarchy.
Parameters:
  page - ultimately containing this component
Parameters:
  container - component immediately containing this component (may be null for a root component)
Parameters:
  id - unique (within the container) id for this component (may be null for a rootcomponent)
Parameters:
  elementName - the name of the element which represents this component in the template, or nullfor <comp> element or a page component
Parameters:
  instantiator - used to create the new component instance and access the component's model
Parameters:
  typeCoercer - used when coercing parameter values
Parameters:
  messagesSource - Provides access to the component's message catalog
Parameters:
  location - location of the element (within a template), used as part of exception reporting



ComponentPageElementImpl
public ComponentPageElementImpl(Page page, Instantiator instantiator, TypeCoercer typeCoercer, ComponentMessagesSource messagesSource)(Code)
Constructor for the root component of a page.




Method Detail
addBlock
public void addBlock(String blockId, Block block)(Code)



addEmbeddedElement
public void addEmbeddedElement(ComponentPageElement child)(Code)



addMixin
public void addMixin(Instantiator instantiator)(Code)



addToBody
public void addToBody(PageElement element)(Code)



addToTemplate
public void addToTemplate(PageElement element)(Code)



bindParameter
public void bindParameter(String parameterName, Binding binding)(Code)



containingPageDidAttach
public void containingPageDidAttach()(Code)



containingPageDidDetach
public void containingPageDidDetach()(Code)



containingPageDidLoad
public void containingPageDidLoad()(Code)



createActionLink
public Link createActionLink(String action, boolean forForm, Object... context)(Code)
Delegates to the Page.createActionLink(ElementComponentPageElementStringbooleanObject[]) the containing page . Why the extra layer? Trying to avoid some unwanted injection (of LinkFactory, into every component page element).



createPageLink
public Link createPageLink(String pageName, boolean override, Object... context)(Code)



enqueueBeforeRenderBody
public void enqueueBeforeRenderBody(RenderQueue queue)(Code)



findBlock
public Block findBlock(String id)(Code)



getBlock
public Block getBlock(String id)(Code)



getCompleteId
public String getCompleteId()(Code)



getComponent
public Component getComponent()(Code)



getComponentResources
public InternalComponentResources getComponentResources()(Code)



getContainerElement
public ComponentPageElement getContainerElement()(Code)



getContainingPage
public Page getContainingPage()(Code)



getDefaultBindingPrefix
public String getDefaultBindingPrefix(String parameterName)(Code)



getElementName
public String getElementName()(Code)



getEmbeddedElement
public ComponentPageElement getEmbeddedElement(String embeddedId)(Code)



getFieldChange
public Object getFieldChange(String fieldName)(Code)



getId
public String getId()(Code)



getLocale
public Locale getLocale()(Code)



getLog
public Log getLog()(Code)



getMixinByClassName
public Component getMixinByClassName(String mixinClassName)(Code)



getNestedId
public String getNestedId()(Code)



getPageName
public String getPageName()(Code)



handleEvent
public boolean handleEvent(ComponentEvent event)(Code)



hasFieldChange
public boolean hasFieldChange(String fieldName)(Code)



isLoaded
public boolean isLoaded()(Code)



isRendering
public boolean isRendering()(Code)



persistFieldChange
public void persistFieldChange(ComponentResources resources, String fieldName, Object newValue)(Code)



queueRender
public void queueRender(RenderQueue queue)(Code)



render
final public void render(MarkupWriter writer, RenderQueue queue)(Code)
Pushes the SetupRender phase state onto the queue.



toString
public String toString()(Code)



triggerEvent
public boolean triggerEvent(String eventType, Object[] context, ComponentEventHandler handler)(Code)



Methods inherited from org.apache.tapestry.ioc.BaseLocatable
final public Location getLocation()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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