Java Doc for XPojoFormBuilder.java in  » XML-UI » xui32 » com » xoetrope » builder » pojo » 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 » XML UI » xui32 » com.xoetrope.builder.pojo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.xoetrope.builder.generic.XGenericBuilder
   com.xoetrope.builder.pojo.XPojoFormBuilder

XPojoFormBuilder
public class XPojoFormBuilder extends XGenericBuilder (Code)

A form builder based upon the GenericBuilder. The builder processes mappings using reflection to inspect the available properties of a POJO and creating a form in the process.

Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.



Field Summary
protected  BeanInfobeanInfo
    
protected  Objectpojo
    
protected  ClasspojoClass
    
protected  PropertyDescriptor[]properties
    

Constructor Summary
public  XPojoFormBuilder(XProject project)
     Create a new builder.

Method Summary
protected  ObjectaddComponent(PropertyDescriptor pd)
     Adds an individual component element to the page (this method may be called recursively for nested elements).
protected  voidaddComponents(Object page, XmlElement model)
    
protected  PropertyDescriptorgetProperty(String name)
    
public  StringgetType()
    
public  PageSupportloadPage(String defPackageName, String pageName, boolean include)
     Loads an XPage via a reader obtained from the XProject (searches the classpath).
public  PageSupportreadPage(Reader reader, String pageName, String ext, boolean include)
     Read an XML description of the page and construct a new XPage.
protected  voidsetupPage(XmlElement model, String pageName, String ext, boolean include)
     Loads the page based on the contents of the page tag or by using default values.

Field Detail
beanInfo
protected BeanInfo beanInfo(Code)



pojo
protected Object pojo(Code)



pojoClass
protected Class pojoClass(Code)



properties
protected PropertyDescriptor[] properties(Code)




Constructor Detail
XPojoFormBuilder
public XPojoFormBuilder(XProject project)(Code)
Create a new builder. An attempt is made to configure the builder with a configuration file when the builder is constructed if the configuration file is specified as part of the startup properties via the XGenericBuilderConfig setting.
Parameters:
  project - the current xui project
Parameters:
  factory - the component factory




Method Detail
addComponent
protected Object addComponent(PropertyDescriptor pd)(Code)
Adds an individual component element to the page (this method may be called recursively for nested elements). Several methods will be attempted until a component is successfully created. Firstly the built-in component types are checked, then any additional registered component constructors. The types can be specified by type ID, type name or class name.
Parameters:
  childNode - the XML element containing the component specification. the new component



addComponents
protected void addComponents(Object page, XmlElement model)(Code)
Adds the elements specified by the Components element and its children
Parameters:
  page - the new page object
Parameters:
  model - the Components XML element (and implicitly its children)



getProperty
protected PropertyDescriptor getProperty(String name)(Code)
Get a named property
Parameters:
  name - the property name the property descriptor or null if no such named property is found



getType
public String getType()(Code)
Get the page loader type - a unique name identifying the loader "ifnopath"



loadPage
public PageSupport loadPage(String defPackageName, String pageName, boolean include)(Code)
Loads an XPage via a reader obtained from the XProject (searches the classpath). The pageName is assumed to be the name of an Java POJO class file. For example if the pageName is 'welcome' then the 'Welcome.class' file in the default package is inspected. A full class name can be specified.
Parameters:
  defPackageName - the package or path to the page
Parameters:
  pageName - the page name or the name of the class implementing the page
Parameters:
  include - true if the page to be loaded is being included in anotherpage in which case any class attribute of the included page is ignored the page



readPage
public PageSupport readPage(Reader reader, String pageName, String ext, boolean include)(Code)
Read an XML description of the page and construct a new XPage. An instance of the class specified by the class attribute is constructed or else an instance of XPage if no class attribute is specified. The new page is populated but is not yet added to its parent.
The startup file parameter 'DefaultClass' is used to obtain a default for each page's class if a class parameter is not specified in the page's XML
The startup file parameter 'Validations' is used to obtain a default for each page's set of validation rules
Parameters:
  reader - a input stream from which to read the page
Parameters:
  pageName - the name of the page
Parameters:
  ext - the file extension
Parameters:
  include - the page to be loaded is being included in another page the page



setupPage
protected void setupPage(XmlElement model, String pageName, String ext, boolean include)(Code)
Loads the page based on the contents of the page tag or by using default values.
Parameters:
  pageName - the name of the page
Parameters:
  ext - the file extension
Parameters:
  include - the page to be loaded is being included in another page



Fields inherited from com.xoetrope.builder.generic.XGenericBuilder
protected ArrayList commonAttributeMapping(Code)(Java Doc)
protected String componentsNodeName(Code)(Java Doc)
protected XPanel decorationPanelformPanel(Code)(Java Doc)
protected static URL documentUrl(Code)(Java Doc)
protected ArrayList escapes(Code)(Java Doc)
protected XGenericBuilderAttributeEvaluator evaluator(Code)(Java Doc)
protected String fileExtension(Code)(Java Doc)
protected LayoutManager layoutManager(Code)(Java Doc)
protected String packageName(Code)(Java Doc)
protected Hashtable processors(Code)(Java Doc)
protected Hashtable typeMap(Code)(Java Doc)

Methods inherited from com.xoetrope.builder.generic.XGenericBuilder
public void addBinding(Component targetComp, String srcStr)(Code)(Java Doc)
protected Object addComponent(XmlElement childNode)(Code)(Java Doc)
protected void addVocabulary(PageSupport page, XmlElement model)(Code)(Java Doc)
protected String escape(String srcValue)(Code)(Java Doc)
public String getMappedValue(String srcValue, String mapping)(Code)(Java Doc)
public String getMappedValue(Component comp, String srcValue)(Code)(Java Doc)
public String getType()(Code)(Java Doc)
protected InputStream getUrlInputStream(String urlStr)(Code)(Java Doc)
protected void init(String packageName)(Code)(Java Doc)
public PageSupport loadPage(String defPackageName, String pageName, boolean include)(Code)(Java Doc)
public PageSupport readPage(Reader reader, String pageName, String ext, boolean include)(Code)(Java Doc)
protected void setComponentAttributes(Component comp, String attribName, String attribValue, XmlElement childNode)(Code)(Java Doc)
public void setStyle(Component comp, String value)(Code)(Java Doc)
public void setupCommonAttributeMapping(XmlElement mappingNode)(Code)(Java Doc)
protected void setupComponentMapping(XmlElement mappingNode)(Code)(Java Doc)
public void setupFileTypeHandler(String urlStr)(Code)(Java Doc)
protected void setupInstructionMapping(XmlElement mappingNode)(Code)(Java Doc)
protected void setupPage(XmlElement model, String pageName, String ext, boolean include)(Code)(Java Doc)
public void setupPageLayout(XmlElement componentsNode)(Code)(Java Doc)
protected String unescape(String srcValue)(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.