Java Doc for LayoutElement.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » component » util » descriptors » 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 » IDE Netbeans » visualweb.api.designer » com.sun.rave.web.ui.component.util.descriptors 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.web.ui.component.util.descriptors.LayoutElement

All known Subclasses:   com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase,  com.sun.rave.web.ui.component.util.descriptors.LayoutForEach,  com.sun.rave.web.ui.component.util.descriptors.LayoutWhile,  com.sun.rave.web.ui.component.util.descriptors.LayoutAttribute,  com.sun.rave.web.ui.component.util.descriptors.LayoutStaticText,  com.sun.rave.web.ui.component.util.descriptors.LayoutIf,  com.sun.rave.web.ui.component.util.descriptors.LayoutComponent,  com.sun.rave.web.ui.component.util.descriptors.LayoutFacet,  com.sun.rave.web.ui.component.util.descriptors.LayoutMarkup,
LayoutElement
public interface LayoutElement extends java.io.Serializable(Code)

This interface is declares the methods required to be a LayoutElement. A LayoutElement is the building block of the tree structure which defines a layout for a particular component. There are different implementations of LayoutElement that provide various different types of functionality and data. Some examples are:

  • Conditional ( LayoutIf ), this allows portions of the layout tree to be conditionally rendered.
  • Iterative ( LayoutWhile ), this allows portions of the layout tree to be iteratively rendered.
  • UIComponent ( LayoutComponent ), this allows concrete UIComponents to be used. If the component doesn't already exist, it will be created automatically.
  • Facet place holders ( LayoutFacet ), this provides a means to specify where a facet should be rendered. It is not a facet itself but where a facet should be drawn. However, in addition, it may specify a default value if no facet was provided.

author:
   Ken Paulsen (ken.paulsen@sun.com)




Method Summary
public  voidaddChildLayoutElement(LayoutElement element)
     This method is used to add a LayoutElement.
public  ObjectdispatchHandlers(HandlerContext handlerCtx, List handlers)
    
public  ObjectdispatchHandlers(FacesContext context, String eventType, EventObject event)
    

This method iterates over the handlers and executes each one.

public  voidencode(FacesContext context, UIComponent component)
     This method performs any encode action for this particular LayoutElement.
public  ListgetChildLayoutElements()
     This method returns the child LayoutElements as a List.
public  ListgetHandlers(String type)
    
public  StringgetId(FacesContext context, UIComponent parent)
     Accessor method for id.
public  LayoutDefinitiongetLayoutDefinition()
     This method returns the LayoutDefinition.
public  LayoutElementgetParent()
     This method returns the parent LayoutElement.
public  StringgetUnevaluatedId()
    

This method generally should not be used.

public  voidsetHandlers(String type, List handlers)
    



Method Detail
addChildLayoutElement
public void addChildLayoutElement(LayoutElement element)(Code)
This method is used to add a LayoutElement. LayoutElements should be added sequentially in the order in which they are to be rendered.



dispatchHandlers
public Object dispatchHandlers(HandlerContext handlerCtx, List handlers)(Code)



dispatchHandlers
public Object dispatchHandlers(FacesContext context, String eventType, EventObject event)(Code)

This method iterates over the handlers and executes each one. A HandlerContext will be created to pass to each Handler. The HandlerContext object is reused across all Handlers that are invoked; the setHandler(Handler) method is invoked with the correct Handler descriptor before the handler is executed.


Parameters:
  context - The FacesContext
Parameters:
  eventType - The event type which is being fired
Parameters:
  event - An optional EventObject providing more detail By default, (null) is returned. However, if any of thehandlers produce a non-null return value, then the value fromthe last handler to produces a non-null return value isreturned.



encode
public void encode(FacesContext context, UIComponent component) throws IOException(Code)
This method performs any encode action for this particular LayoutElement.
Parameters:
  context - The FacesContext
Parameters:
  component - The UIComponent



getChildLayoutElements
public List getChildLayoutElements()(Code)
This method returns the child LayoutElements as a List. List of LayoutElements



getHandlers
public List getHandlers(String type)(Code)

This method retrieves the Handlers for the requested type.


Parameters:
  type - The type of Handlers to retrieve. A List of Handlers.



getId
public String getId(FacesContext context, UIComponent parent)(Code)
Accessor method for id. This should always return a non-null value, it may return "" if id does not apply. a non-null id



getLayoutDefinition
public LayoutDefinition getLayoutDefinition()(Code)
This method returns the LayoutDefinition. If unable to, it will throw an Exception. The LayoutDefinition



getParent
public LayoutElement getParent()(Code)
This method returns the parent LayoutElement. parent LayoutElement



getUnevaluatedId
public String getUnevaluatedId()(Code)

This method generally should not be used. It does not resolve expressions. Instead use LayoutElement.getId(FacesContext,UIComponent) .

The unevaluated id.



setHandlers
public void setHandlers(String type, List handlers)(Code)

This method associates 'type' with the given list of Handlers.


Parameters:
  type - The String type for the List of Handlers
Parameters:
  handlers - The List of Handlers



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