|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.apache.struts.actions.BaseAction org.apache.struts.actions.DispatchAction org.kuali.rice.kns.web.struts.action.KualiAction org.kuali.rice.kns.web.struts.action.KualiLookupAction org.kuali.rice.kns.web.struts.action.KualiMultipleValueLookupAction
public class KualiMultipleValueLookupAction
This class serves as the struts action for implementing multiple value lookups
Field Summary | |
---|---|
static int |
DEFAULT_MAX_ROWS_PER_PAGE
If there is no app param defined for the # rows/page, then this value will be used for the default |
Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiAction |
---|
FORM_ACTION, FORWARD_NEXT, FORWARD_TEXT_AREA_UPDATE, METHOD_TO_CALL, MODULE_LOCKED_MESSAGE, POST_TEXT_AREA_TO_PARENT, TEXT_AREA_FIELD_ANCHOR, TEXT_AREA_FIELD_LABEL, TEXT_AREA_FIELD_NAME, TEXT_AREA_MAX_LENGTH, TEXT_AREA_READ_ONLY |
Fields inherited from class org.apache.struts.actions.DispatchAction |
---|
clazz, log, methods, types |
Fields inherited from class org.apache.struts.actions.BaseAction |
---|
messages |
Fields inherited from class org.apache.struts.action.Action |
---|
servlet |
Constructor Summary | |
---|---|
KualiMultipleValueLookupAction()
|
Method Summary | |
---|---|
org.apache.struts.action.ActionForward |
cancel(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method overrides the super class cancel method because it is basically equivalent to clicking prepare to return none |
org.apache.struts.action.ActionForward |
clearValues(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
clearValues - clears the values of all the fields on the jsp. |
org.apache.struts.action.ActionForward |
export(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method prepares to export results. |
protected int |
getMaxRowsPerPage(MultipleValueLookupForm multipleValueLookupForm)
This method computes the max number of rows that should be rendered per page for a multiple value lookup. |
protected Collection |
performMultipleValueLookup(MultipleValueLookupForm multipleValueLookupForm,
List<ResultRow> resultTable,
int maxRowsPerPage,
boolean bounded)
This method performs the lookup and returns a collection of lookup items. |
protected List<ResultRow> |
prepareToExport(MultipleValueLookupForm multipleValueLookupForm)
This method performs the operations necessary for a multiple value lookup to export the rows via display tag Note: this method assumes that the export will be opened in a new browser window, therefore, persisting the selected checkboxes will not be needed. |
org.apache.struts.action.ActionForward |
prepareToReturnNone(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method returns none of the selected results and redirects back to the lookup caller. |
protected void |
prepareToReturnNone(MultipleValueLookupForm multipleValueLookupForm)
This method performs the operations necessary for a multiple value lookup to return no results to the calling page |
protected void |
prepareToReturnSelectedResultBOs(MultipleValueLookupForm multipleValueLookupForm)
This method performs the operations necessary for a multiple value lookup keep track of which results have been selected to be returned to the calling document. |
org.apache.struts.action.ActionForward |
prepareToReturnSelectedResults(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method does the processing necessary to return selected results and sends a redirect back to the lookup caller |
org.apache.struts.action.ActionForward |
search(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method performs the search, and will be responsible for persisting the results via the LookupResultsService. |
org.apache.struts.action.ActionForward |
selectAll(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method selects all results across all pages |
protected List<ResultRow> |
selectAll(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to select all of the results and rerender the page |
org.apache.struts.action.ActionForward |
sort(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method sorts a column. |
protected List<ResultRow> |
sort(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to sort results and rerender the page |
org.apache.struts.action.ActionForward |
switchToPage(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method switches to another page on a multi-value lookup |
protected List<ResultRow> |
switchToPage(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to switch to another page of results and rerender the page |
org.apache.struts.action.ActionForward |
unselectAll(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method unselects all results across all pages |
protected List<ResultRow> |
unselectAll(MultipleValueLookupForm multipleValueLookupForm,
int maxRowsPerPage)
This method performs the operations necessary for a multiple value lookup to unselect all of the results and rerender the page |
Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiLookupAction |
---|
checkAuthorization, customLookupableMethodCall, execute, refresh, start, supressActionsIfNeeded, viewResults |
Methods inherited from class org.apache.struts.actions.DispatchAction |
---|
cancelled, getMethod, getMethodName, getParameter, unspecified |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_ROWS_PER_PAGE
getMaxRowsPerPage(MultipleValueLookupForm)
,
Constant Field ValuesConstructor Detail |
---|
public KualiMultipleValueLookupAction()
Method Detail |
---|
public org.apache.struts.action.ActionForward search(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
search
in class KualiLookupAction
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
public org.apache.struts.action.ActionForward switchToPage(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
switchToPage
in interface KualiTableRenderAction
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
public org.apache.struts.action.ActionForward sort(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
sort
in interface KualiTableRenderAction
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
public org.apache.struts.action.ActionForward prepareToReturnSelectedResults(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
public org.apache.struts.action.ActionForward selectAll(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
public org.apache.struts.action.ActionForward unselectAll(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
public org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
cancel
in class KualiLookupAction
Exception
KualiLookupAction.cancel(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public org.apache.struts.action.ActionForward prepareToReturnNone(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
public org.apache.struts.action.ActionForward export(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping
- form
- must be an instance of MultipleValueLookupFormrequest
- response
-
Exception
protected Collection performMultipleValueLookup(MultipleValueLookupForm multipleValueLookupForm, List<ResultRow> resultTable, int maxRowsPerPage, boolean bounded)
multipleValueLookupForm
- resultTable
- a list of result rows (used to generate what's shown in the UI). This list will be modified by this methodmaxRowsPerPage
- bounded
- whether the results will be bounded
protected List<ResultRow> switchToPage(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm
- maxRowsPerPage
-
protected List<ResultRow> sort(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm
- maxRowsPerPage
-
protected void prepareToReturnSelectedResultBOs(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm
- protected void prepareToReturnNone(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm
- protected List<ResultRow> prepareToExport(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm
-
protected List<ResultRow> selectAll(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm
- maxRowsPerPage
-
public org.apache.struts.action.ActionForward clearValues(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
KualiLookupAction
clearValues
in class KualiLookupAction
IOException
javax.servlet.ServletException
protected List<ResultRow> unselectAll(MultipleValueLookupForm multipleValueLookupForm, int maxRowsPerPage)
multipleValueLookupForm
- maxRowsPerPage
-
protected int getMaxRowsPerPage(MultipleValueLookupForm multipleValueLookupForm)
multipleValueLookupForm
- the form
KRADConstants.SystemGroupParameterNames.MULTIPLE_VALUE_LOOKUP_RESULTS_PER_PAGE
,
DEFAULT_MAX_ROWS_PER_PAGE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |