java.lang.Object
org.apache.struts.action.ActionForm
com.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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SiteLocationForm
public SiteLocationForm()
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