| org.jaffa.presentation.portlet.FormBase org.jaffa.components.finder.FinderForm
All known Subclasses: org.jaffa.components.lookup.LookupForm,
FinderForm | abstract public class FinderForm extends FormBase (Code) | | This is the base class for all FinderComponent FormBeans.
It has the following properties to support the Criteria Screen -
1- sortDropDown : The sort criteria to use for the inquiry
2- exportType : The export option to use for the inquiry (initialized to regular Web Pages)
3- maxRecords: The maximum number of records to retrieve. This will be initialized to the first value in the option list.
It has the following properties to support the Results Screen -
1- rows : This GridModel object will be used for displaying the data in the Results screen
2- moreRecordsExist : This indicates if more records will be retrieved, if the query is done by using a higher value for the maxRecords dropdown.
A Finder FormBean will have to provide an implementation for the populateRows() method.
author: GautamJ |
Field Summary | |
final public static String | EXPORT_TYPE A global constant for the exportType widget. | final public static String | MAX_RECORDS A global constant for the maxRecords widget. | final public static String | ROWS A global constant for the rows widget. | final public static String | SORT_DROP_DOWN A global constant for the sortDropDown widget. |
EXPORT_TYPE | final public static String EXPORT_TYPE(Code) | | A global constant for the exportType widget.
|
MAX_RECORDS | final public static String MAX_RECORDS(Code) | | A global constant for the maxRecords widget.
|
ROWS | final public static String ROWS(Code) | | A global constant for the rows widget.
|
SORT_DROP_DOWN | final public static String SORT_DROP_DOWN(Code) | | A global constant for the sortDropDown widget.
|
doValidate | public boolean doValidate(HttpServletRequest request)(Code) | | This method should be invoked to ensure a valid state of the FormBean. It will validate the data in the models and set the corresponding properties.
Errors will be raised in the FormBean, if any validation fails.
Parameters: request - The request stream A true indicates validations went through successfully. |
getExportType | public String getExportType()(Code) | | Getter for property exportType.
Value of property exportType. |
getExportTypeWM | public RadioButtonModel getExportTypeWM()(Code) | | Getter for property exportType.
Value of property exportType. |
getMaxRecords | public Integer getMaxRecords()(Code) | | Getter for property maxRecords.
Value of property maxRecords. |
getMaxRecordsWM | public DropDownModel getMaxRecordsWM()(Code) | | Getter for DropDown property maxRecords.
Value of DropDown property maxRecords. |
getMoreRecordsExist | public boolean getMoreRecordsExist()(Code) | | Getter for property moreRecordsExist.
Value of property moreRecordsExist. |
getNumberOfRecords | public Long getNumberOfRecords()(Code) | | Getter for property numberOfRecords.
Value of property numberOfRecords. |
getRowsWM | public GridModel getRowsWM()(Code) | | Getter for property rows. This is invoked by the custom tag, when the jsp is rendered, to get the current value.
This gets the current data from the component.
Value of property userRef1. |
getSortDropDown | public String getSortDropDown()(Code) | | Getter for property sortDropDown.
Value of property sortDropDown. |
getSortDropDownWM | public DropDownModel getSortDropDownWM()(Code) | | Getter for DropDown property sortDropDown.
Value of DropDown property sortDropDown. |
populateRows | abstract public void populateRows(GridModel rows)(Code) | | The FormBean should provide an implementation for this method.
This will populate the input GridModel with the data in the finderOutDto of the Component.
Parameters: rows - The GridModel object to populate. |
setExportType | public void setExportType(String exportType)(Code) | | Setter for property exportType.
Parameters: exportType - New value of property exportType. |
setExportTypeWV | public void setExportTypeWV(String value)(Code) | | Setter for property exportType. This is invoked by the servlet, when a post is done on the Criteria screen.
Parameters: value - New value of property exportType. |
setMaxRecords | public void setMaxRecords(Integer maxRecords)(Code) | | Setter for property maxRecords.
Parameters: maxRecords - New value of property maxRecords. |
setMaxRecordsWV | public void setMaxRecordsWV(String value)(Code) | | Setter for DropDown property maxRecords. This is invoked by the servlet, when a post is done on the Criteria screen.
Parameters: value - New value of DropDown property maxRecords. |
setRowsWV | public void setRowsWV(String value)(Code) | | Setter for property rows. This is invoked by the servlet, when a post is done on the Results screen.
It sets the selected rows on the model.
Parameters: value - New value of property userRef1. |
setSortDropDown | public void setSortDropDown(String sortDropDown)(Code) | | Setter for property sortDropDown.
Parameters: sortDropDown - New value of property sortDropDown. |
setSortDropDownWV | public void setSortDropDownWV(String value)(Code) | | Setter for DropDown property sortDropDown. This is invoked by the servlet, when a post is done on the Criteria screen.
Parameters: value - New value of DropDown property sortDropDown. |
Methods inherited from org.jaffa.presentation.portlet.FormBase | public void cleanup()(Code)(Java Doc) public void clearErrors(HttpServletRequest request)(Code)(Java Doc) public Component getComponent()(Code)(Java Doc) public ActionErrors getErrors(HttpServletRequest request)(Code)(Java Doc) public WidgetCache getWidgetCache()(Code)(Java Doc) public boolean hasErrors(HttpServletRequest request)(Code)(Java Doc) public void initForm()(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, ActionError error)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, String key)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, String key, Object value0)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, String key, Object value0, Object value1)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, String key, Object value0, Object value1, Object value2)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, String key, Object value0, Object value1, Object value2, Object value3)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, String key, Object[] values)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, ApplicationException appExp)(Code)(Java Doc) public void raiseError(HttpServletRequest request, String property, ApplicationExceptions appExps)(Code)(Java Doc) public void reset(ActionMapping mapping, HttpServletRequest request)(Code)(Java Doc) public void setComponent(Component component)(Code)(Java Doc)
|
|
|