Java Doc for FacesDesignContext.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » designtime » faces » 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.designtime.faces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.designtime.faces.FacesDesignContext

All known Subclasses:   org.netbeans.modules.visualweb.insync.live.LiveUnit,
FacesDesignContext
public interface FacesDesignContext extends MarkupDesignContext(Code)
The FacesDesignContext is an extension to the DesignContext interface (and MarkupDesignContext interface) that adds JSF-specific functionality. This adds methods for creating new facets and handling value reference expressions at design-time. A FacesDesignContext can be accessed by calling the DesignBean.getDesignContext() method and testing the returned DesignContext for 'instanceof' FacesDesignContext. If the file being designed is a JSF-specific backing file (eg Page1.jsp + Page1.java), the DesignContext will be an instanceof FacesDesignContext.

IMPLEMENTED BY CREATOR - This interface is implemented by Creator for use by the component (bean) author.


author:
   Joe Nuxoll
version:
   1.0
See Also:   DesignContext
See Also:   DesignBean.getDesignContext




Method Summary
public  booleancanCreateFacet(String facetName, String type, DesignBean parent)
     Checks if a facet child of type 'facet' using a component of type 'type' on the faces bean 'parent' can be created.
public  DesignBeancreateFacet(String facetName, String type, DesignBean parent)
     Creates a facet child of type 'facet' using a component of type 'type' on the faces bean 'parent'.
public  StringgetBindingExpr(DesignBean toBean)
    
public  StringgetBindingExpr(DesignBean toBean, String subExpr)
     Returns a valid binding expression "#{...}" value to point to 'toBean' plus the sub- expression inside of toBean.
public  FacesContextgetFacesContext()
     Returns the FacesContext that can be used by component designers to retrieve design-time Faces information.
public  StringgetReferenceName()
     Returns the reference name to use in EL expressions to refer to this FacesDesignContext.
public  booleanisValidBindingTarget(DesignBean toBean)
    
public  ObjectresolveBindingExpr(String expr)
    
public  ResolveResultresolveBindingExprToBean(String expr)
    



Method Detail
canCreateFacet
public boolean canCreateFacet(String facetName, String type, DesignBean parent)(Code)
Checks if a facet child of type 'facet' using a component of type 'type' on the faces bean 'parent' can be created. This method should be called as a test before a call to createFacet.
Parameters:
  facetName - The desired facet name to create
Parameters:
  type - The desired component type to create as a facet
Parameters:
  parent - The desired parent component to create a facet in true if the creation of this facet would be successful, orfalse if not
See Also:    createFacet(String, String, DesignBean)



createFacet
public DesignBean createFacet(String facetName, String type, DesignBean parent)(Code)
Creates a facet child of type 'facet' using a component of type 'type' on the faces bean 'parent'. Before this method is called, a test call should be made to canCreateFacet.
Parameters:
  facetName - The desired facet name to create
Parameters:
  type - The desired component type to create as a facet
Parameters:
  parent - The desired parent component to create a facet in The resulting DesignBean representing the new facet
See Also:    canCreateFacet(String, String, DesignBean)



getBindingExpr
public String getBindingExpr(DesignBean toBean)(Code)
Returns a valid reference expression "#{...}" value to point to 'toBean'
Parameters:
  toBean - the 'target' bean to create a value expression to point to A valid reference expression pointing to 'toBean'



getBindingExpr
public String getBindingExpr(DesignBean toBean, String subExpr)(Code)
Returns a valid binding expression "#{...}" value to point to 'toBean' plus the sub- expression inside of toBean. For example, toBean might be button2 on Page1, and the desired expression might be to get the value of button2. The call would then be getReferenceExpr(button2, "value") --> "#{Page1.button2.value}"
Parameters:
  toBean - the 'target' bean to create a value expression to point to
Parameters:
  subExpr - An optional sub-expression A valid reference expression pointing to 'toBean' plus the specified sub-expression



getFacesContext
public FacesContext getFacesContext()(Code)
Returns the FacesContext that can be used by component designers to retrieve design-time Faces information. The 'runtime' FacesContext running at design-time



getReferenceName
public String getReferenceName()(Code)
Returns the reference name to use in EL expressions to refer to this FacesDesignContext. The String to use as a reference name (in JSF EL)



isValidBindingTarget
public boolean isValidBindingTarget(DesignBean toBean)(Code)
Returns whether a binding expression can be created to point to 'toBean'
Parameters:
  toBean - the 'target' bean to create a value expression to point to true if a binding expression can be created to point to 'toBean',false if not



resolveBindingExpr
public Object resolveBindingExpr(String expr)(Code)
Returns the live instance Object (not DesignBean) that the reference expression resolves to (at the moment called)
Parameters:
  expr - The EL reference expression to evaluate the live instance Object (not DesignBean) that the reference expression resolves to



resolveBindingExprToBean
public ResolveResult resolveBindingExprToBean(String expr)(Code)
Returns a result that is resolved to the last DesignBean that can be found, plus the remaining un-resolvable string (at least doesn't resolve to a DesignBean)
Parameters:
  expr - The EL reference expression to evaluate A ResolveResult, which includes the deepest DesignBean that could be resolved, plusthe remainder of the EL expression that could not be resolved to a DesignBean



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