Source Code Cross Referenced for ItemFinderResultsAction.java in  » J2EE » Jaffa » org » jaffa » applications » test » modules » material » components » itemfinder » 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 » Jaffa » org.jaffa.applications.test.modules.material.components.itemfinder.ui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // .//GEN-BEGIN:_1_be
002:        package org.jaffa.applications.test.modules.material.components.itemfinder.ui;
003:
004:        import java.util.*;
005:        import org.apache.log4j.Logger;
006:        import org.apache.struts.action.ActionErrors;
007:        import org.jaffa.presentation.portlet.ActionBase;
008:        import org.jaffa.presentation.portlet.FormKey;
009:        import org.jaffa.exceptions.FrameworkException;
010:        import org.jaffa.exceptions.ApplicationExceptions;
011:        import org.jaffa.exceptions.ApplicationException;
012:        import org.jaffa.presentation.portlet.widgets.model.GridModel;
013:        import org.jaffa.presentation.portlet.widgets.model.GridModelRow;
014:
015:        // .//GEN-END:_1_be
016:        // Add additional imports//GEN-FIRST:_imports
017:
018:        // .//GEN-LAST:_imports
019:        // .//GEN-BEGIN:_2_be
020:        /** The Action class for handling events related to the Results screen.
021:         */
022:        public class ItemFinderResultsAction extends ActionBase {
023:            private static final Logger log = Logger
024:                    .getLogger(ItemFinderResultsAction.class);
025:
026:            // .//GEN-END:_2_be
027:            // .//GEN-BEGIN:_do_ModifySearch_Clicked_1_be
028:            /** Start a new search. This invokes the display() method on the component.
029:             * @return The FormKey for the Criteria screen.
030:             */
031:            public FormKey do_ModifySearch_Clicked() {
032:                FormKey fk = null;
033:                // .//GEN-END:_do_ModifySearch_Clicked_1_be
034:                // Add custom code before processing the action //GEN-FIRST:_do_ModifySearch_Clicked_1
035:
036:                // .//GEN-LAST:_do_ModifySearch_Clicked_1
037:                // .//GEN-BEGIN:_do_ModifySearch_Clicked_2_be
038:                ItemFinderResultsForm myForm = (ItemFinderResultsForm) form;
039:                ItemFinderComponent myComp = (ItemFinderComponent) myForm
040:                        .getComponent();
041:
042:                try {
043:                    // .//GEN-END:_do_ModifySearch_Clicked_2_be
044:                    // Add custom code before invoking the component //GEN-FIRST:_do_ModifySearch_Clicked_2
045:
046:                    // .//GEN-LAST:_do_ModifySearch_Clicked_2
047:                    // .//GEN-BEGIN:_do_ModifySearch_Clicked_3_be
048:                    fk = myComp.displayCriteria();
049:                } catch (ApplicationExceptions e) {
050:                    log.error(null, e);
051:                    myForm.raiseError(request, ActionErrors.GLOBAL_ERROR, e);
052:                } catch (FrameworkException e) {
053:                    log.error(null, e);
054:                    myForm.raiseError(request, ActionErrors.GLOBAL_ERROR,
055:                            "error.framework.general");
056:                }
057:                // .//GEN-END:_do_ModifySearch_Clicked_3_be
058:                // Add custom code after returning from the component //GEN-FIRST:_do_ModifySearch_Clicked_3
059:
060:                // .//GEN-LAST:_do_ModifySearch_Clicked_3
061:                // .//GEN-BEGIN:_do_ModifySearch_Clicked_4_be
062:                // Direct User back to current form
063:                if (fk == null)
064:                    fk = new FormKey(myForm.NAME, myComp.getComponentId());
065:                return fk;
066:            }
067:
068:            // .//GEN-END:_do_ModifySearch_Clicked_4_be
069:            // .//GEN-BEGIN:_do_Refresh_Clicked_1_be
070:            /** Re-executes the search, using the same criteria as used before.
071:             * @return The FormKey for the Results screen.
072:             */
073:            public FormKey do_Refresh_Clicked() {
074:                FormKey fk = null;
075:                // .//GEN-END:_do_Refresh_Clicked_1_be
076:                // Add custom code before processing the action //GEN-FIRST:_do_Refresh_Clicked_1
077:
078:                // .//GEN-LAST:_do_Refresh_Clicked_1
079:                // .//GEN-BEGIN:_do_Refresh_Clicked_2_be
080:                ItemFinderResultsForm myForm = (ItemFinderResultsForm) form;
081:                ItemFinderComponent myComp = (ItemFinderComponent) myForm
082:                        .getComponent();
083:
084:                try {
085:                    // .//GEN-END:_do_Refresh_Clicked_2_be
086:                    // Add custom code before invoking the component //GEN-FIRST:_do_Refresh_Clicked_2
087:
088:                    // .//GEN-LAST:_do_Refresh_Clicked_2
089:                    // .//GEN-BEGIN:_do_Refresh_Clicked_3_be
090:                    fk = myComp.displayResults();
091:                } catch (ApplicationExceptions e) {
092:                    log.error(null, e);
093:                    myForm.raiseError(request, ActionErrors.GLOBAL_ERROR, e);
094:                } catch (FrameworkException e) {
095:                    log.error(null, e);
096:                    myForm.raiseError(request, ActionErrors.GLOBAL_ERROR,
097:                            "error.framework.general");
098:                }
099:                // .//GEN-END:_do_Refresh_Clicked_3_be
100:                // Add custom code after returning from the component //GEN-FIRST:_do_Refresh_Clicked_3
101:
102:                // .//GEN-LAST:_do_Refresh_Clicked_3
103:                // .//GEN-BEGIN:_do_Refresh_Clicked_4_be
104:                // Direct User back to current form
105:                if (fk == null)
106:                    fk = new FormKey(myForm.NAME, myComp.getComponentId());
107:                return fk;
108:            }
109:
110:            // .//GEN-END:_do_Refresh_Clicked_4_be
111:            // .//GEN-BEGIN:_do_Close_Clicked_1_be
112:            /** Quits the component and returns the FormKey for the calling screen.
113:             * @return The FormKey for the caling screen. A null will be returned, if no calling screen was specified.
114:             */
115:            public FormKey do_Close_Clicked() {
116:                // .//GEN-END:_do_Close_Clicked_1_be
117:                // Add custom code before processing the action //GEN-FIRST:_do_Close_Clicked_1
118:
119:                // .//GEN-LAST:_do_Close_Clicked_1
120:                // .//GEN-BEGIN:_do_Close_Clicked_2_be
121:                return ((ItemFinderResultsForm) form).getComponent()
122:                        .quitAndReturnToCallingScreen();
123:            }
124:            // .//GEN-END:_do_Close_Clicked_2_be
125:            // All the custom code goes here //GEN-FIRST:_custom
126:
127:            // .//GEN-LAST:_custom
128:        }
w__w_w.j___ava__2s__.___c__om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.