org.jaffa.components.lookup
Class LookupAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.jaffa.presentation.portlet.ActionBase
          extended byorg.jaffa.components.finder.FinderAction
              extended byorg.jaffa.components.lookup.LookupAction

public class LookupAction
extends FinderAction

This is the base class for all LookupComponent Actions. It extends the FinderAction.

Author:
GautamJ

Field Summary
 
Fields inherited from class org.jaffa.presentation.portlet.ActionBase
component, form, mapping, request, response
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
LookupAction()
           
 
Method Summary
 FormKey do_Close_Clicked()
          Quits the component and closes the browser window.
 FormKey do_MultiSelect_Clicked()
          This will generate the MultiSelectLookupEvent object comprising the DTOs for the selected rows.
 FormKey do_Rows_Clicked(String rowNum)
          Invokes the do_Rows_Select_Clicked() method.
 FormKey do_Rows_Select_Clicked(String rowNum)
          This will add the 'lookup' attribute on the request stream, with a Map containing the fieldnames (from the targetFields property) and values (from the selectedRow).
 
Methods inherited from class org.jaffa.components.finder.FinderAction
do_ModifySearch_Clicked, do_MoreRecords_Clicked, do_Refresh_Clicked, do_refresh, do_Search_Clicked
 
Methods inherited from class org.jaffa.presentation.portlet.ActionBase
defaultAction, determineCurrentFormKey, do_HistoryNav_Clicked, execute, executeEvent, handleNullFormKey, isTokenValid, isTokenValid, parseFormName, performTokenValidation, processContainerFormKey, resetToken, saveToken
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, perform, perform, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupAction

public LookupAction()
Method Detail

do_Close_Clicked

public FormKey do_Close_Clicked()
Quits the component and closes the browser window. This method overrides the 'Close' handler of the base class.

Overrides:
do_Close_Clicked in class FinderAction
Returns:
The FormKey object for the generic lookup jsp.

do_Rows_Clicked

public FormKey do_Rows_Clicked(String rowNum)
Invokes the do_Rows_Select_Clicked() method.

Parameters:
rowNum - The selected row on the Results screen.
Returns:
The FormKey for the generic lookup jsp.

do_Rows_Select_Clicked

public FormKey do_Rows_Select_Clicked(String rowNum)
This will add the 'lookup' attribute on the request stream, with a Map containing the fieldnames (from the targetFields property) and values (from the selectedRow). It will then invoke the quit() method on the component. Finally it will return a FormKey object for the generic lookup jsp.

Parameters:
rowNum - The selected row on the Results screen.
Returns:
The FormKey for the generic lookup jsp.

do_MultiSelect_Clicked

public FormKey do_MultiSelect_Clicked()
This will generate the MultiSelectLookupEvent object comprising the DTOs for the selected rows. It will then invoke the performMultiSelectLookup() method on the component.

Returns:
The FormKey for the calling screen.


Copyright © 2002-2004 JAFFA Project.