| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.component.Component
org.jaffa.components.finder.FinderComponent2
org.jaffa.components.lookup.LookupComponent2
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.
| Field Summary | |
| static String | LOOKUP_ATTRIBUTEA constant used to pass the selected values to the Http Request stream. | 
| static String | MULTI_SELECT_CHECKBOXA constant used to store the CheckBoxModel for each row in the GridModel in the FormBean. | 
| Fields inherited from class org.jaffa.components.finder.FinderComponent2 | 
| ATTRIBUTE_EXPORT_TYPE_XML, EXPORT_TYPE_EXCEL, EXPORT_TYPE_WEB_PAGE, EXPORT_TYPE_XML | 
| Constructor Summary | |
| LookupComponent2() | |
| Method Summary | |
|  void | addMultiSelectLookupListener(IMultiSelectLookupListener listener)Adds a listener. | 
| protected  String | getExcelFormName()This returns a null, since the Lookup components are not expected to serve up Excel content. | 
| protected  Collection | getMultiSelectLookupListeners()Returns a Collection of IMultiSelectLookupListener objects. | 
|  String | getTargetFields()Getter for property targetFields. | 
| protected  String | getXmlFormName()This returns a null, since the Lookup components are not expected to serve up XML content. | 
| protected  void | invokeMultiSelectLookupListeners(MultiSelectLookupEvent event)Invokes the rowsSelected() method of the registered IMultiSelectLookupListener objects in the same thread. | 
|  boolean | isInMultiSelectLookupMode()Returns a true if a MultiSelectLookupListener has been registered with this Lookup. | 
|  FormKey | performLookup(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). | 
|  FormKey | performLookup(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). | 
|  FormKey | performMultiSelectLookup(HttpServletRequest request,
                                                 MultiSelectLookupEvent event)Invokes the rowsSelected() method of the registered IMultiSelectLookupListener objects in the same thread. | 
|  void | quit()This clears the internal collection of listeners. | 
|  FormKey | quitLookup(HttpServletRequest request)This will remove the 'lookup' attribute from the request stream. | 
|  boolean | removeMultiSelectLookupListener(IMultiSelectLookupListener listener)Removes a listener. | 
|  void | setTargetFields(String targetFields)Setter for property targetFields. | 
| Methods inherited from class org.jaffa.presentation.portlet.component.Component | 
| addChildComponent, addFormKeyChangeListener, 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 | 
public static final String LOOKUP_ATTRIBUTE
public static final String MULTI_SELECT_CHECKBOX
| Constructor Detail | 
public LookupComponent2()
| Method Detail | 
public String getTargetFields()
public void setTargetFields(String targetFields)
targetFields - New value of property targetFields.public void addMultiSelectLookupListener(IMultiSelectLookupListener listener)
listener - the listener.public boolean removeMultiSelectLookupListener(IMultiSelectLookupListener listener)
listener - the listener.
public boolean isInMultiSelectLookupMode()
protected String getExcelFormName()
getExcelFormName in class FinderComponent2protected String getXmlFormName()
getXmlFormName in class FinderComponent2public void quit()
quit in interface IComponentquit in class Componentpublic FormKey quitLookup(HttpServletRequest request)
request - The HTTP request we are processing
public FormKey performMultiSelectLookup(HttpServletRequest request,
                                        MultiSelectLookupEvent event)
request - The HTTP request we are processingevent - The event object containing the row(s) selected.
public FormKey performLookup(HttpServletRequest request,
                             IModelMap selectedRow)
request - The HTTP request we are processingselectedRow - The row that gets selected on the Results screen.
public FormKey performLookup(HttpServletRequest request,
                             Map selectedRow)
request - The HTTP request we are processingselectedRow - The row that gets selected on the Results screen.
protected Collection getMultiSelectLookupListeners()
protected void invokeMultiSelectLookupListeners(MultiSelectLookupEvent event)
event - The event object containing the row(s) selected.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||