Java Doc for WPagelet.java in  » Database-ORM » SimpleORM » simpleorm » simplewebapp » core » 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 » Database ORM » SimpleORM » simpleorm.simplewebapp.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   simpleorm.simplewebapp.core.WPageEvents
      simpleorm.simplewebapp.core.WPagelet

All known Subclasses:   simpleorm.simplewebapp.dbute.WGenericCrudPagelet,  simpleorm.simplewebapp.core.WPageletList,
WPagelet
public class WPagelet extends WPageEvents (Code)
A page is composed of multiple pagelets that represent things like a Tree or a Crud section. So a Tree/Crud page consists of two pagelets.

Simple HTML really works one page at a time, so pagelets are kept simple. For example, the namespaces of their fields overlaps to be simple HTML field names. If you are trying to do something too clever with pagelets try just using multiple pages.

See WPageEvents for details of how the events are fired and grouped together.



Field Summary
 LinkedHashMap<String, WField>allFields
     List of all fields in all groups, handy short cut.
 Map<String, WField>allFieldsStrict
    
 LinkedHashMap<String, WFieldGroup>fieldGroups
    
 Stringname
     Name of the pagelet, eg.
 StringpotentialSuccessUrl
     Where to redirect to if our form was successfully processed.
 WPagewPage
    

Constructor Summary
public  WPagelet(WPage wpage, String name)
     Registers itself with page.

Method Summary
public  FaddField(WFieldGroup group, F field)
     Adds field to the group AND the entire page.
public  GaddGroup(WPagelet pagelet, G group)
    
public  WButtonaddNewButton(String nameValue)
    
public  voiddebug(String msg)
     Convenience logger().debug() method. Be sure to use if loger().isDebug guards for anything effecient sensitive.
 voiddetermineSuccessUrl()
    
public  Collection<WField>getAllFieldValues()
     The collection of fields; (strictness irrelevant).
public  Map<String, WField>getAllFieldsNull()
     Get map of all fields.
public  Map<String, WField>getAllFieldsStrict()
    
public  WFieldGroupgetFieldGroup(String groupName)
     Returns field group, exception if not found.
public  Map<String, WFieldGroup>getFieldGroups()
    
public  Collection<WFieldGroup>getFieldGroupsValues()
    
public  WFieldgetFieldStrict(String shortName)
     Returns field named name, exception if not found.
public  StringgetName()
    
public  WPagegetPage()
    
public  WPageStructuregetPageStructure()
    
public  StringgetPotentialSuccessUrl()
    
public  WButtongetSubmitButton()
    
public  booleanisErroneous()
     Indicates that an unhandled WValidationException was thrown by this pageLET. Mainly used in onWasMaybeErroreous overrides.
public  WLoglogger()
    
public  voidnullAllFields()
     Nulls all fields on this pagelet.
 voidonFinalizeInternal()
    
protected  voidretrieveParameters()
     Does into crudFields (Regardless of wheter the form wasSubmitted -- gets and posts.) Determines non-submit referer.
public  voidsetPotentialSuccessUrl(String potentialSuccessUrl)
    
public  StringtoString()
    
 voidvalidateFields()
     Calls validators, building up errors List.
public  booleanwasSubmitted()
     True if the form has been submitted, and thus should be validated and then redirected etc.

Field Detail
allFields
LinkedHashMap<String, WField> allFields(Code)
List of all fields in all groups, handy short cut.



allFieldsStrict
Map<String, WField> allFieldsStrict(Code)
This weird structure is needed so that JSPs will return errors for ${wPage.fields.myFieldOopsxyz} (Jsps will only access a Map, not a method with a parameter.)



fieldGroups
LinkedHashMap<String, WFieldGroup> fieldGroups(Code)



name
String name(Code)
Name of the pagelet, eg. "list" or "crud". Used by tag libraries such as esgp:autoCrud to identify the correct the correct pagelet. (Not the name of the page itself, eg. WCustomerPage.)



potentialSuccessUrl
String potentialSuccessUrl(Code)
Where to redirect to if our form was successfully processed. (Normally the List form that called the Crud form.) See WPage.actualRedirectUrl.



wPage
WPage wPage(Code)




Constructor Detail
WPagelet
public WPagelet(WPage wpage, String name)(Code)
Registers itself with page. Note that this MUST be in the constructor, not a separate register() method, so that things like buttons can be conveniently added to the page in constructors.




Method Detail
addField
public F addField(WFieldGroup group, F field)(Code)
Adds field to the group AND the entire page.



addGroup
public G addGroup(WPagelet pagelet, G group)(Code)



addNewButton
public WButton addNewButton(String nameValue)(Code)



debug
public void debug(String msg)(Code)
Convenience logger().debug() method. Be sure to use if loger().isDebug guards for anything effecient sensitive.



determineSuccessUrl
void determineSuccessUrl()(Code)



getAllFieldValues
public Collection<WField> getAllFieldValues()(Code)
The collection of fields; (strictness irrelevant).



getAllFieldsNull
public Map<String, WField> getAllFieldsNull()(Code)
Get map of all fields. get(key) on that map returns null if key not found, as normal. cf.getAllFieldsStrict.



getAllFieldsStrict
public Map<String, WField> getAllFieldsStrict()(Code)



getFieldGroup
public WFieldGroup getFieldGroup(String groupName)(Code)
Returns field group, exception if not found.



getFieldGroups
public Map<String, WFieldGroup> getFieldGroups()(Code)



getFieldGroupsValues
public Collection<WFieldGroup> getFieldGroupsValues()(Code)
This must be a one step method to work arround bugs in JSP/EL



getFieldStrict
public WField getFieldStrict(String shortName)(Code)
Returns field named name, exception if not found. Can be useful for generated fields, but normally just use WField variables instead.



getName
public String getName()(Code)



getPage
public WPage getPage()(Code)



getPageStructure
public WPageStructure getPageStructure()(Code)



getPotentialSuccessUrl
public String getPotentialSuccessUrl()(Code)



getSubmitButton
public WButton getSubmitButton()(Code)



isErroneous
public boolean isErroneous()(Code)
Indicates that an unhandled WValidationException was thrown by this pageLET. Mainly used in onWasMaybeErroreous overrides.



logger
public WLog logger()(Code)



nullAllFields
public void nullAllFields()(Code)
Nulls all fields on this pagelet. Called after successful crud submit. Needed for ListPage where we don't actually redirect.



onFinalizeInternal
void onFinalizeInternal() throws Exception(Code)



retrieveParameters
protected void retrieveParameters()(Code)
Does into crudFields (Regardless of wheter the form wasSubmitted -- gets and posts.) Determines non-submit referer.



setPotentialSuccessUrl
public void setPotentialSuccessUrl(String potentialSuccessUrl)(Code)



toString
public String toString()(Code)



validateFields
void validateFields() throws Exception(Code)
Calls validators, building up errors List. Multiple errors are supported, but only one per field.



wasSubmitted
public boolean wasSubmitted()(Code)
True if the form has been submitted, and thus should be validated and then redirected etc.



Methods inherited from simpleorm.simplewebapp.core.WPageEvents
protected void onFinalize() throws Exception(Code)(Java Doc)
void onFinalizeInternal() throws Exception(Code)(Java Doc)
protected void onInitialize() throws Exception(Code)(Java Doc)
protected boolean onListRow() throws Exception(Code)(Java Doc)
protected void onMaybeErroneous() throws Exception(Code)(Java Doc)
protected void onNotSubmitted() throws Exception(Code)(Java Doc)
protected void onPostMaybeSubmitted() throws Exception(Code)(Java Doc)
protected void onPreMaybeSubmitted() throws Exception(Code)(Java Doc)
protected void onPreValidate() throws Exception(Code)(Java Doc)
protected void onWasSubmitted() throws Exception(Code)(Java Doc)

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.