java.lang.Object
org.apache.struts.action.ActionForm
com.RuntimeCollective.sitemap.form.TemplateForm
com.RuntimeCollective.vanilla.form.TemplateGenericForm
- All Implemented Interfaces:
- com.RuntimeCollective.webapps.form.BeanForm, java.io.Serializable
- public class TemplateGenericForm
- extends com.RuntimeCollective.sitemap.form.TemplateForm
The TemplateForm to use for the Generic Template.
- Version:
- $Id: TemplateGenericForm.java,v 1.5 2003/09/30 15:13:03 joe Exp $
| Fields inherited from class com.RuntimeCollective.sitemap.form.TemplateForm |
action, FALSE, HTTP_PREFIX, MAX_CAPTION_LENGTH, MAX_NAME_LENGTH, MAX_TCTITLE_LENGTH, MAX_TITLE_LENGTH, Name, OfInterest, ShowLinksToChildrenNodes, Submit, Title, TRUE |
| Methods inherited from class com.RuntimeCollective.sitemap.form.TemplateForm |
getFormAction, getName, getOfInterest, getShowLinksToChildrenNodes, getSubmit, getTitle, populateBean, populateBeanImage, populateBeanTextComponent, populateForm, populateFormImage, populateFormTextComponent, setFormAction, setName, setOfInterest, setShowLinksToChildrenNodes, setSubmit, setTitle, updateNeedsSaving, validateImage, validateName, validateTextComponent, validateTitle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageFormFile
protected org.apache.struts.upload.FormFile ImageFormFile
- The ImageFormFile
ImageCaption
protected java.lang.String ImageCaption
- The ImageCaption
CaptionIsUrl
protected boolean CaptionIsUrl
- The CaptionIsUrl
Text1Title
protected java.lang.String Text1Title
- The Text1Title
Text1Text
protected java.lang.String Text1Text
- The Text1Text
Text1TextIsHtml
protected boolean Text1TextIsHtml
- The Text1TextIsHtml
TemplateGenericForm
public TemplateGenericForm()
setImageFormFile
public void setImageFormFile(org.apache.struts.upload.FormFile imageFormFile)
- Set the ImageFormFile
getImageFormFile
public org.apache.struts.upload.FormFile getImageFormFile()
- Get the ImageFormFile
setImageCaption
public void setImageCaption(java.lang.String imageCaption)
- Set the ImageCaption
getImageCaption
public java.lang.String getImageCaption()
- Get the ImageCaption
setCaptionIsUrl
public void setCaptionIsUrl(boolean captionIsUrl)
- Set the CaptionIsUrl
getCaptionIsUrl
public boolean getCaptionIsUrl()
- Get the CaptionIsUrl
setText1Title
public void setText1Title(java.lang.String text1Title)
- Set the Text1Title
getText1Title
public java.lang.String getText1Title()
- Get the Text1Title
setText1Text
public void setText1Text(java.lang.String text1Text)
- Set the Text1Text
getText1Text
public java.lang.String getText1Text()
- Get the Text1Text
setText1TextIsHtml
public void setText1TextIsHtml(boolean text1TextIsHtml)
- Set the Text1TextIsHtml
getText1TextIsHtml
public boolean getText1TextIsHtml()
- Get the Text1TextIsHtml
populateForm
public void populateForm(com.RuntimeCollective.sitemap.bean.ContentSiteLocation bean)
- Populate this form from a bean.
populateBean
public com.RuntimeCollective.sitemap.bean.ContentSiteLocation populateBean(com.RuntimeCollective.sitemap.bean.ContentSiteLocation 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.
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.ContentSiteLocation.NameTooLong
error.ContentSiteLocation.NameEmpty
error.ContentSiteLocation.TextTitleTooLong
error.ContentSiteLocation.UrlTooLong
error.ContentSiteLocation.UrlNotValid
error.ContentSiteLocation.ImageCaptionTooLong