Flying Saucer Project Release ${app.version}

org.xhtmlrenderer.simple.extend.form
Class FormField

java.lang.Object
  extended by org.xhtmlrenderer.simple.extend.form.FormField
Direct Known Subclasses:
InputField

public abstract class FormField
extends java.lang.Object


Constructor Summary
FormField(org.w3c.dom.Element e, XhtmlForm form)
           
 
Method Summary
abstract  javax.swing.JComponent create()
           
 javax.swing.JComponent getComponent()
           
 java.lang.String[] getFormDataStrings()
           
 XhtmlForm getParentForm()
           
 boolean includeInSubmission(javax.swing.JComponent source)
          Returns true if the value of the current FormField should be sent along with the current submission.
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormField

public FormField(org.w3c.dom.Element e,
                 XhtmlForm form)
Method Detail

getComponent

public javax.swing.JComponent getComponent()

getParentForm

public XhtmlForm getParentForm()

reset

public void reset()

create

public abstract javax.swing.JComponent create()

includeInSubmission

public boolean includeInSubmission(javax.swing.JComponent source)
Returns true if the value of the current FormField should be sent along with the current submission. This is used so that only the value of the submit button that is used to trigger the form's submission is sent.

Parameters:
source - The JComponent that caused the submission
Returns:
true if it should

getFormDataStrings

public java.lang.String[] getFormDataStrings()

Flying Saucer Project Release ${app.version}

Flying Saucer Project Home