Interface Field

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getControlName()  
      java.lang.String getLabel()
      Returns a user presentable (localized) label for the field, which may be used inside <label> elements on the client, and inside client or server-side validation error messages.
      boolean isDisabled()
      Returns true if the field is disabled; A disabled field will render a disabled attribute so that it is non-responsive on the client (at least, until its disabled status is changed on the client using JavaScript).
      boolean isRequired()
      Returns true if this field required (as per FieldValidator.isRequired()).
    • Method Detail

      • getControlName

        java.lang.String getControlName()
        Returns:
        the value used as the name attribute of the rendered element. This value will be unique within an enclosing form, even if the same component renders multiple times.
        See Also:
        FormSupport.allocateControlName(String)
      • getLabel

        java.lang.String getLabel()
        Returns a user presentable (localized) label for the field, which may be used inside <label> elements on the client, and inside client or server-side validation error messages.
        Returns:
        the label
        See Also:
        Label
      • isDisabled

        boolean isDisabled()
        Returns true if the field is disabled; A disabled field will render a disabled attribute so that it is non-responsive on the client (at least, until its disabled status is changed on the client using JavaScript). A disabled field will ignore any value passed up in a form submit request. Care must be taken if the disabled status of a field can change between the time the field is rendered and the time the enclosing form is submitted.
        Returns:
        true if disabled, false otherwise