Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.form
Class Select2Form  view Select2Form download Select2Form.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.RuntimeCollective.webapps.form.Select2Form
All Implemented Interfaces:
java.io.Serializable

public class Select2Form
extends org.apache.struts.action.ActionForm

A 2D version of SelectForm -- ie allows the user to select two independent variables.

Version:
$Id: Select2Form.java,v 1.4 2003/09/30 15:13:14 joe Exp $

Field Summary
protected  java.lang.String formAction
          Whether the form is being used to "add" a new bean or "remove" an existing one (or some other action).
protected  int id1
          The id of the first bean.
protected  int id2
          The id of the second bean.
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
Select2Form()
           
 
Method Summary
 java.lang.String getFormAction()
          Get whether the form is being used to "add" a new bean or "remove" an existing one (or some other action).
 int getId1()
          Get the id of the first bean.
 int getId2()
          Get the id of the second bean.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset all properties to default values.
 void setFormAction(java.lang.String formAction)
          Set whether the form is being used to "add" a new bean or "remove" an existing one (or some other action).
 void setId1(int id1)
          Set the id of the first bean.
 void setId2(int id2)
          Set the id of the second bean.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate bean selected.
 
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, toString, wait, wait, wait
 

Field Detail

id1

protected int id1
The id of the first bean. Defaults to -1.


id2

protected int id2
The id of the second bean. Defaults to -1.


formAction

protected java.lang.String formAction
Whether the form is being used to "add" a new bean or "remove" an existing one (or some other action). Defaults to "add".

Constructor Detail

Select2Form

public Select2Form()
Method Detail

getId1

public int getId1()
Get the id of the first bean.


setId1

public void setId1(int id1)
Set the id of the first bean.


getId2

public int getId2()
Get the id of the second bean.


setId2

public void setId2(int id2)
Set the id of the second bean.


getFormAction

public java.lang.String getFormAction()
Get whether the form is being used to "add" a new bean or "remove" an existing one (or some other action).


setFormAction

public void setFormAction(java.lang.String formAction)
Set whether the form is being used to "add" a new bean or "remove" an existing one (or some other action).


validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validate bean selected. This returns the following error codes:
  • error.select.bean - if either bean was unselected.


reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset all properties to default values.