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

Quick Search    Search Deep

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

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

Field Summary
protected  boolean CaptionIsUrl
          The CaptionIsUrl
protected  java.lang.String ImageCaption
          The ImageCaption
protected  org.apache.struts.upload.FormFile ImageFormFile
          The ImageFormFile
protected  java.lang.String Text1Text
          The Text1Text
protected  boolean Text1TextIsHtml
          The Text1TextIsHtml
protected  java.lang.String Text1Title
          The Text1Title
 
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
TemplateGenericForm()
           
 
Method Summary
 boolean getCaptionIsUrl()
          Get the CaptionIsUrl
 java.lang.String getImageCaption()
          Get the ImageCaption
 org.apache.struts.upload.FormFile getImageFormFile()
          Get the ImageFormFile
 java.lang.String getText1Text()
          Get the Text1Text
 boolean getText1TextIsHtml()
          Get the Text1TextIsHtml
 java.lang.String getText1Title()
          Get the Text1Title
 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 setCaptionIsUrl(boolean captionIsUrl)
          Set the CaptionIsUrl
 void setImageCaption(java.lang.String imageCaption)
          Set the ImageCaption
 void setImageFormFile(org.apache.struts.upload.FormFile imageFormFile)
          Set the ImageFormFile
 void setText1Text(java.lang.String text1Text)
          Set the Text1Text
 void setText1TextIsHtml(boolean text1TextIsHtml)
          Set the Text1TextIsHtml
 void setText1Title(java.lang.String text1Title)
          Set the Text1Title
 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

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

Constructor Detail

TemplateGenericForm

public TemplateGenericForm()
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


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