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

Quick Search    Search Deep

com.RuntimeCollective.questionnaire.form
Class QuestionnaireLinkForm  view QuestionnaireLinkForm download QuestionnaireLinkForm.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.RuntimeCollective.questionnaire.form.QuestionnaireLinkForm
All Implemented Interfaces:
com.RuntimeCollective.webapps.form.BeanForm, java.io.Serializable

public class QuestionnaireLinkForm
extends org.apache.struts.action.ActionForm
implements com.RuntimeCollective.webapps.form.BeanForm

A form for editing the very basic details of a new QuestionnaireLink

Version:
$Id: QuestionnaireLinkForm.java,v 1.3 2003/09/30 15:12:54 joe Exp $

Field Summary
protected  java.lang.String action
          The action being done
protected  int QuestionnaireId
          The QuestionnaireId
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
QuestionnaireLinkForm()
           
 
Method Summary
 java.lang.String getFormAction()
          Get the action that this form is being used for, such as "register" a new bean, or "delete" or "edit" an existing one.
 int getQuestionnaireId()
          Get the QuestionnaireId
 com.RuntimeCollective.webapps.bean.EntityBean populateBean(com.RuntimeCollective.webapps.bean.EntityBean bean)
          Wrapper for populateBean which just ensures the form complies with the BeanForm signature.
 com.RuntimeCollective.questionnaire.bean.QuestionnaireLink populateBean(com.RuntimeCollective.questionnaire.bean.QuestionnaireLink bean)
          Populate a bean from this form.
 void populateForm(com.RuntimeCollective.webapps.bean.EntityBean bean)
          Wrapper for populateForm which just ensures the form complies with the BeanForm signature.
 void populateForm(com.RuntimeCollective.questionnaire.bean.QuestionnaireLink bean)
          Populate this form from a bean.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset form variables.
 void setFormAction(java.lang.String action)
          Set the action that this form is being used for, such as "register" a new bean, or "delete" or "edit" an existing one.
 void setQuestionnaireId(int questionnaireId)
          Set the QuestionnaireId
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate the form details.
 
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

action

protected java.lang.String action
The action being done


QuestionnaireId

protected int QuestionnaireId
The QuestionnaireId

Constructor Detail

QuestionnaireLinkForm

public QuestionnaireLinkForm()
Method Detail

getFormAction

public java.lang.String getFormAction()
Description copied from interface: com.RuntimeCollective.webapps.form.BeanForm
Get the action that this form is being used for, such as "register" a new bean, or "delete" or "edit" an existing one.

Specified by:
getFormAction in interface com.RuntimeCollective.webapps.form.BeanForm

setFormAction

public void setFormAction(java.lang.String action)
Description copied from interface: com.RuntimeCollective.webapps.form.BeanForm
Set the action that this form is being used for, such as "register" a new bean, or "delete" or "edit" an existing one.

Specified by:
setFormAction in interface com.RuntimeCollective.webapps.form.BeanForm

setQuestionnaireId

public void setQuestionnaireId(int questionnaireId)
Set the QuestionnaireId


getQuestionnaireId

public int getQuestionnaireId()
Get the QuestionnaireId


populateForm

public void populateForm(com.RuntimeCollective.webapps.bean.EntityBean bean)
Wrapper for populateForm which just ensures the form complies with the BeanForm signature.

Specified by:
populateForm in interface com.RuntimeCollective.webapps.form.BeanForm

populateForm

public void populateForm(com.RuntimeCollective.questionnaire.bean.QuestionnaireLink bean)
Populate this form from a bean.


populateBean

public com.RuntimeCollective.webapps.bean.EntityBean populateBean(com.RuntimeCollective.webapps.bean.EntityBean bean)
Wrapper for populateBean which just ensures the form complies with the BeanForm signature.

Specified by:
populateBean in interface com.RuntimeCollective.webapps.form.BeanForm

populateBean

public com.RuntimeCollective.questionnaire.bean.QuestionnaireLink populateBean(com.RuntimeCollective.questionnaire.bean.QuestionnaireLink bean)
Populate a bean from this form.


reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset form variables.

Specified by:
reset in interface com.RuntimeCollective.webapps.form.BeanForm

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validate the form details. This returns the following error codes:
  • error.questionnaire.QuestionnaireLink.QuestionnaireNull
  • error.questionnaire.QuestionnaireLink.QuestionnaireInvalid