Java Doc for AutoControllerElement.java in  » J2EE » Expresso » com » jcorporate » expresso » services » controller » ui » 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 » J2EE » Expresso » com.jcorporate.expresso.services.controller.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.services.controller.ui.AutoControllerElement

All known Subclasses:   com.jcorporate.expresso.services.controller.ui.DefaultAutoElement,
AutoControllerElement
public interface AutoControllerElement (Code)
This interface is for objects that provide an automatic rendering capability to the system. It's in sort of a way a bridge between DBObjects and ControllerElements
author:
   Michael Rimov, portions from Adam Rossi, Michael Nash, Shash Chatterjee
since:
   Expresso 5.0




Method Summary
public  BlockcreateDBObjectBlock(ControllerRequest request, ControllerResponse response, DataObject dbobj)
     Creates a DBObject Block that contains all the non-secret fields for the DBObject.
public  BlockcreateDBObjectBlock(ControllerRequest request, ControllerResponse response, String title, DataObject dbobj)
     Creates a DBObject Block that contains all the non-secret fields for the DBObject.
Parameters:
  response - a ControllerResponse Object
Parameters:
  request - The ControllerRequest Object
Parameters:
  title - The title to give this block.
public  StringgetErrorStyle()
     Allows for easy overriding fo the style name for special customization.
public  StringgetNormalStyle()
    
public  StringgetRequiredStyle()
     Allows for easy overriding fo the style name for special customization.
public  DataObjectparseBlock(ControllerRequest request, DataObject oneObject, ErrorCollection ec)
     Convienence method if you only expect one DBObject to be returned from a particular form.
public  DataObject[]parseBlocks(ControllerRequest request, DataObject[] theObjects, ErrorCollection ec)
     Parses the appropriate DBObject from the block.
public  DataObjectparseDBObject(ControllerRequest request, DataObject oneObject, ErrorCollection ec)
     Convienence method if you only expect one DBObject to be returned from a particular form, and unlike the ParseBlock, there is no DBOBject name prefix attached to the parameter names.
public  DataObjectparseDBObject(ControllerRequest request, DataObject oneObject, ErrorCollection ec, boolean validate)
    
public  StringparseSingleInput(ControllerRequest request, DataObject dbobj, String fieldName, String parameterName, ErrorCollection ec)
     Takes the Controller Request and appropriately parses a string for a particular field.
public  InputrenderDBObjectField(ControllerResponse response, DataObject dbobj, String fieldName, String defaultValue, boolean readOnly)
     Renders an Input in a update method per field name.
Parameters:
  response - a ControllerResponse Object
Parameters:
  dbobj - A DBObject to transform into an Input
Parameters:
  fieldName - the name of the field to render
Parameters:
  defaultValue - the default value to use in the field
Parameters:
  readOnly - true if the Input should be a read only input.



Method Detail
createDBObjectBlock
public Block createDBObjectBlock(ControllerRequest request, ControllerResponse response, DataObject dbobj) throws ControllerException(Code)
Creates a DBObject Block that contains all the non-secret fields for the DBObject. The Block will have a nested Output that matches DBObject's description unless one is not supplied in which case the nested Output will have the title "Untitled"
Parameters:
  response - a ControllerResponse Object
Parameters:
  request - The ControllerRequest Object
Parameters:
  dbobj - The dbObject to automatically render. an instantiated DBObject block based upon the parameters
throws:
  ControllerException - if there's an error rendering the DBObject



createDBObjectBlock
public Block createDBObjectBlock(ControllerRequest request, ControllerResponse response, String title, DataObject dbobj) throws ControllerException(Code)
Creates a DBObject Block that contains all the non-secret fields for the DBObject.
Parameters:
  response - a ControllerResponse Object
Parameters:
  request - The ControllerRequest Object
Parameters:
  title - The title to give this block. The system renders a nestedOutput called "block-title" for the block that contains this data.
Parameters:
  dbobj - The dbObject to automatically render. an instantiated DBObject block based upon the parameters
throws:
  ControllerException - if there's an error rendering the DBObject



getErrorStyle
public String getErrorStyle() throws ControllerException(Code)
Allows for easy overriding fo the style name for special customization. the class name that is used for error conditions.



getNormalStyle
public String getNormalStyle() throws ControllerException(Code)
Allows for easy overriding of the style name for special customization a String naming the CSS class to use under normal circumstanes.



getRequiredStyle
public String getRequiredStyle() throws ControllerException(Code)
Allows for easy overriding fo the style name for special customization. a String naming the CSS class to use to render required fields.



parseBlock
public DataObject parseBlock(ControllerRequest request, DataObject oneObject, ErrorCollection ec) throws ControllerException(Code)
Convienence method if you only expect one DBObject to be returned from a particular form.
Parameters:
  request - The ControllerRequest object handed down by the framework
Parameters:
  oneObject - A single DBObject to fill into fill out from the block.
Parameters:
  ec - An instantiated ErrorCollection that is filled in with any error an instatiated DBObject
throws:
  ControllerException - if there's an error parsing the block or communicatingwith the underlying DBObject
throws:
  IllegalArgumentException - if request, DBObjectNames, or ec is null



parseBlocks
public DataObject[] parseBlocks(ControllerRequest request, DataObject[] theObjects, ErrorCollection ec) throws ControllerException(Code)
Parses the appropriate DBObject from the block. Returns the fully constructed DBOBject including any errors in the DBObject
Parameters:
  request - The ControllerRequest object handed down by the framework
Parameters:
  theObjects - A pre-instantiated group of DBObjects in which you expectto have the fields overwritten/filled. By using instantiated DBObjects,you can pre-fill any potentially blank fields and thus remove any Errors.
Parameters:
  ec - An instantiated ErrorCollection that is filled in with any error an array of DBObjects
throws:
  ControllerException - if there's an error parsing the block or communicatingwith the underlying DBObject



parseDBObject
public DataObject parseDBObject(ControllerRequest request, DataObject oneObject, ErrorCollection ec) throws ControllerException(Code)
Convienence method if you only expect one DBObject to be returned from a particular form, and unlike the ParseBlock, there is no DBOBject name prefix attached to the parameter names. This is similar to the ControllerRequest validateDBObject functionality, but we're consolodating things here.
Parameters:
  request - The ControllerRequest object handed down by the framework
Parameters:
  oneObject - a Single DBObject to fill out.
Parameters:
  ec - An instantiated ErrorCollection that is filled in with any error an instatiated DBObject
throws:
  ControllerException - if there's an error parsing the block or communicatingwith the underlying DBObject
throws:
  IllegalArgumentException - if request, DBObjectNames, or ec is null



parseDBObject
public DataObject parseDBObject(ControllerRequest request, DataObject oneObject, ErrorCollection ec, boolean validate) throws ControllerException(Code)



parseSingleInput
public String parseSingleInput(ControllerRequest request, DataObject dbobj, String fieldName, String parameterName, ErrorCollection ec) throws ControllerException(Code)
Takes the Controller Request and appropriately parses a string for a particular field. If the field is a Date, then it parses it as such, if it is money, then it perses it as such. Etc.
Parameters:
  request - the ControllerRequest object
Parameters:
  fieldName - the name of the field to parse
Parameters:
  dbobj - The DBObject for which we're going to put the field to
Parameters:
  parameterName - The name of the http paramter to parse May be nullin which case, the funciton will by default use the fieldName as theparameter name.
Parameters:
  ec - An instantiated ErrorCollection object that gets filled outby the function. an properly parsed String
throws:
  ControllerException - if there's an error parsing the block or communicatingwith the underlying DBObject



renderDBObjectField
public Input renderDBObjectField(ControllerResponse response, DataObject dbobj, String fieldName, String defaultValue, boolean readOnly) throws ControllerException(Code)
Renders an Input in a update method per field name.
Parameters:
  response - a ControllerResponse Object
Parameters:
  dbobj - A DBObject to transform into an Input
Parameters:
  fieldName - the name of the field to render
Parameters:
  defaultValue - the default value to use in the field
Parameters:
  readOnly - true if the Input should be a read only input. an instantiated Input object



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