abstractpublic class FinderComponent extends Component(Code)
This is the base class for all Finder components.
It has the following properties -
1- displayResultsScreen : If set to true, then the Results screen will directly brought up, bypassing the Criteria screen.
2- sortDropDown : The sort criteria to use for the inquiry
3- exportType : The export option to use for the inquiry (initialized to regular Web Pages)
4- maxRecords: The maximum number of records to retrieve. All records will be retrieved, if no value is specified.
5- finderListener : The Listener object, which will refresh the Results screen, on a new inquiry
6- headerDto : This is a convenience property to pass to Tx, where required
author: GautamJ
ATTRIBUTE_EXPORT_TYPE_XML This request stream attribute is set by a FinderCriteriaForm, after a query, and if the exportType is XML.
The ResultsJsp will use display the XML stored by this attribute.
incrementMaxRecords() This will set the property 'maxRecords' to the value following the current one, in the list of values returned by CriteriaDropDownOptions.getMaxRecordsDropDownOptions().
protected void
invokeFinderListener() Invokes the inquiryDone() method of the registered IFinderListener object in the same thread.
protected void
invokeFinderListener(EventObject eventObject) Invokes the inquiryDone() method of the registered IFinderListener object in the same thread.
public void
quit() This clears the listener and then invokes the quit() method of the base class.
final public static String ATTRIBUTE_EXPORT_TYPE_XML(Code)
This request stream attribute is set by a FinderCriteriaForm, after a query, and if the exportType is XML.
The ResultsJsp will use display the XML stored by this attribute.
EXPORT_TYPE_EXCEL
final public static String EXPORT_TYPE_EXCEL(Code)
A global constant for the Excel export option.
EXPORT_TYPE_WEB_PAGE
final public static String EXPORT_TYPE_WEB_PAGE(Code)
Interprets the value of the 'sortDropDown' property adding suitable values to the input Dto.
Parameters: inputDto - The Dto to which the orderby fields will be added.
This will set the property 'maxRecords' to the value following the current one, in the list of values returned by CriteriaDropDownOptions.getMaxRecordsDropDownOptions().
Invokes the inquiryDone() method of the registered IFinderListener object in the same thread.
Parameters: eventObject - The EventObject which will probably contain the component itself.