org.jaffa.components.lookup
Class LookupComponent

java.lang.Object
  extended byorg.jaffa.presentation.portlet.component.Component
      extended byorg.jaffa.components.finder.FinderComponent
          extended byorg.jaffa.components.lookup.LookupComponent
All Implemented Interfaces:
IComponent

Deprecated. This class is required by the object_lookup_1_0 pattern. The object_lookup_2_0 pattern has made this class redundant.

public abstract class LookupComponent
extends FinderComponent

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. 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
static String LOOKUP_ATTRIBUTE
          Deprecated. A constant used to pass the selected values to the Http Request stream.
 
Fields inherited from class org.jaffa.components.finder.FinderComponent
ATTRIBUTE_EXPORT_TYPE_XML, EXPORT_TYPE_EXCEL, EXPORT_TYPE_WEB_PAGE, EXPORT_TYPE_XML
 
Constructor Summary
LookupComponent()
          Deprecated.  
 
Method Summary
 String getTargetFields()
          Deprecated. Getter for property targetFields.
 FormKey performLookup(HttpServletRequest request, IModelMap selectedRow)
          Deprecated. 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).
 FormKey performLookup(HttpServletRequest request, Map selectedRow)
          Deprecated. 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).
 FormKey quitLookup(HttpServletRequest request)
          Deprecated. This will remove the 'lookup' attribute from the request stream.
 void setTargetFields(String targetFields)
          Deprecated. Setter for property targetFields.
 
Methods inherited from class org.jaffa.components.finder.FinderComponent
addSortCriteria, getDisplayResultsScreen, getExportType, getFinderListener, getHeaderDto, getMaxRecords, getSortDropDown, incrementMaxRecords, invokeFinderListener, invokeFinderListener, quit, setDisplayResultsScreen, setExportType, setFinderListener, setMaxRecords, setSortDropDown
 
Methods inherited from class org.jaffa.presentation.portlet.component.Component
addChildComponent, addFormKeyChangeListener, display, getComponentDefinition, getComponentId, getContainerFormKey, getFormKeyChangeListeners, getReturnToFormKey, getToken, getUserSession, isActive, quitAndReturnToCallingScreen, reflectAndSetParms, removeFormKeyChangeListener, returnChildComponents, returnLastActivityDate, run, setContainerFormKey, setReturnToFormKey, setToken, updateLastActivityDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOOKUP_ATTRIBUTE

public static final String LOOKUP_ATTRIBUTE
Deprecated. 
A constant used to pass the selected values to the Http Request stream.

See Also:
Constant Field Values
Constructor Detail

LookupComponent

public LookupComponent()
Deprecated. 
Method Detail

getTargetFields

public String getTargetFields()
Deprecated. 
Getter for property targetFields.

Returns:
Value of property targetFields.

setTargetFields

public void setTargetFields(String targetFields)
Deprecated. 
Setter for property targetFields.

Parameters:
targetFields - New value of property targetFields.

performLookup

public FormKey performLookup(HttpServletRequest request,
                             IModelMap selectedRow)
Deprecated. 
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
selectedRow - The row that gets selected on the Results screen.
Returns:
a FormKey object for the generic lookup jsp.

performLookup

public FormKey performLookup(HttpServletRequest request,
                             Map selectedRow)
Deprecated. 
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
selectedRow - The row that gets selected on the Results screen.
Returns:
a FormKey object for the generic lookup jsp.

quitLookup

public FormKey quitLookup(HttpServletRequest request)
Deprecated. 
This will remove the 'lookup' attribute from the request stream. It will then invoke the quit() method on itself. Finally it will return a FormKey object for the generic lookup jsp, which will close the browser.

Parameters:
request - The HTTP request we are processing
Returns:
a FormKey object for the generic lookup jsp.


Copyright © 2002-2004 JAFFA Project.