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

Quick Search    Search Deep

com.RuntimeCollective.sitemap.form
Class SiteLocationForm  view SiteLocationForm download SiteLocationForm.java

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

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

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

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

Field Summary
protected  java.lang.String action
          What the form is used for: createTemplate : at creation time, choose the Template
protected  int SiteLocationId
          The SiteLocation's id
protected  int TemplateId
          The Template's id
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
SiteLocationForm()
           
 
Method Summary
 java.lang.String getFormAction()
          Get whether the form's action
 com.RuntimeCollective.sitemap.bean.SiteLocation getSiteLocation()
          Get the SiteLocation
 int getSiteLocationId()
          Get the SiteLocationId
 com.RuntimeCollective.sitemap.bean.Template getTemplate()
          Get the Template
 int getTemplateId()
          Get the TemplateId
 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.sitemap.bean.SiteLocation populateBean(com.RuntimeCollective.sitemap.bean.SiteLocation 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.sitemap.bean.SiteLocation 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 whether the form's action
 void setSiteLocationId(int siteLocationId)
          Set the SiteLocationId
 void setTemplateId(int templateId)
          Set the TemplateId
 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
What the form is used for: createTemplate : at creation time, choose the Template


TemplateId

protected int TemplateId
The Template's id


SiteLocationId

protected int SiteLocationId
The SiteLocation's id

Constructor Detail

SiteLocationForm

public SiteLocationForm()
Method Detail

getFormAction

public java.lang.String getFormAction()
Get whether the form's action

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

setFormAction

public void setFormAction(java.lang.String action)
Set whether the form's action

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

setTemplateId

public void setTemplateId(int templateId)
Set the TemplateId


getTemplateId

public int getTemplateId()
Get the TemplateId


getTemplate

public com.RuntimeCollective.sitemap.bean.Template getTemplate()
Get the Template


setSiteLocationId

public void setSiteLocationId(int siteLocationId)
Set the SiteLocationId


getSiteLocationId

public int getSiteLocationId()
Get the SiteLocationId


getSiteLocation

public com.RuntimeCollective.sitemap.bean.SiteLocation getSiteLocation()
Get the SiteLocation


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.sitemap.bean.SiteLocation 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.sitemap.bean.SiteLocation populateBean(com.RuntimeCollective.sitemap.bean.SiteLocation 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.SiteLocation.TemplateNull
  • error.SiteLocation.TemplateBadType
  • error.SiteLocation.SiteLocationNull
  • error.SiteLocation.SiteLocationBadType