Class FormField

  • Direct Known Subclasses:
    InputField

    public abstract class FormField
    extends java.lang.Object
    • 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()