agonism.dovetail.site
Class Form

java.lang.Object
  |
  +--agonism.dovetail.site.DovetailInstance
        |
        +--agonism.dovetail.site.Form

public class Form
extends DovetailInstance


Fields inherited from class agonism.dovetail.site.DovetailInstance
m_context
 
Constructor Summary
protected Form(IRequestContext context, QForm form)
           
 
Method Summary
 java.util.Enumeration formElements()
           
 FormElement getElement(java.lang.String name)
           
 FormElement getElementForColumn(Column column)
           
 java.util.Collection getErrors()
           
 java.lang.String getName()
           
protected  java.lang.String getPageName()
           
 Submit getSubmit(java.lang.String name)
           
protected  boolean preProcess()
          This method is called before the form is processed.
 boolean process()
           
 void renderBegin()
          Opens the <form> tag on the page.
 void renderEnd()
          This method writes out all the hidden form inputs and closes the <form> tag.
 void renderErrors()
           
 void renderErrors(int width)
           
 void writeHiddenValues(DummyRequestContext context)
           
 
Methods inherited from class agonism.dovetail.site.DovetailInstance
findObject, findPageName, getContext, getFactory, getName, getPage, getPeer, getSite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Form

protected Form(IRequestContext context,
               QForm form)
Method Detail

getName

public java.lang.String getName()

getErrors

public java.util.Collection getErrors()

process

public boolean process()

getElement

public FormElement getElement(java.lang.String name)

formElements

public java.util.Enumeration formElements()

getElementForColumn

public FormElement getElementForColumn(Column column)

getSubmit

public Submit getSubmit(java.lang.String name)

renderErrors

public void renderErrors()

renderErrors

public void renderErrors(int width)

renderBegin

public void renderBegin()
Opens the <form> tag on the page. This method automatically determines what method, action, and enctype to use for the form.
See Also:
renderEnd()

writeHiddenValues

public void writeHiddenValues(DummyRequestContext context)

renderEnd

public void renderEnd()
This method writes out all the hidden form inputs and closes the <form> tag. It should be called on the Form object after all of the form inputs have been rendered.
See Also:
renderBegin()

preProcess

protected boolean preProcess()
This method is called before the form is processed. This method doesn't do anything by default.
Returns:
whether processing should continue or not. true by default.

getPageName

protected java.lang.String getPageName()