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

Quick Search    Search Deep

com.RuntimeCollective.vanilla.form
Class ArticleTemplateForm  view ArticleTemplateForm download ArticleTemplateForm.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.RuntimeCollective.sitemap.form.TemplateForm
          extended bycom.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 $

Field Summary
protected  java.lang.String ImageCaption
          The ImageCaption
protected  boolean ImageCaptionIsUrl
          The ImageCaptionIsUrl
protected  org.apache.struts.upload.FormFile ImageFormFile
          The ImageFormFile
static java.lang.String KEY_IMAGE
           
static java.lang.String KEY_TEXT
           
protected  java.lang.String TextText
          The TextText
protected  boolean TextTextIsHtml
          The TextTextIsHtml
protected  java.lang.String TextTitle
          The TextTitle
 
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
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ArticleTemplateForm()
           
 
Method Summary
 java.lang.String getImageCaption()
          Get the ImageCaption
 boolean getImageCaptionIsUrl()
          Get the ImageCaptionIsUrl
 org.apache.struts.upload.FormFile getImageFormFile()
          Get the ImageFormFile
 java.lang.String getTextText()
          Get the TextText
 boolean getTextTextIsHtml()
          Get the TextTextIsHtml
 java.lang.String getTextTitle()
          Get the TextTitle
 com.RuntimeCollective.sitemap.bean.ContentSiteLocation populateBean(com.RuntimeCollective.sitemap.bean.ContentSiteLocation bean)
          Populate a bean from this form.
 void populateForm(com.RuntimeCollective.sitemap.bean.ContentSiteLocation bean)
          Populate this form from a bean.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset form variables.
 void setImageCaption(java.lang.String imageCaption)
          Set the ImageCaption
 void setImageCaptionIsUrl(boolean imageCaptionIsUrl)
          Set the ImageCaptionIsUrl
 void setImageFormFile(org.apache.struts.upload.FormFile imageFormFile)
          Set the ImageFormFile
 void setTextText(java.lang.String textText)
          Set the TextText
 void setTextTextIsHtml(boolean textTextIsHtml)
          Set the TextTextIsHtml
 void setTextTitle(java.lang.String textTitle)
          Set the TextTitle
 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 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 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

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

Constructor Detail

ArticleTemplateForm

public ArticleTemplateForm()
Method Detail

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