Java Doc for ModelFormField.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.ModelFormField

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

Inner Class :abstract public static class FieldInfo
Inner Class :abstract public static class FieldInfoWithOptions extends FieldInfo
Inner Class :public static class OptionValue
Inner Class :abstract public static class OptionSource
Inner Class :public static class SingleOption extends OptionSource
Inner Class :public static class ListOptions extends OptionSource
Inner Class :public static class EntityOptions extends OptionSource
Inner Class :public static class DisplayField extends FieldInfo
Inner Class :public static class HyperlinkField extends FieldInfo
Inner Class :public static class SubHyperlink
Inner Class :public static class TextField extends FieldInfo
Inner Class :public static class TextareaField extends FieldInfo
Inner Class :public static class DateTimeField extends FieldInfo
Inner Class :public static class DropDownField extends FieldInfoWithOptions
Inner Class :public static class RadioField extends FieldInfoWithOptions
Inner Class :public static class CheckField extends FieldInfo
Inner Class :public static class SubmitField extends FieldInfo
Inner Class :public static class ResetField extends FieldInfo
Inner Class :public static class HiddenField extends FieldInfo
Inner Class :public static class IgnoredField extends FieldInfo
Inner Class :public static class TextFindField extends TextField
Inner Class :public static class DateFindField extends DateTimeField
Inner Class :public static class RangeFindField extends TextField
Inner Class :public static class LookupField extends TextField
Inner Class :public static class FileField extends TextField

Field Summary
protected  StringattributeName
    
protected  StringentityName
    
protected  FlexibleMapAccessorentryAcsr
    
protected  FieldInfofieldInfo
    
protected  StringfieldName
    
protected  StringidName
    
protected  FlexibleMapAccessormapAcsr
    
protected  ModelFormmodelForm
    
final public static  Stringmodule
    
protected  Stringname
    
protected  StringparameterName
    
protected  Integerposition
    
protected  StringredWhen
    
protected  StringserviceName
    
protected  FlexibleStringExpandertitle
    
protected  StringtitleStyle
    
protected  FlexibleStringExpandertooltip
    
protected  StringtooltipStyle
    
protected  FlexibleStringExpanderuseWhen
    
protected  StringwidgetStyle
    

Constructor Summary
public  ModelFormField(ModelForm modelForm)
    
public  ModelFormField(Element fieldElement, ModelForm modelForm)
    

Method Summary
public  StringgetAttributeName()
     Gets the name of the Service Attribute (aka Parameter) that corresponds with this field.
public  StringgetEntityName()
    
public  StringgetEntry(Map context)
     Gets the entry from the context that corresponds to this field; if this form is being rendered in an error condition (ie isError in the context is true) then the value will be retreived from the parameters Map in the context.
public  StringgetEntry(Map context, String defaultValue)
    
public  StringgetEntryName()
    
public  FieldInfogetFieldInfo()
    
public  StringgetFieldName()
     Gets the name of the Entity Field that corresponds with this field.
public  StringgetIdName()
    
public  MapgetMap(Map context)
    
public  StringgetMapName()
     Get the name of the Map in the form context that contains the entry, available from the getEntryName() method.
public  ModelFormgetModelForm()
    
public  StringgetName()
    
public  StringgetParameterName(Map context)
     Get the name to use for the parameter for this field in the form interpreter.
public  intgetPosition()
    
public  StringgetRedWhen()
    
public  StringgetServiceName()
    
public  StringgetTitle(Map context)
    
public  StringgetTitleStyle()
    
public  StringgetTooltip(Map context)
    
public  StringgetTooltipStyle()
    
public  StringgetUseWhen(Map context)
    
public  StringgetWidgetStyle()
    
public  booleaninduceFieldInfo(String defaultFieldType)
    
public  booleaninduceFieldInfoFromEntityField(String defaultFieldType)
    
public  booleaninduceFieldInfoFromEntityField(ModelEntity modelEntity, ModelField modelField, String defaultFieldType)
    
public  booleaninduceFieldInfoFromServiceParam(String defaultFieldType)
    
public  booleaninduceFieldInfoFromServiceParam(ModelService modelService, ModelParam modelParam, String defaultFieldType)
    
public  booleanisUseWhenEmpty()
    
public  voidmergeOverrideModelFormField(ModelFormField overrideFormField)
    
public  voidrenderFieldString(StringBuffer buffer, Map context, FormStringRenderer formStringRenderer)
    
public  voidsetAttributeName(String string)
    
public  voidsetEntityName(String string)
    
public  voidsetEntryName(String string)
    
public  voidsetFieldInfo(FieldInfo fieldInfo)
    
public  voidsetFieldName(String string)
    
public  voidsetIdName(String string)
    
public  voidsetMapName(String string)
    
public  voidsetName(String string)
    
public  voidsetParameterName(String string)
    
public  voidsetPosition(int i)
    
public  voidsetRedWhen(String string)
    
public  voidsetServiceName(String string)
    
public  voidsetTitle(String string)
    
public  voidsetTitleStyle(String string)
    
public  voidsetTooltip(String string)
    
public  voidsetTooltipStyle(String string)
    
public  voidsetUseWhen(String string)
    
public  voidsetWidgetStyle(String string)
    
public  booleanshouldBeRed(Map context)
     the widget/interaction part will be red if the date value is before-now (for ex.
public  booleanshouldUse(Map context)
    

Field Detail
attributeName
protected String attributeName(Code)



entityName
protected String entityName(Code)



entryAcsr
protected FlexibleMapAccessor entryAcsr(Code)



fieldInfo
protected FieldInfo fieldInfo(Code)



fieldName
protected String fieldName(Code)



idName
protected String idName(Code)



mapAcsr
protected FlexibleMapAccessor mapAcsr(Code)



modelForm
protected ModelForm modelForm(Code)



module
final public static String module(Code)



name
protected String name(Code)



parameterName
protected String parameterName(Code)



position
protected Integer position(Code)



redWhen
protected String redWhen(Code)



serviceName
protected String serviceName(Code)



title
protected FlexibleStringExpander title(Code)



titleStyle
protected String titleStyle(Code)



tooltip
protected FlexibleStringExpander tooltip(Code)



tooltipStyle
protected String tooltipStyle(Code)



useWhen
protected FlexibleStringExpander useWhen(Code)



widgetStyle
protected String widgetStyle(Code)




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



ModelFormField
public ModelFormField(Element fieldElement, ModelForm modelForm)(Code)
XML Constructor




Method Detail
getAttributeName
public String getAttributeName()(Code)
Gets the name of the Service Attribute (aka Parameter) that corresponds with this field. This can be used to get additional information about the field. Use the getServiceName() method to get the Entity name that the field is in.



getEntityName
public String getEntityName()(Code)



getEntry
public String getEntry(Map context)(Code)
Gets the entry from the context that corresponds to this field; if this form is being rendered in an error condition (ie isError in the context is true) then the value will be retreived from the parameters Map in the context.
Parameters:
  context -



getEntry
public String getEntry(Map context, String defaultValue)(Code)



getEntryName
public String getEntryName()(Code)



getFieldInfo
public FieldInfo getFieldInfo()(Code)



getFieldName
public String getFieldName()(Code)
Gets the name of the Entity Field that corresponds with this field. This can be used to get additional information about the field. Use the getEntityName() method to get the Entity name that the field is in.



getIdName
public String getIdName()(Code)



getMap
public Map getMap(Map context)(Code)



getMapName
public String getMapName()(Code)
Get the name of the Map in the form context that contains the entry, available from the getEntryName() method. This entry is used to pre-populate the field widget when not in an error condition. In an error condition the parameter name is used to get the value from the parameters Map.



getModelForm
public ModelForm getModelForm()(Code)



getName
public String getName()(Code)



getParameterName
public String getParameterName(Map context)(Code)
Get the name to use for the parameter for this field in the form interpreter. For HTML forms this is the request parameter name.



getPosition
public int getPosition()(Code)



getRedWhen
public String getRedWhen()(Code)



getServiceName
public String getServiceName()(Code)



getTitle
public String getTitle(Map context)(Code)



getTitleStyle
public String getTitleStyle()(Code)



getTooltip
public String getTooltip(Map context)(Code)



getTooltipStyle
public String getTooltipStyle()(Code)



getUseWhen
public String getUseWhen(Map context)(Code)



getWidgetStyle
public String getWidgetStyle()(Code)



induceFieldInfo
public boolean induceFieldInfo(String defaultFieldType)(Code)



induceFieldInfoFromEntityField
public boolean induceFieldInfoFromEntityField(String defaultFieldType)(Code)



induceFieldInfoFromEntityField
public boolean induceFieldInfoFromEntityField(ModelEntity modelEntity, ModelField modelField, String defaultFieldType)(Code)



induceFieldInfoFromServiceParam
public boolean induceFieldInfoFromServiceParam(String defaultFieldType)(Code)



induceFieldInfoFromServiceParam
public boolean induceFieldInfoFromServiceParam(ModelService modelService, ModelParam modelParam, String defaultFieldType)(Code)



isUseWhenEmpty
public boolean isUseWhenEmpty()(Code)



mergeOverrideModelFormField
public void mergeOverrideModelFormField(ModelFormField overrideFormField)(Code)



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



setAttributeName
public void setAttributeName(String string)(Code)

Parameters:
  string -



setEntityName
public void setEntityName(String string)(Code)

Parameters:
  string -



setEntryName
public void setEntryName(String string)(Code)

Parameters:
  string -



setFieldInfo
public void setFieldInfo(FieldInfo fieldInfo)(Code)

Parameters:
  fieldInfo -



setFieldName
public void setFieldName(String string)(Code)

Parameters:
  string -



setIdName
public void setIdName(String string)(Code)

Parameters:
  string -



setMapName
public void setMapName(String string)(Code)

Parameters:
  string -



setName
public void setName(String string)(Code)

Parameters:
  string -



setParameterName
public void setParameterName(String string)(Code)

Parameters:
  string -



setPosition
public void setPosition(int i)(Code)

Parameters:
  i -



setRedWhen
public void setRedWhen(String string)(Code)

Parameters:
  string -



setServiceName
public void setServiceName(String string)(Code)

Parameters:
  string -



setTitle
public void setTitle(String string)(Code)

Parameters:
  string -



setTitleStyle
public void setTitleStyle(String string)(Code)

Parameters:
  string -



setTooltip
public void setTooltip(String string)(Code)

Parameters:
  string -



setTooltipStyle
public void setTooltipStyle(String string)(Code)

Parameters:
  string -



setUseWhen
public void setUseWhen(String string)(Code)

Parameters:
  string -



setWidgetStyle
public void setWidgetStyle(String string)(Code)

Parameters:
  string -



shouldBeRed
public boolean shouldBeRed(Map context)(Code)
the widget/interaction part will be red if the date value is before-now (for ex. thruDate), after-now (for ex. fromDate), or by-name (if the field's name or entry-name or fromDate or thruDate the corresponding action will be done); only applicable when the field is a timestamp
Parameters:
  context -



shouldUse
public boolean shouldUse(Map context)(Code)



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.