Java Doc for ModelForm.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » content » widget » form » 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 » ERP CRM Financial » SourceTap CRM » org.ofbiz.content.widget.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.content.widget.form.ModelForm

ModelForm
public class ModelForm (Code)
Widget Library - Form model class
author:
   David E. Jones
author:
   Al Byers
version:
   $Revision: 1.6 $
since:
   2.2

Inner Class :public static class AltTarget
Inner Class :public static class AutoFieldsService
Inner Class :public static class AutoFieldsEntity

Field Summary
protected  ListaltTargets
    
protected  ListautoFieldsEntities
    
protected  ListautoFieldsServices
    
protected  StringdefaultEntityName
    
protected  FlexibleMapAccessordefaultMapName
    
protected  StringdefaultServiceName
    
protected  StringdefaultTitleStyle
    
protected  StringdefaultTooltipStyle
    
protected  StringdefaultWidgetStyle
    
protected  GenericDelegatordelegator
    
protected  LocalDispatcherdispatcher
    
protected  ListfieldList
     This List will contain one copy of each field for each field name in the order they were encountered in the service, entity, or form definition; field definitions with constraints will also be in this list but may appear multiple times for the same field name. When rendering the form the order in this list should be following and it should not be necessary to use the Map.
protected  MapfieldMap
     This Map is keyed with the field name and has a ModelFormField for the value; fields with conditions will not be put in this Map so field definition overrides for fields with conditions is not possible.
protected  StringitemIndexSeparator
    
protected  StringlistEntryName
    
protected  StringlistName
    
final public static  Stringmodule
    
protected  Stringname
    
protected  StringpaginateTarget
    
protected  ListsortOrderFields
    
protected  Stringtarget
    
protected  Stringtitle
    
protected  Stringtooltip
    
protected  Stringtype
    

Constructor Summary
public  ModelForm()
    
public  ModelForm(Element formElement, GenericDelegator delegator, LocalDispatcher dispatcher)
    

Method Summary
public  voidaddAltTarget(AltTarget altTarget)
    
public  voidaddAutoFieldsFromEntity(AutoFieldsEntity autoFieldsEntity, GenericDelegator delegator)
    
public  voidaddAutoFieldsFromService(AutoFieldsService autoFieldsService, LocalDispatcher dispatcher)
    
public  ModelFormFieldaddFieldFromEntityField(ModelEntity modelEntity, ModelField modelField, String defaultFieldType)
    
public  ModelFormFieldaddFieldFromServiceParam(ModelService modelService, ModelParam modelParam, String defaultFieldType)
    
public  ModelFormFieldaddUpdateField(ModelFormField modelFormField)
    
public  InterpretergetBshInterpreter(Map context)
    
public  StringgetCurrentFormName(Map context)
    
public  StringgetDefaultEntityName()
    
public  MapgetDefaultMap(Map context)
    
public  StringgetDefaultMapName()
    
public  StringgetDefaultServiceName()
    
public  StringgetDefaultTitleStyle()
    
public  StringgetDefaultTooltipStyle()
    
public  StringgetDefaultWidgetStyle()
    
public  GenericDelegatorgetDelegator()
    
public  LocalDispatchergetDispacher()
    
public  StringgetItemIndexSeparator()
    
public  StringgetListEntryName()
    
public  StringgetListName()
    
public  StringgetName()
    
public  StringgetPaginateTarget()
    
public  StringgetTarget(Map context)
    
public  StringgetTitle()
    
public  StringgetTooltip()
    
public  StringgetType()
    
public  voidrenderFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer)
     Renders this form to a String, i.e.
public  voidrenderHeaderRow(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer)
    
public  voidrenderHiddenIgnoredFields(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, Set alreadyRendered)
    
public  voidrenderItemRows(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, boolean formPerItem)
    
public  voidrenderListFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, int positions)
    
public  voidrenderMultiFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, int positions)
    
public  voidrenderSingleFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, int positions)
    
public  voidsetDefaultEntityName(String string)
    
public  voidsetDefaultMapName(String string)
    
public  voidsetDefaultServiceName(String string)
    
public  voidsetDefaultTitleStyle(String string)
    
public  voidsetDefaultTooltipStyle(String string)
    
public  voidsetDefaultWidgetStyle(String string)
    
public  voidsetItemIndexSeparator(String string)
    
public  voidsetListEntryName(String string)
    
public  voidsetListName(String string)
    
public  voidsetName(String string)
    
public  voidsetPaginateTarget(String string)
    
public  voidsetTarget(String string)
    
public  voidsetTitle(String string)
    
public  voidsetTooltip(String string)
    
public  voidsetType(String string)
    

Field Detail
altTargets
protected List altTargets(Code)



autoFieldsEntities
protected List autoFieldsEntities(Code)



autoFieldsServices
protected List autoFieldsServices(Code)



defaultEntityName
protected String defaultEntityName(Code)



defaultMapName
protected FlexibleMapAccessor defaultMapName(Code)



defaultServiceName
protected String defaultServiceName(Code)



defaultTitleStyle
protected String defaultTitleStyle(Code)



defaultTooltipStyle
protected String defaultTooltipStyle(Code)



defaultWidgetStyle
protected String defaultWidgetStyle(Code)



delegator
protected GenericDelegator delegator(Code)



dispatcher
protected LocalDispatcher dispatcher(Code)



fieldList
protected List fieldList(Code)
This List will contain one copy of each field for each field name in the order they were encountered in the service, entity, or form definition; field definitions with constraints will also be in this list but may appear multiple times for the same field name. When rendering the form the order in this list should be following and it should not be necessary to use the Map. The Map is used when loading the form definition to keep the list clean and implement the override features for field definitions.



fieldMap
protected Map fieldMap(Code)
This Map is keyed with the field name and has a ModelFormField for the value; fields with conditions will not be put in this Map so field definition overrides for fields with conditions is not possible.



itemIndexSeparator
protected String itemIndexSeparator(Code)



listEntryName
protected String listEntryName(Code)



listName
protected String listName(Code)



module
final public static String module(Code)



name
protected String name(Code)



paginateTarget
protected String paginateTarget(Code)



sortOrderFields
protected List sortOrderFields(Code)



target
protected String target(Code)



title
protected String title(Code)



tooltip
protected String tooltip(Code)



type
protected String type(Code)




Constructor Detail
ModelForm
public ModelForm()(Code)
Default Constructor



ModelForm
public ModelForm(Element formElement, GenericDelegator delegator, LocalDispatcher dispatcher)(Code)
XML Constructor




Method Detail
addAltTarget
public void addAltTarget(AltTarget altTarget)(Code)



addAutoFieldsFromEntity
public void addAutoFieldsFromEntity(AutoFieldsEntity autoFieldsEntity, GenericDelegator delegator)(Code)



addAutoFieldsFromService
public void addAutoFieldsFromService(AutoFieldsService autoFieldsService, LocalDispatcher dispatcher)(Code)



addFieldFromEntityField
public ModelFormField addFieldFromEntityField(ModelEntity modelEntity, ModelField modelField, String defaultFieldType)(Code)



addFieldFromServiceParam
public ModelFormField addFieldFromServiceParam(ModelService modelService, ModelParam modelParam, String defaultFieldType)(Code)



addUpdateField
public ModelFormField addUpdateField(ModelFormField modelFormField)(Code)
add/override modelFormField using the fieldList and fieldMap The same ModelFormField, or if merged with an existing field, the existing field.



getBshInterpreter
public Interpreter getBshInterpreter(Map context) throws EvalError(Code)



getCurrentFormName
public String getCurrentFormName(Map context)(Code)



getDefaultEntityName
public String getDefaultEntityName()(Code)



getDefaultMap
public Map getDefaultMap(Map context)(Code)



getDefaultMapName
public String getDefaultMapName()(Code)



getDefaultServiceName
public String getDefaultServiceName()(Code)



getDefaultTitleStyle
public String getDefaultTitleStyle()(Code)



getDefaultTooltipStyle
public String getDefaultTooltipStyle()(Code)



getDefaultWidgetStyle
public String getDefaultWidgetStyle()(Code)



getDelegator
public GenericDelegator getDelegator()(Code)



getDispacher
public LocalDispatcher getDispacher()(Code)



getItemIndexSeparator
public String getItemIndexSeparator()(Code)



getListEntryName
public String getListEntryName()(Code)



getListName
public String getListName()(Code)



getName
public String getName()(Code)



getPaginateTarget
public String getPaginateTarget()(Code)



getTarget
public String getTarget(Map context)(Code)
iterate through altTargets list to see if any should be used, if not return original target The target for this Form



getTitle
public String getTitle()(Code)



getTooltip
public String getTooltip()(Code)



getType
public String getType()(Code)



renderFormString
public void renderFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer)(Code)
Renders this form to a String, i.e. in a text format, as defined with the FormStringRenderer implementation.
Parameters:
  buffer - The StringBuffer that the form text will be written to
Parameters:
  context - Map containing the form context; the following arereserved words in this context: parameters (Map), isError (Boolean),itemIndex (Integer, for lists only, otherwise null), bshInterpreter,formName (String, optional alternate name for form, defaults to thevalue of the name attribute)
Parameters:
  formStringRenderer - An implementation of the FormStringRendererinterface that is responsible for the actual text generation fordifferent form elements; implementing you own makes it possible touse the same form definitions for many types of form UIs



renderHeaderRow
public void renderHeaderRow(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer)(Code)



renderHiddenIgnoredFields
public void renderHiddenIgnoredFields(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, Set alreadyRendered)(Code)



renderItemRows
public void renderItemRows(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, boolean formPerItem)(Code)



renderListFormString
public void renderListFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, int positions)(Code)



renderMultiFormString
public void renderMultiFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, int positions)(Code)



renderSingleFormString
public void renderSingleFormString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer, int positions)(Code)



setDefaultEntityName
public void setDefaultEntityName(String string)(Code)

Parameters:
  string -



setDefaultMapName
public void setDefaultMapName(String string)(Code)

Parameters:
  string -



setDefaultServiceName
public void setDefaultServiceName(String string)(Code)

Parameters:
  string -



setDefaultTitleStyle
public void setDefaultTitleStyle(String string)(Code)

Parameters:
  string -



setDefaultTooltipStyle
public void setDefaultTooltipStyle(String string)(Code)

Parameters:
  string -



setDefaultWidgetStyle
public void setDefaultWidgetStyle(String string)(Code)

Parameters:
  string -



setItemIndexSeparator
public void setItemIndexSeparator(String string)(Code)

Parameters:
  string -



setListEntryName
public void setListEntryName(String string)(Code)

Parameters:
  string -



setListName
public void setListName(String string)(Code)

Parameters:
  string -



setName
public void setName(String string)(Code)

Parameters:
  string -



setPaginateTarget
public void setPaginateTarget(String string)(Code)

Parameters:
  string -



setTarget
public void setTarget(String string)(Code)

Parameters:
  string -



setTitle
public void setTitle(String string)(Code)

Parameters:
  string -



setTooltip
public void setTooltip(String string)(Code)

Parameters:
  string -



setType
public void setType(String string)(Code)

Parameters:
  string -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.