java.lang.Object
org.apache.struts.action.ActionForm
com.RuntimeCollective.sitemap.form.TemplateForm
com.RuntimeCollective.vanilla.form.ArticleTemplateForm
- All Implemented Interfaces:
- com.RuntimeCollective.webapps.form.BeanForm, java.io.Serializable
- public class ArticleTemplateForm
- extends com.RuntimeCollective.sitemap.form.TemplateForm
The TemplateForm to use for the Article Template.
- Version:
- $Id: ArticleTemplateForm.java,v 1.3 2003/09/30 15:13:02 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 |
KEY_TEXT
public static java.lang.String KEY_TEXT
KEY_IMAGE
public static java.lang.String KEY_IMAGE
ImageFormFile
protected org.apache.struts.upload.FormFile ImageFormFile
- The ImageFormFile
ImageCaption
protected java.lang.String ImageCaption
- The ImageCaption
ImageCaptionIsUrl
protected boolean ImageCaptionIsUrl
- The ImageCaptionIsUrl
TextTitle
protected java.lang.String TextTitle
- The TextTitle
TextText
protected java.lang.String TextText
- The TextText
TextTextIsHtml
protected boolean TextTextIsHtml
- The TextTextIsHtml
ArticleTemplateForm
public ArticleTemplateForm()
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
setImageCaptionIsUrl
public void setImageCaptionIsUrl(boolean imageCaptionIsUrl)
- Set the ImageCaptionIsUrl
getImageCaptionIsUrl
public boolean getImageCaptionIsUrl()
- Get the ImageCaptionIsUrl
setTextTitle
public void setTextTitle(java.lang.String textTitle)
- Set the TextTitle
getTextTitle
public java.lang.String getTextTitle()
- Get the TextTitle
setTextText
public void setTextText(java.lang.String textText)
- Set the TextText
getTextText
public java.lang.String getTextText()
- Get the TextText
setTextTextIsHtml
public void setTextTextIsHtml(boolean textTextIsHtml)
- Set the TextTextIsHtml
getTextTextIsHtml
public boolean getTextTextIsHtml()
- Get the TextTextIsHtml
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