|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.builder.AriaBuilder
org.formaria.builder.generic.GenericBuilder
org.formaria.editor.builder.pojo.PojoFormBuilder
public class PojoFormBuilder
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) Formaria 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 Formaria.
| Field Summary | |
|---|---|
protected java.beans.BeanInfo |
beanInfo
|
protected java.lang.Object |
pojo
|
protected java.lang.Class |
pojoClass
|
protected java.beans.PropertyDescriptor[] |
properties
|
| Fields inherited from class org.formaria.builder.generic.GenericBuilder |
|---|
commonAttributeMapping, componentsNodeName, decorationPanel, documentUrl, escapes, evaluator, fileExtension, formPanel, layoutManager, packageName, processors, reverseOrder, typeMap |
| Fields inherited from class org.formaria.builder.AriaBuilder |
|---|
adapter, attributeSets, checkBoxGroup, componentFactory, currentAttributes, currentProject, customizer, DEFAULT_PAGE_CLASS, eventHandler, includeFileName, layoutHelper, menuBar, page, rootPage, secondaryClassloader, validationFactories |
| Constructor Summary | |
|---|---|
PojoFormBuilder(Project project)
Create a new builder. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
addComponent(java.beans.PropertyDescriptor pd)
Adds an individual component element to the page (this method may be called recursively for nested elements). |
protected void |
addComponents(java.lang.Object page,
XmlElement model)
Adds the elements specified by the Components element and its children |
protected java.beans.PropertyDescriptor |
getProperty(java.lang.String name)
Get a named property |
java.lang.String |
getType()
Get the page loader type - a unique name identifying the loader |
PageSupport |
loadPage(java.lang.String defPackageName,
java.lang.String pageName,
boolean include)
Loads an Page via a reader obtained from the Project (searches the classpath). |
PageSupport |
readPage(java.io.Reader reader,
java.lang.String pageName,
java.lang.String ext,
boolean include)
Read an XML description of the page and construct a new Page. |
protected void |
setupPage(XmlElement model,
java.lang.String pageName,
java.lang.String ext,
boolean include)
Loads the page based on the contents of the page tag or by using default values. |
| Methods inherited from class org.formaria.builder.generic.GenericBuilder |
|---|
addBinding, addComponent, addVocabulary, escape, getMappedValue, getMappedValue, getUrlInputStream, init, setComponentAttributes, setStyle, setupCommonAttributeMapping, setupComponentMapping, setupFileTypeHandler, setupInstructionMapping, setupPageLayout, unescape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Class pojoClass
protected java.lang.Object pojo
protected java.beans.BeanInfo beanInfo
protected java.beans.PropertyDescriptor[] properties
| Constructor Detail |
|---|
public PojoFormBuilder(Project project)
GenericBuilderConfig setting.
project - the current aria projectfactory - the component factory| Method Detail |
|---|
public PageSupport loadPage(java.lang.String defPackageName,
java.lang.String pageName,
boolean include)
loadPage in interface PageLoaderloadPage in class GenericBuilderdefPackageName - the package or path to the pagepageName - the page name or the name of the class implementing the pageinclude - true if the page to be loaded is being included in another
page in which case any class attribute of the included page is ignored
public PageSupport readPage(java.io.Reader reader,
java.lang.String pageName,
java.lang.String ext,
boolean include)
readPage in interface PageLoaderreadPage in class GenericBuilderreader - a input stream from which to read the pagepageName - the name of the pageext - the file extensioninclude - the page to be loaded is being included in another page
protected void setupPage(XmlElement model,
java.lang.String pageName,
java.lang.String ext,
boolean include)
setupPage in class GenericBuilderpageName - the name of the pageext - the file extensioninclude - the page to be loaded is being included in another page
protected void addComponents(java.lang.Object page,
XmlElement model)
addComponents in class AriaBuilderpage - the new page objectmodel - the Components XML element (and implicitly its children)protected java.lang.Object addComponent(java.beans.PropertyDescriptor pd)
childNode - the XML element containing the component specification.
protected java.beans.PropertyDescriptor getProperty(java.lang.String name)
name - the property name
public java.lang.String getType()
getType in interface PageLoadergetType in class GenericBuilder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||