com.silverpeas.form
Class AbstractFormTest.MyFormImpl

java.lang.Object
  extended by com.silverpeas.form.AbstractForm
      extended by com.silverpeas.form.AbstractFormTest.MyFormImpl
All Implemented Interfaces:
Form
Enclosing class:
AbstractFormTest

public class AbstractFormTest.MyFormImpl
extends AbstractForm

A simple implementation of the AbstractForm class in order to test the method implemented by the abstract class.


Field Summary
 
Fields inherited from class com.silverpeas.form.AbstractForm
CONTEXT_FORM_FILE, CONTEXT_FORM_IMAGE, REPEATED_FIELD_CSS_HIDE, REPEATED_FIELD_CSS_SHOW, REPEATED_FIELD_SEPARATOR
 
Constructor Summary
AbstractFormTest.MyFormImpl(RecordTemplate recordTemplate)
           
 
Method Summary
 void display(javax.servlet.jsp.JspWriter out, PagesContext pagesContext, DataRecord record)
           
protected  String toScript()
          The result expected by the displayScripts method of the AbstractForm class.
 String toString(PagesContext pageContext, DataRecord dataRecord)
           
 
Methods inherited from class com.silverpeas.form.AbstractForm
display, displayScripts, getData, getFieldTemplates, getFormName, getName, getSureField, getTitle, isEmpty, isViewForm, setData, setFormName, setName, setTitle, setViewForm, update, update, updateWysiwyg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFormTest.MyFormImpl

public AbstractFormTest.MyFormImpl(RecordTemplate recordTemplate)
                            throws Exception
Throws:
Exception
Method Detail

display

public void display(javax.servlet.jsp.JspWriter out,
                    PagesContext pagesContext,
                    DataRecord record)
Specified by:
display in interface Form
Specified by:
display in class AbstractForm

toScript

protected String toScript()
The result expected by the displayScripts method of the AbstractForm class.

Returns:
the expected result of AbstractForm#displayScripts method

toString

public String toString(PagesContext pageContext,
                       DataRecord dataRecord)


Copyright © 2016 Silverpeas. All Rights Reserved.