Thread: [Ejtools-cvs] applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web/form SearchFo
Brought to you by:
letiemble
From: <let...@us...> - 2002-06-10 07:49:59
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web/form In directory usw-pr-cvs1:/tmp/cvs-serv14005/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web/form Modified Files: DetailForm.java Added Files: SearchForm.java Removed Files: FilterForm.java Log Message: In progress --- NEW FILE: SearchForm.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jmxbrowser.web.form; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; /** * Description of the Class * * @author letiemble * @created 13 février 2002 * @version $Revision: 1.5 $ * @todo Javadoc to complete */ public class SearchForm extends ActionForm { /** Description of the Field */ protected String attribute = ""; /** Description of the Field */ protected String filter = "*:*"; /** Description of the Field */ protected String query = ""; /** Description of the Field */ protected String type = "java.lang.String"; /** Description of the Field */ protected String value = ""; /** Constructor for the ConnectForm object */ public SearchForm() { } /** * Gets the attribute attribute of the SearchForm object * * @return The attribute value */ public String getAttribute() { return attribute; } /** * Getter for the factory attribute * * @return The value of factory attribute */ public String getFilter() { return filter; } /** * Gets the query attribute of the SearchForm object * * @return The query value */ public String getQuery() { return query; } /** * Gets the type attribute of the SearchForm object * * @return The type value */ public String getType() { return type; } /** * Gets the value attribute of the SearchForm object * * @return The value value */ public String getValue() { return value; } /** * Description of the Method * * @param mapping Description of Parameter * @param request Description of Parameter */ public void reset(ActionMapping mapping, HttpServletRequest request) { filter = "*:*"; } /** * Sets the attribute attribute of the SearchForm object * * @param attribute The new attribute value */ public void setAttribute(String attribute) { this.attribute = attribute; } /** * Setter for the factory attribute * * @param filter The new filter value */ public void setFilter(String filter) { this.filter = filter; } /** * Sets the query attribute of the SearchForm object * * @param query The new query value */ public void setQuery(String query) { this.query = query; } /** * Sets the type attribute of the SearchForm object * * @param type The new type value */ public void setType(String type) { this.type = type; } /** * Sets the value attribute of the SearchForm object * * @param value The new value value */ public void setValue(String value) { this.value = value; } /** * Description of the Method * * @param mapping Description of Parameter * @param request Description of Parameter * @return Description of the Returned Value */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); /* * if ((filter == null) || (filter.length() < 1)) * { * errors.add("filter", new ActionError("web.error.filter.required")); * } */ return errors; } } Index: DetailForm.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/web/form/DetailForm.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DetailForm.java 15 May 2002 20:56:20 -0000 1.3 --- DetailForm.java 10 Jun 2002 07:49:56 -0000 1.4 *************** *** 19,25 **** * @author letiemble * @created 13 février 2002 * @todo Javadoc to complete */ ! public final class DetailForm extends ActionForm { /** Description of the Field */ --- 19,26 ---- * @author letiemble * @created 13 février 2002 + * @version $Revision$ * @todo Javadoc to complete */ ! public class DetailForm extends ActionForm { /** Description of the Field */ --- FilterForm.java DELETED --- |