Class FormField
- java.lang.Object
-
- org.xhtmlrenderer.simple.extend.form.FormField
-
- Direct Known Subclasses:
InputField
public abstract class FormField extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
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()
-
-