Java Doc for BasePO.java in  » Search-Engine » snapper » org » enhydra » snapperPreviewer » presentation » 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 » Search Engine » snapper » org.enhydra.snapperPreviewer.presentation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.snapperPreviewer.presentation.BasePO

All known Subclasses:   org.enhydra.snapperPreviewer.presentation.DM_DownloadPO,  org.enhydra.snapperPreviewer.presentation.ShowPicture,  org.enhydra.snapperPreviewer.presentation.Preview,
BasePO
abstract public class BasePO implements HttpPresentation(Code)
Base abstract presentation class used for dynamic representation of particular java DOM generated objects. This class is super class for all presentation objects used in Versicherungsmathemathik application.


Field Summary
public static  StringENCODING
     Page Encoding definition.
protected  HttpPresentationCommscomms
     Storage for HttpPresentationComms object passed to presentation object.
 ExceptionerrorObj
     Exception which was thrown during the generationg of presentation object and which error message should be displayed in current form or passed to other form.
protected  StringerrorText
     Error passed from other page which should be shown on this page.
protected  StringinfoText
     Info passed from other page which should be shown on this page.
protected  intpageId
    
public static  StringparamDelimiter
     Argument is used as parameter delimiter in bundled parameters.


Method Summary
protected  voidaddHiddenInputField(String name, String value, HTMLElement root)
     Create hidden field.
protected  voidaddHiddenInputFields(String paramNamePrefix, HTMLElement root)
     Dynamicaly creates an array of input html fields and append they to the passed root html element.
protected  voidaddHiddenInputFields(String paramNamePrefix, HTMLElement root, String[] exludePrefix)
     Dynamicaly creates an array of input html fields and append they to the passed root html element.
public  voidclearError()
    
protected  HTMLInputElementcreateInputField(Hashtable attributes, Document document)
     Create custom field.
protected  StringformParameterList(String[] arg)
    
protected  ConfiggetAppConfiguration()
     Returns information about application configuration defined in config file via Config object.
protected  booleangetBoolParameter(String name)
     Read value of parameter from http request.
abstract protected  XMLObjectgetDOM()
     This abstract method should be overriden by presentation class, and it is responsible for generation of http response to user in form of XMLObject instance.
public  ExceptiongetError()
    
protected  StringgetFromURL(String searchPath)
     Find return page from search path.
protected  StringgetLevelUp(String searchPath)
     Method will make new search path,one level up.
protected  StringgetParamValue(String parameters, String paramName)
    
protected  StringgetReturnURL(String searchPath)
     Find return page from search path.
protected  StringgetStartSearchURL(String searchPath)
     Find start search page from search path.
public  booleanisIn(String searchVal, String[] definedGroup)
    
protected  voidlistAllParameters()
     Method is used to list all HTTP request parameters passed to presentation object, and their's corresponding values, to log file.
public static  voidprintFreeMemory(String prefix)
    
protected  String[]reformParameterList(String str)
    
public  voidremoveIdAttrFromTree(Node rootNode)
     Removes id attributes from given html tag (represented as Node implementation) and all it's sub tags.
public  voidrun(HttpPresentationComms comms)
     Implementation of run() method from HttpPresentation interface.
public  voidsetError(Exception err)
     Sets error withouth possibility of overriding already existed error.
public  voidsetError(Exception err, boolean override)
     Sets error with possibility of overriding already existed error.
public static  voidshow(String s)
    

Field Detail
ENCODING
public static String ENCODING(Code)
Page Encoding definition.



comms
protected HttpPresentationComms comms(Code)
Storage for HttpPresentationComms object passed to presentation object.



errorObj
Exception errorObj(Code)
Exception which was thrown during the generationg of presentation object and which error message should be displayed in current form or passed to other form.



errorText
protected String errorText(Code)
Error passed from other page which should be shown on this page.



infoText
protected String infoText(Code)
Info passed from other page which should be shown on this page.



pageId
protected int pageId(Code)
Page identification (unique on session level)



paramDelimiter
public static String paramDelimiter(Code)
Argument is used as parameter delimiter in bundled parameters.





Method Detail
addHiddenInputField
protected void addHiddenInputField(String name, String value, HTMLElement root)(Code)
Create hidden field.
Parameters:
  name -
Parameters:
  value -
Parameters:
  document - field
throws:
  HttpPresentationException -



addHiddenInputFields
protected void addHiddenInputFields(String paramNamePrefix, HTMLElement root) throws HttpPresentationException(Code)
Dynamicaly creates an array of input html fields and append they to the passed root html element. Input fields are created for correspond attribute values which are passed via http request parameteres, and are specified by theirs prefix.
Parameters:
  paramNamePrefix - prefix name for group of http request parameters (orfull name of one parameter) which values (or value) should be used forcreation input fielsd elements.



addHiddenInputFields
protected void addHiddenInputFields(String paramNamePrefix, HTMLElement root, String[] exludePrefix) throws HttpPresentationException(Code)
Dynamicaly creates an array of input html fields and append they to the passed root html element. Input fields are created for correspond attribute values which are passed via http request parameteres, and are specified by defined prefix group string with defined excluded prefix names.
Parameters:
  paramNamePrefix - prefix name for group of http request parameters (or full name of one parameter)which values (or value) should be used for creation input fielsd elements.
Parameters:
  exludePrefix - array with prefix names which have to be excluded from group of http requestparameters defined by paramNamePrefix attribute.



clearError
public void clearError()(Code)
Clears the current error



createInputField
protected HTMLInputElement createInputField(Hashtable attributes, Document document)(Code)
Create custom field.
Parameters:
  attributes -
Parameters:
  document - field
throws:
  HttpPresentationException -



formParameterList
protected String formParameterList(String[] arg)(Code)
Method used to form list of parameters delimited with delimiter
Parameters:
  arg - array of parameters and their values list of parameters delimited with delimiter



getAppConfiguration
protected Config getAppConfiguration()(Code)
Returns information about application configuration defined in config file via Config object. Config object which represents configuration file of VersMath application.



getBoolParameter
protected boolean getBoolParameter(String name)(Code)
Read value of parameter from http request.
Parameters:
  name - parameter name parameter value



getDOM
abstract protected XMLObject getDOM() throws Exception(Code)
This abstract method should be overriden by presentation class, and it is responsible for generation of http response to user in form of XMLObject instance. dynamically populated XMLObject generated as response to user http request.
throws:
  BaseException -



getError
public Exception getError()(Code)
Returns the current error



getFromURL
protected String getFromURL(String searchPath)(Code)
Find return page from search path.
Parameters:
  searchPath - return page ( one before last page in search path )



getLevelUp
protected String getLevelUp(String searchPath)(Code)
Method will make new search path,one level up.
Parameters:
  searchPath - searchPath new search path



getParamValue
protected String getParamValue(String parameters, String paramName)(Code)
Gets value of parameter, when parametrs are delimited with paramDelimiter
Parameters:
  parameters -
Parameters:
  paramName - value of parameter



getReturnURL
protected String getReturnURL(String searchPath)(Code)
Find return page from search path.
Parameters:
  searchPath - return page ( last page in search path )



getStartSearchURL
protected String getStartSearchURL(String searchPath)(Code)
Find start search page from search path.
Parameters:
  searchPath - start search page ( first page in search path )



isIn
public boolean isIn(String searchVal, String[] definedGroup)(Code)



listAllParameters
protected void listAllParameters()(Code)
Method is used to list all HTTP request parameters passed to presentation object, and their's corresponding values, to log file.



printFreeMemory
public static void printFreeMemory(String prefix)(Code)



reformParameterList
protected String[] reformParameterList(String str)(Code)
Method used to form array of parameters from string with parameters delimited with delimiter
Parameters:
  str - parameters delimited with delimiter array of parameters



removeIdAttrFromTree
public void removeIdAttrFromTree(Node rootNode)(Code)
Removes id attributes from given html tag (represented as Node implementation) and all it's sub tags.
Parameters:
  rootNode - tag in html which has to be examined.
exception:
  HttpPresentationException -



run
public void run(HttpPresentationComms comms) throws HttpPresentationException(Code)
Implementation of run() method from HttpPresentation interface.
Parameters:
  comms - object passed to presentation objects that contains HTTP andPresentation Manager access and control objects
exception:
  HttpPresentationException -



setError
public void setError(Exception err)(Code)
Sets error withouth possibility of overriding already existed error.
Parameters:
  err - BaseException error object



setError
public void setError(Exception err, boolean override)(Code)
Sets error with possibility of overriding already existed error.
Parameters:
  err - BaseException error object
Parameters:
  override - flag to indicate overriding (true) or rejecting of new error (false)



show
public static void show(String s)(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.