Class FormField

  • Direct Known Subclasses:
    InputField

    public abstract class FormField
    extends Object
    • Field Detail

      • intrinsicWidth

        protected Integer intrinsicWidth
      • intrinsicHeight

        protected Integer intrinsicHeight
    • Method Detail

      • getElement

        protected Element getElement()
      • getParentForm

        public XhtmlForm getParentForm()
      • getIntrinsicSize

        public Dimension getIntrinsicSize()
      • reset

        public void reset()
      • hasAttribute

        protected boolean hasAttribute​(String attributeName)
      • getAttribute

        protected String getAttribute​(String attributeName)
      • applyOriginalState

        protected void applyOriginalState()
      • includeInSubmission

        public boolean includeInSubmission​(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 String[] getFormDataStrings()
      • getFieldValues

        protected abstract String[] getFieldValues()
      • applyComponentStyle

        protected void applyComponentStyle​(JComponent comp)
      • getFont

        public Font getFont()