uk.ac.ebi.intact.application.hierarchView.struts.view
Class SearchForm
java.lang.Object
|
+--org.apache.struts.action.ActionForm
|
+--uk.ac.ebi.intact.application.hierarchView.struts.framework.IntactBaseForm
|
+--uk.ac.ebi.intact.application.hierarchView.struts.view.SearchForm
- All Implemented Interfaces:
- java.io.Serializable
- public final class SearchForm
- extends IntactBaseForm
Form bean for the main form of the view.jsp page.
This form has the following fields, with default values in square brackets:
- queryString - Entered queryString value
- method - Selected method value
- Version:
- $Id: SearchForm.java,v 1.6 2003/11/13 14:15:34 skerrien Exp $
- Author:
- Samuel Kerrien (skerrien@ebi.ac.uk)
- See Also:
- Serialized Form
|
Field Summary |
static org.apache.log4j.Logger |
logger
|
| Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
|
Method Summary |
boolean |
addSelected()
True if Add button is pressed. |
java.lang.String |
getAction()
|
java.lang.String |
getMethod()
|
java.lang.String |
getQueryString()
|
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values. |
boolean |
searchSelected()
True if Search button is pressed. |
void |
setAction(java.lang.String action)
Sets the action. |
void |
setMethod(java.lang.String method)
|
void |
setQueryString(java.lang.String queryString)
|
java.lang.String |
toString()
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Validate the properties that have been set from this HTTP request,
and return an ActionErrors object that encapsulates any
validation errors that have been found. |
| Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
public static org.apache.log4j.Logger logger
SearchForm
public SearchForm()
setAction
public void setAction(java.lang.String action)
- Sets the action.
- Parameters:
action - the action for the form. If this contains the word
'AC' then the search is by AC otherwise the search is by label.
getAction
public java.lang.String getAction()
getQueryString
public java.lang.String getQueryString()
setQueryString
public void setQueryString(java.lang.String queryString)
getMethod
public java.lang.String getMethod()
setMethod
public void setMethod(java.lang.String method)
searchSelected
public boolean searchSelected()
- True if Search button is pressed.
addSelected
public boolean addSelected()
- True if Add button is pressed.
reset
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Reset all properties to their default values.
- Overrides:
reset in class org.apache.struts.action.ActionForm
- Parameters:
mapping - The mapping used to select this instancerequest - The servlet request we are processing
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Validate the properties that have been set from this HTTP request,
and return an
ActionErrors object that encapsulates any
validation errors that have been found. If no errors are found, return
null or an ActionErrors object with no
recorded error messages.
- Overrides:
validate in class org.apache.struts.action.ActionForm
- Parameters:
mapping - The mapping used to select this instancerequest - The servlet request we are processing
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk