Java Doc for FacesPageUnit.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » insync » 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 » org.netbeans.modules.visualweb.insync.faces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.visualweb.insync.faces.FacesUnit
   org.netbeans.modules.visualweb.insync.faces.FacesPageUnit

FacesPageUnit
public class FacesPageUnit extends FacesUnit implements PropertyChangeListener(Code)
An extended FacesUnit that adds in the ability to have a JSF bean being designed have source in JSPX in addition to the regular Java source.
author:
   cquinn

Inner Class :public class RenderError extends Error

Field Summary
final public static  StringURI_JSF_CORE
    
final public static  StringURI_JSF_HTML
    
final public static  StringURI_JSP_PAGE
    
 StringdefaultEncoding
    
 StringdefaultLanguage
    
 StringdefaultSrcEncoding
    
 Documentdocument
    
protected  DataObjectpageUnitDataObject
    
protected  MarkupUnitpgunit
    
final  UIViewRootviewRoot
    

Constructor Summary
public  FacesPageUnit(JavaUnit junit, ClassLoader cl, String pkgname, Model model, String rootPackage, FacesContainer container, MarkupUnit pgunit)
    

Method Summary
protected  voidbind()
    
protected  voidbindBeanParents()
    
protected  voidbindEventSets(List<Statement> stmts)
    
protected  voidbindMarkupBeans(Element e)
     Bind all markup beans to their element and take care of parenting.
public  booleancanCreateBean(BeanInfo bi, Bean parent)
    
public  voiddestroy()
    
public  voiddumpFacesComp(UIComponent uic, int indent)
    
public  ElementfindCompElement(String id)
     Return the child element with a given id attr within the page
Parameters:
  id - The id attrribute string.
protected static  MarkupBeanfirstBeanOfType(Bean bean, String tagName)
     Find the first occurance of a child bean with a given tag.
Parameters:
  bean - the parent bean whose children will be searched.
Parameters:
  tagName - the tag name to search for.
protected static  MarkupBeanfirstBeanOfType(Bean[] beans, String tagName)
     Find the first occurance of a bean from a list, with a given tag.
Parameters:
  beans - the list of beans to be searched.
Parameters:
  tagName - the tag name to search for.
final public  StringgetCompBinding(String bname)
     Get the component binding string for a given component bean name.
Parameters:
  bname - The component bean name.
public  StringgetDefaultLanguage()
    
public  MarkupBeangetDefaultParent()
     Return the form bean associated with the unit.
public  StringgetEncoding()
     Get the effective response encoding for this unit.
public  ParserAnnotation[]getErrors()
    
public  FacesBeangetFacesAncestorBean(Element e)
     the faces bean for a given faces tag element or any of its ancestors.
public  FacesBeangetFacesBean(Element e)
     Get the faces bean for a given faces tag element.
Parameters:
  e - the tag element.
public static  FacesBeangetFacesBean(DesignBean lb)
     Return the FacesBean for the live bean.
public  FacesContextgetFacesContext()
    
public  DocumentFragmentgetFacesRenderTree(DesignBean lbean, LiveUnit lu)
     Get a complete render tree as a document fragment for a given component bean.
Parameters:
  lbean - The bean to render in DesignBean form.
Parameters:
  lu - The LiveUnit that hosts the given bean.
public  MarkupBeangetMarkupBean(Element e)
     Get the markup bean for a given faces tag element.
Parameters:
  e - the tag element.
public static  MarkupMouseRegiongetMarkupMouseRegionForElement(Element element)
    
public  MarkupUnitgetPageUnit()
    
public  ExceptiongetRenderFailure()
     Return the exception associated with the most recent getFacesRenderTree call. You should call this method immediately after a FacesPageUnit.getFacesRenderTree call; it will be overwritten by other requests.
public  DesignBeangetRenderFailureComponent()
     Return the failing component associated with the most recent getFacesRenderTree call. You should call this method immediately after a FacesPageUnit.getFacesRenderTree call; it will be overwritten by other requests.
public  org.w3c.dom.ElementgetRootElement()
    
public  ObjectgetRootInstance()
    
public  StategetState()
     the combined state of this unit.
public  UIViewRootgetViewRoot()
     Get the JSF page view root for this unit.
public  booleanisPage()
    
public  booleanisWriteLocked()
    
public  voidmoveBean(Bean bean, Bean newparent, Position pos)
    
protected  BeannewBoundBean(BeanInfo bi, String name, List<String> typeNames)
    
protected  PropertynewBoundProperty(Statement stmt)
    
protected  BeannewCreatedBean(BeanInfo bi, Bean parent, String name, String facet, Position pos)
    
public  voidpropertyChange(PropertyChangeEvent e)
     Listen for JSP encoding changes from the editor so that our layer can mirror the changes.
public  voidreadLock()
    
public  voidreadUnlock()
    
protected  voidrenderBean(DesignBean lbean, DocFragmentJspWriter rw, LiveUnit lu)
    
public static  DocumentFragmentrenderHtml(FacesModel model, MarkupDesignBean bean)
    
public static  DocumentFragmentrenderHtml(FacesModel model, MarkupDesignBean bean, boolean markRendered)
    
protected  voidscan()
    
public  voidsetDefaultEncoding(String encoding)
     Set the default (response) encoding for this unit.
public  voidsetDefaultLanguage(String defaultLanguage)
     Set the default language for this unit.
public  voidsetDefaultParent(MarkupBean defaultParent)
     Set the default parent associated with this unit.
public  voidsetDefaultSrcEncoding(String encoding)
    
public  voidsetEncoding(String encoding)
     Set the effective response encoding for this unit.
public static  voidsetMarkupMouseRegionForElement(Element element, MarkupMouseRegion region)
    
public  voidsetPreRendered(DesignBean bean, DocumentFragment df)
     Set the "pre rendered" DocumentFragment for a particular bean. Note: Only ONE bean can be pre-rendered at a time; this is not a per-bean assignment.
protected  booleansyncSubUnits()
    
public  StringtoString()
    
public  voidwriteLock(UndoEvent event)
    
public  booleanwriteUnlock(UndoEvent event)
    

Field Detail
URI_JSF_CORE
final public static String URI_JSF_CORE(Code)



URI_JSF_HTML
final public static String URI_JSF_HTML(Code)



URI_JSP_PAGE
final public static String URI_JSP_PAGE(Code)



defaultEncoding
String defaultEncoding(Code)



defaultLanguage
String defaultLanguage(Code)



defaultSrcEncoding
String defaultSrcEncoding(Code)



document
Document document(Code)



pageUnitDataObject
protected DataObject pageUnitDataObject(Code)



pgunit
protected MarkupUnit pgunit(Code)



viewRoot
final UIViewRoot viewRoot(Code)




Constructor Detail
FacesPageUnit
public FacesPageUnit(JavaUnit junit, ClassLoader cl, String pkgname, Model model, String rootPackage, FacesContainer container, MarkupUnit pgunit)(Code)
Construct an FacesPageUnit from existing java and markup units
Parameters:
  junit -
Parameters:
  cl -
Parameters:
  pkgname -
Parameters:
  rootPackage -
Parameters:
  container -
Parameters:
  pgunit -




Method Detail
bind
protected void bind()(Code)



bindBeanParents
protected void bindBeanParents()(Code)



bindEventSets
protected void bindEventSets(List<Statement> stmts)(Code)



bindMarkupBeans
protected void bindMarkupBeans(Element e)(Code)
Bind all markup beans to their element and take care of parenting. Creates the HtmlBean instances for HTML and other fake beans on the fly



canCreateBean
public boolean canCreateBean(BeanInfo bi, Bean parent)(Code)
We will create any unparented beans, or faces beans with faces parents
See Also:   org.netbeans.modules.visualweb.insync.beans.BeansUnit.canCreateBean(java.beans.BeanInfoorg.netbeans.modules.visualweb.insync.beans.Bean)



destroy
public void destroy()(Code)



dumpFacesComp
public void dumpFacesComp(UIComponent uic, int indent)(Code)
Debug method for dumping a faces tree to stderr
Parameters:
  uic - The parent of the tree to dump.
Parameters:
  indent - The indent level, 0 to start.



findCompElement
public Element findCompElement(String id)(Code)
Return the child element with a given id attr within the page
Parameters:
  id - The id attrribute string. The matching component element if found.



firstBeanOfType
protected static MarkupBean firstBeanOfType(Bean bean, String tagName)(Code)
Find the first occurance of a child bean with a given tag.
Parameters:
  bean - the parent bean whose children will be searched.
Parameters:
  tagName - the tag name to search for. the MarkupBean found, or null of none.



firstBeanOfType
protected static MarkupBean firstBeanOfType(Bean[] beans, String tagName)(Code)
Find the first occurance of a bean from a list, with a given tag.
Parameters:
  beans - the list of beans to be searched.
Parameters:
  tagName - the tag name to search for. the MarkupBean found, or null of none.



getCompBinding
final public String getCompBinding(String bname)(Code)
Get the component binding string for a given component bean name.
Parameters:
  bname - The component bean name. The component binding string.



getDefaultLanguage
public String getDefaultLanguage()(Code)
Return the default language to be used in this page The default language that should be used for this page if not otherwise specified



getDefaultParent
public MarkupBean getDefaultParent()(Code)
Return the form bean associated with the unit. the form bean associated with the unit.



getEncoding
public String getEncoding()(Code)
Get the effective response encoding for this unit. The current response encoding.



getErrors
public ParserAnnotation[] getErrors()(Code)



getFacesAncestorBean
public FacesBean getFacesAncestorBean(Element e)(Code)
the faces bean for a given faces tag element or any of its ancestors. Null if not afaces element.



getFacesBean
public FacesBean getFacesBean(Element e)(Code)
Get the faces bean for a given faces tag element.
Parameters:
  e - the tag element. the faces bean for the given faces tag element, null if not a faces element.



getFacesBean
public static FacesBean getFacesBean(DesignBean lb)(Code)
Return the FacesBean for the live bean. May be null, for non faces live beans.
Parameters:
  lb - The live bean to get the faces bean for. May be null. the FacesBean corresponding to the live bean, or null.



getFacesContext
public FacesContext getFacesContext()(Code)
Override super's to make sure our viewRoot is active
See Also:   org.netbeans.modules.visualweb.insync.faces.FacesUnit.getFacesContext



getFacesRenderTree
public DocumentFragment getFacesRenderTree(DesignBean lbean, LiveUnit lu)(Code)
Get a complete render tree as a document fragment for a given component bean.
Parameters:
  lbean - The bean to render in DesignBean form.
Parameters:
  lu - The LiveUnit that hosts the given bean. A complete DocumentFragment that contains the bean's rendered XHTML.//!TODO: could easily extract lu from lbean here.



getMarkupBean
public MarkupBean getMarkupBean(Element e)(Code)
Get the markup bean for a given faces tag element.
Parameters:
  e - the tag element. the markup bean for the given faces tag element, null if element has no associatedbean //!CQ TODO: could hash element=>bean instead



getMarkupMouseRegionForElement
public static MarkupMouseRegion getMarkupMouseRegionForElement(Element element)(Code)



getPageUnit
public MarkupUnit getPageUnit()(Code)



getRenderFailure
public Exception getRenderFailure()(Code)
Return the exception associated with the most recent getFacesRenderTree call. You should call this method immediately after a FacesPageUnit.getFacesRenderTree call; it will be overwritten by other requests. If there were no failures, returns null.



getRenderFailureComponent
public DesignBean getRenderFailureComponent()(Code)
Return the failing component associated with the most recent getFacesRenderTree call. You should call this method immediately after a FacesPageUnit.getFacesRenderTree call; it will be overwritten by other requests. If there were no failures, returns null.



getRootElement
public org.w3c.dom.Element getRootElement()(Code)



getRootInstance
public Object getRootInstance()(Code)



getState
public State getState()(Code)
the combined state of this unit. A dirty state overrules clean. The only illegalstate is one DirtySource and one DirtyModel
See Also:   org.netbeans.modules.visualweb.insync.Unit.getState



getViewRoot
public UIViewRoot getViewRoot()(Code)
Get the JSF page view root for this unit. The view root for this JSF page.



isPage
public boolean isPage()(Code)
Determine if the current document is a complete page (true) or a fragment (false) true iff the current document is a complete page



isWriteLocked
public boolean isWriteLocked()(Code)



moveBean
public void moveBean(Bean bean, Bean newparent, Position pos)(Code)



newBoundBean
protected Bean newBoundBean(BeanInfo bi, String name, List<String> typeNames)(Code)



newBoundProperty
protected Property newBoundProperty(Statement stmt)(Code)



newCreatedBean
protected Bean newCreatedBean(BeanInfo bi, Bean parent, String name, String facet, Position pos)(Code)



propertyChange
public void propertyChange(PropertyChangeEvent e)(Code)
Listen for JSP encoding changes from the editor so that our layer can mirror the changes.
See Also:   java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)



readLock
public void readLock()(Code)



readUnlock
public void readUnlock()(Code)



renderBean
protected void renderBean(DesignBean lbean, DocFragmentJspWriter rw, LiveUnit lu)(Code)
Render a component into a doc fragment writer
Parameters:
  lbean - The bean to render in DesignBean form.
Parameters:
  rw - The JSP response writer to write the rendering into.
Parameters:
  lu - The LiveUnit that hosts the given bean.



renderHtml
public static DocumentFragment renderHtml(FacesModel model, MarkupDesignBean bean)(Code)



renderHtml
public static DocumentFragment renderHtml(FacesModel model, MarkupDesignBean bean, boolean markRendered)(Code)



scan
protected void scan()(Code)
Scan our document to find or create our outer tracked elements
See Also:   org.netbeans.modules.visualweb.insync.beans.BeansUnit.scan



setDefaultEncoding
public void setDefaultEncoding(String encoding)(Code)
Set the default (response) encoding for this unit.
Parameters:
  encoding - The default response encoding.



setDefaultLanguage
public void setDefaultLanguage(String defaultLanguage)(Code)
Set the default language for this unit.
Parameters:
  defaultLanguage -



setDefaultParent
public void setDefaultParent(MarkupBean defaultParent)(Code)
Set the default parent associated with this unit. The passed in bean must be a valid bean in this faces unit. Avoid this method, this is primarily used by clients that really know what they're doing and don't want any of the default behavior - such as the Page Import feature.



setDefaultSrcEncoding
public void setDefaultSrcEncoding(String encoding)(Code)
Set the default encoding for the jsp source
Parameters:
  encoding -



setEncoding
public void setEncoding(String encoding)(Code)
Set the effective response encoding for this unit.
Parameters:
  encoding - The response encoding, or null to use default.



setMarkupMouseRegionForElement
public static void setMarkupMouseRegionForElement(Element element, MarkupMouseRegion region)(Code)



setPreRendered
public void setPreRendered(DesignBean bean, DocumentFragment df)(Code)
Set the "pre rendered" DocumentFragment for a particular bean. Note: Only ONE bean can be pre-rendered at a time; this is not a per-bean assignment. When set, this will cause the given DocumentFragment to be inserted into the output fragment rather than calling the bean's renderer. The bean must represent a UIComponent. This is intended to be used for for example having the ability to "inline edit" a particular component's value; in that case since we're not updating the value attribute during editing, we want to suppress the normal rendered portion from the component and instead substitute the inline-edited document fragment corresponding to the parsed text output of the component.



syncSubUnits
protected boolean syncSubUnits()(Code)



toString
public String toString()(Code)



writeLock
public void writeLock(UndoEvent event)(Code)



writeUnlock
public boolean writeUnlock(UndoEvent event)(Code)



Fields inherited from org.netbeans.modules.visualweb.insync.faces.FacesUnit
final protected static String[] FACES_IMPLICIT_OBJECTS(Code)(Java Doc)
final protected FacesContainer container(Code)(Java Doc)
protected static HashMap facesImplicitNamesMap(Code)(Java Doc)
final protected String rootPackage(Code)(Java Doc)

Methods inherited from org.netbeans.modules.visualweb.insync.faces.FacesUnit
public static String fixPossiblyImplicitBeanName(String beanName)(Code)(Java Doc)
final public static String getBeanDescriptorValue(BeanInfo bi, String name)(Code)(Java Doc)
final public static String getBeanMarkupSection(BeanInfo beanInfo)(Code)(Java Doc)
public String getBeanName()(Code)(Java Doc)
public String getBeanNameUnfixed()(Code)(Java Doc)
final public static String getBeanTagName(BeanInfo beanInfo)(Code)(Java Doc)
final public static String getBeanTaglibPrefix(BeanInfo beanInfo)(Code)(Java Doc)
final public static String getBeanTaglibUri(BeanInfo beanInfo)(Code)(Java Doc)
public Application getFacesApplication()(Code)(Java Doc)
public FacesContext getFacesContext()(Code)(Java Doc)
protected BeanStructureScanner getNewBeanStructureScanner()(Code)(Java Doc)
final public static boolean isFacesBean(BeanInfo beanInfo)(Code)(Java Doc)
final public static boolean isHtmlBean(BeanInfo beanInfo)(Code)(Java Doc)
public static boolean isImplicitBeanName(String beanName)(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.