Java Doc for PojoFormBase.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » core » web » struts » 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 » ERP CRM Financial » Kuali Financial System » org.kuali.core.web.struts.pojo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.core.web.struts.pojo.PojoFormBase

All known Subclasses:   org.kuali.core.web.struts.form.KualiForm,
PojoFormBase
public class PojoFormBase extends ActionForm implements PojoForm(Code)
This class is the base form which implements the PojoForm interface. Kuali Foundation modification: javadoc comments changed


Field Summary
final static  StringCONVERT_ERR_MSG
    
final static  StringCREATE_ERR_MSG
    
static  MapclassCache
    


Method Summary
final protected  voidaddMaxUploadSize(String sizeString)
     Adds the given string as a maximum size to the form.
protected  voidcacheUnconvertedValue(String key, Object value)
    
protected  voidcustomInitMaxUploadSizes()
     Subclasses can override this to add their own max upload size to the list.
public  ObjectformatValue(Object value, String keypath, Class type)
     Tries to format the provided value by passing it to a suitable Formatter .
protected  ClassformatterClassForKeypath(String keypath)
     Retrieves any formatters associated specially with the keypath.
public  MapgetEncryptedProperties()
     Gets the encryptedProperties attribute.
protected  FormattergetFormatter(String keypath, Class propertyType)
     Retrieves a formatter for the keypath and property type.
public  MapgetFormatterTypes()
     Gets the formatterTypes attribute.
final protected  List<String>getMaxUploadSizes()
    
protected  ClassgetPropertyType(String keypath)
     Delegates to PropertyUtils.getPropertyType(ObjectString) to look up the property type for the provided keypath.
public  MapgetUnconvertedValues()
    
protected  ListgetUnknownKeys()
    
final protected  voidinitMaxUploadSizes()
     Initializes the list of max upload sizes if necessary.
public  voidpopulate(HttpServletRequest request)
     Populates the form with values from the current request.
public  voidpostprocessRequestParameters(Map requestParameters)
     Method is called after parameters from a multipart request have been made accessible to request.getParameter calls, but before request parameter values are used to instantiate and populate business objects.
public  voidprocessValidationFail()
    
public  voidsetEncryptedProperties(Map encryptedProperties)
     Sets the encryptedProperties attribute value.
public  voidsetFormatterType(String keypath, Class type)
     Sets the Formatter class to use for a given keypath.
public  voidsetFormatterTypes(Map formatterTypes)
     Sets the formatterTypes attribute value.
public  voidsetUnconvertedValues(Map unconvertedValues)
    

Field Detail
CONVERT_ERR_MSG
final static String CONVERT_ERR_MSG(Code)



CREATE_ERR_MSG
final static String CREATE_ERR_MSG(Code)



classCache
static Map classCache(Code)





Method Detail
addMaxUploadSize
final protected void addMaxUploadSize(String sizeString)(Code)
Adds the given string as a maximum size to the form. It will be used if a file upload is used.
Parameters:
  sizeString -



cacheUnconvertedValue
protected void cacheUnconvertedValue(String key, Object value)(Code)



customInitMaxUploadSizes
protected void customInitMaxUploadSizes()(Code)
Subclasses can override this to add their own max upload size to the list. Only the largest passed will be used.



formatValue
public Object formatValue(Object value, String keypath, Class type)(Code)
Tries to format the provided value by passing it to a suitable Formatter . Adds an ActionMessage to the ActionErrors in the request if a FormatException is thrown.

Caution should be used when invoking this method. It should never be called prior to PojoFormBase.populate(HttpServletRequest) because the cached request reference could be stale.




formatterClassForKeypath
protected Class formatterClassForKeypath(String keypath)(Code)
Retrieves any formatters associated specially with the keypath.
Parameters:
  keypath -



getEncryptedProperties
public Map getEncryptedProperties()(Code)
Gets the encryptedProperties attribute. Returns the encryptedProperties.



getFormatter
protected Formatter getFormatter(String keypath, Class propertyType)(Code)
Retrieves a formatter for the keypath and property type.
Parameters:
  keypath -
Parameters:
  propertyType -



getFormatterTypes
public Map getFormatterTypes()(Code)
Gets the formatterTypes attribute. Returns the formatterTypes.



getMaxUploadSizes
final protected List<String> getMaxUploadSizes()(Code)



getPropertyType
protected Class getPropertyType(String keypath) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException(Code)
Delegates to PropertyUtils.getPropertyType(ObjectString) to look up the property type for the provided keypath. Caches the resulting class so that subsequent lookups for the same keypath can be satisfied by looking in the cache.
throws:
  NoSuchMethodException -
throws:
  InvocationTargetException -
throws:
  IllegalAccessException -



getUnconvertedValues
public Map getUnconvertedValues()(Code)



getUnknownKeys
protected List getUnknownKeys()(Code)



initMaxUploadSizes
final protected void initMaxUploadSizes()(Code)
Initializes the list of max upload sizes if necessary.



populate
public void populate(HttpServletRequest request)(Code)
Populates the form with values from the current request. Uses instances of Formatter to convert strings to the Java types of the properties to which they are bound. Values that can't be converted are cached in a map of unconverted values. Returns an ActionErrors containing ActionMessage instances for each conversion error that occured, if any.



postprocessRequestParameters
public void postprocessRequestParameters(Map requestParameters)(Code)
Method is called after parameters from a multipart request have been made accessible to request.getParameter calls, but before request parameter values are used to instantiate and populate business objects. Important note: parameters in the given Map which were created from a multipart-encoded parameter will, apparently, be stored in the given Map as String[] instead of as String.
Parameters:
  requestParameters -



processValidationFail
public void processValidationFail()(Code)



setEncryptedProperties
public void setEncryptedProperties(Map encryptedProperties)(Code)
Sets the encryptedProperties attribute value.
Parameters:
  encryptedProperties - The encryptedProperties to set.



setFormatterType
public void setFormatterType(String keypath, Class type)(Code)
Sets the Formatter class to use for a given keypath. This class will be used by the form instead of the one returned by calls to Formatter.getFormatter(Class) , which is the default mechanism.



setFormatterTypes
public void setFormatterTypes(Map formatterTypes)(Code)
Sets the formatterTypes attribute value.
Parameters:
  formatterTypes - The formatterTypes to set.



setUnconvertedValues
public void setUnconvertedValues(Map unconvertedValues)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.