code: public boolean isValid() {
  
          boolean valid = true;
          for (Component comp : this) {
              if (comp instanceof TextField) {
                  valid = valid && ((TextField)comp).isValid();
              }
          }
          return valid;
      }
docs: Returns whether the form fields are valid.<p>
  
  @return <code>true</code> if the form fields are valid