Java Doc for LookupComponent2.java in  » J2EE » Jaffa » org » jaffa » components » lookup » 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.components.lookup 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jaffa.components.finder.FinderComponent2
   org.jaffa.components.lookup.LookupComponent2

LookupComponent2
abstract public class LookupComponent2 extends FinderComponent2 (Code)
This is the base class for all Lookup components. It inherits the properties from FinderComponent. Additionally it has the following properties - 1- targetFields : This will have the target-fields to be set based on the selected values from the Lookup. 2- multiSelectLookupListeners : This will maintain the listeners to be notified when row(s) are selected in the Lookup. It has a convenience method, which should be called by the component's Action class to forward to the generic lookup jsp.
author:
   GautamJ


Field Summary
final public static  StringLOOKUP_ATTRIBUTE
     A constant used to pass the selected values to the Http Request stream.
final public static  StringMULTI_SELECT_CHECKBOX
     A constant used to store the CheckBoxModel for each row in the GridModel in the FormBean.


Method Summary
public  voidaddMultiSelectLookupListener(IMultiSelectLookupListener listener)
     Adds a listener.
protected  StringgetExcelFormName()
     This returns a null, since the Lookup components are not expected to serve up Excel content.
protected  CollectiongetMultiSelectLookupListeners()
     Returns a Collection of IMultiSelectLookupListener objects.
public  StringgetTargetFields()
     Getter for property targetFields.
protected  StringgetXmlFormName()
     This returns a null, since the Lookup components are not expected to serve up XML content.
protected  voidinvokeMultiSelectLookupListeners(MultiSelectLookupEvent event)
     Invokes the rowsSelected() method of the registered IMultiSelectLookupListener objects in the same thread.
public  booleanisInMultiSelectLookupMode()
     Returns a true if a MultiSelectLookupListener has been registered with this Lookup.
public  FormKeyperformLookup(HttpServletRequest request, IModelMap selectedRow)
     This will add the 'lookup' attribute on the request stream, with a Map containing the fieldnames (from the targetFields property) and values (from the input selectedRow). It will then invoke the quit() method on itself. Finally it will return a FormKey object for the generic lookup jsp.
Parameters:
  request - The HTTP request we are processing
Parameters:
  selectedRow - The row that gets selected on the Results screen.
public  FormKeyperformLookup(HttpServletRequest request, Map selectedRow)
     This will add the 'lookup' attribute on the request stream, with a Map containing the fieldnames (from the targetFields property) and values (from the input selectedRow). It will then invoke the quit() method on itself. Finally it will return a FormKey object for the generic lookup jsp.
Parameters:
  request - The HTTP request we are processing
Parameters:
  selectedRow - The row that gets selected on the Results screen.
public  FormKeyperformMultiSelectLookup(HttpServletRequest request, MultiSelectLookupEvent event)
     Invokes the rowsSelected() method of the registered IMultiSelectLookupListener objects in the same thread. It will then invoke the quitLookup() method.
Parameters:
  request - The HTTP request we are processing
Parameters:
  event - The event object containing the row(s) selected.
public  voidquit()
     This clears the internal collection of listeners.
public  FormKeyquitLookup(HttpServletRequest request)
     This will remove the 'lookup' attribute from the request stream.
public  booleanremoveMultiSelectLookupListener(IMultiSelectLookupListener listener)
     Removes a listener.
Parameters:
  listener - the listener.
public  voidsetTargetFields(String targetFields)
     Setter for property targetFields.

Field Detail
LOOKUP_ATTRIBUTE
final public static String LOOKUP_ATTRIBUTE(Code)
A constant used to pass the selected values to the Http Request stream.



MULTI_SELECT_CHECKBOX
final public static String MULTI_SELECT_CHECKBOX(Code)
A constant used to store the CheckBoxModel for each row in the GridModel in the FormBean.





Method Detail
addMultiSelectLookupListener
public void addMultiSelectLookupListener(IMultiSelectLookupListener listener)(Code)
Adds a listener.
Parameters:
  listener - the listener.



getExcelFormName
protected String getExcelFormName()(Code)
This returns a null, since the Lookup components are not expected to serve up Excel content. null.



getMultiSelectLookupListeners
protected Collection getMultiSelectLookupListeners()(Code)
Returns a Collection of IMultiSelectLookupListener objects. a Collection of IMultiSelectLookupListener objects.



getTargetFields
public String getTargetFields()(Code)
Getter for property targetFields. Value of property targetFields.



getXmlFormName
protected String getXmlFormName()(Code)
This returns a null, since the Lookup components are not expected to serve up XML content. null.



invokeMultiSelectLookupListeners
protected void invokeMultiSelectLookupListeners(MultiSelectLookupEvent event)(Code)
Invokes the rowsSelected() method of the registered IMultiSelectLookupListener objects in the same thread.
Parameters:
  event - The event object containing the row(s) selected.



isInMultiSelectLookupMode
public boolean isInMultiSelectLookupMode()(Code)
Returns a true if a MultiSelectLookupListener has been registered with this Lookup. The associated JSP will use this method to determine if multi-select capability is to be presented to the user. true if a MultiSelectLookupListener has been registered with this Lookup.



performLookup
public FormKey performLookup(HttpServletRequest request, IModelMap selectedRow)(Code)
This will add the 'lookup' attribute on the request stream, with a Map containing the fieldnames (from the targetFields property) and values (from the input selectedRow). It will then invoke the quit() method on itself. Finally it will return a FormKey object for the generic lookup jsp.
Parameters:
  request - The HTTP request we are processing
Parameters:
  selectedRow - The row that gets selected on the Results screen. a FormKey object for the generic lookup jsp.



performLookup
public FormKey performLookup(HttpServletRequest request, Map selectedRow)(Code)
This will add the 'lookup' attribute on the request stream, with a Map containing the fieldnames (from the targetFields property) and values (from the input selectedRow). It will then invoke the quit() method on itself. Finally it will return a FormKey object for the generic lookup jsp.
Parameters:
  request - The HTTP request we are processing
Parameters:
  selectedRow - The row that gets selected on the Results screen. a FormKey object for the generic lookup jsp.



performMultiSelectLookup
public FormKey performMultiSelectLookup(HttpServletRequest request, MultiSelectLookupEvent event)(Code)
Invokes the rowsSelected() method of the registered IMultiSelectLookupListener objects in the same thread. It will then invoke the quitLookup() method.
Parameters:
  request - The HTTP request we are processing
Parameters:
  event - The event object containing the row(s) selected. a FormKey object.



quit
public void quit()(Code)
This clears the internal collection of listeners. It then invokes the quit() method of the base class.



quitLookup
public FormKey quitLookup(HttpServletRequest request)(Code)
This will remove the 'lookup' attribute from the request stream. It will then invoke the quitAndReturnToCallingScreen() method, if MultiSelectLookupListener was registered. Otherwise it will quit() and return a FormKey object for the generic lookup jsp, which will close the browser.
Parameters:
  request - The HTTP request we are processing a FormKey object.



removeMultiSelectLookupListener
public boolean removeMultiSelectLookupListener(IMultiSelectLookupListener listener)(Code)
Removes a listener.
Parameters:
  listener - the listener. true if the listener was removed.



setTargetFields
public void setTargetFields(String targetFields)(Code)
Setter for property targetFields.
Parameters:
  targetFields - New value of property targetFields.



Fields inherited from org.jaffa.components.finder.FinderComponent2
final public static String ATTRIBUTE_EXPORT_TYPE_XML(Code)(Java Doc)
final public static String EXPORT_TYPE_EXCEL(Code)(Java Doc)
final public static String EXPORT_TYPE_WEB_PAGE(Code)(Java Doc)
final public static String EXPORT_TYPE_XML(Code)(Java Doc)

Methods inherited from org.jaffa.components.finder.FinderComponent2
protected void addSortCriteria(FinderInDto inputDto)(Code)(Java Doc)
public FormKey display() throws ApplicationExceptions, FrameworkException(Code)(Java Doc)
public FormKey displayCriteria() throws ApplicationExceptions, FrameworkException(Code)(Java Doc)
public FormKey displayResults() throws ApplicationExceptions, FrameworkException(Code)(Java Doc)
abstract protected FinderOutDto doInquiry() throws ApplicationExceptions, FrameworkException(Code)(Java Doc)
public Boolean getConsolidatedCriteriaAndResults()(Code)(Java Doc)
abstract protected String getConsolidatedCriteriaAndResultsFormName()(Code)(Java Doc)
public FormKey getCriteriaFormKey()(Code)(Java Doc)
abstract protected String getCriteriaFormName()(Code)(Java Doc)
public Boolean getDisplayResultsScreen()(Code)(Java Doc)
abstract protected String getExcelFormName()(Code)(Java Doc)
public String getExportType()(Code)(Java Doc)
public FinderOutDto getFinderOutDto()(Code)(Java Doc)
protected HeaderDto getHeaderDto()(Code)(Java Doc)
public Integer getMaxRecords()(Code)(Java Doc)
public FormKey getResultsFormKey()(Code)(Java Doc)
abstract protected String getResultsFormName()(Code)(Java Doc)
public String getSortDropDown()(Code)(Java Doc)
abstract protected String getXmlFormName()(Code)(Java Doc)
public void incrementMaxRecords()(Code)(Java Doc)
protected void initializeCriteriaScreen() throws ApplicationExceptions, FrameworkException(Code)(Java Doc)
public void performInquiry() throws ApplicationExceptions, FrameworkException(Code)(Java Doc)
public void setConsolidatedCriteriaAndResults(Boolean consolidatedCriteriaAndResults)(Code)(Java Doc)
public void setDisplayResultsScreen(Boolean displayResultsScreen)(Code)(Java Doc)
public void setExportType(String exportType)(Code)(Java Doc)
public void setMaxRecords(Integer maxRecords)(Code)(Java Doc)
public void setSortDropDown(String sortDropDown)(Code)(Java Doc)
protected void uncacheRowsModel()(Code)(Java Doc)
protected void updateMaxRecordsModel()(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.