Interface View.Field

Enclosing interface:
View

public static interface View.Field
One field of a View.Form.
  • Method Details

    • value

      View.Field value(@Nullable Object value)
      Parameters:
      value - what the field holds when the page is drawn: text, a number, a boolean
      Returns:
      this field
    • placeholder

      View.Field placeholder(String text)
      Parameters:
      text - shown in the field while it is empty
      Returns:
      this field
    • help

      View.Field help(String text)
      Parameters:
      text - a line under the field
      Returns:
      this field
    • required

      View.Field required()
      Returns:
      this field, which the form cannot be sent without
    • option

      View.Field option(String value, String label)
      A choice of a select.
      Parameters:
      value - the value sent
      label - what the list shows
      Returns:
      this field
    • min

      View.Field min(double min)
      Parameters:
      min - the lowest number allowed
      Returns:
      this field
    • max

      View.Field max(double max)
      Parameters:
      max - the highest number allowed
      Returns:
      this field
    • step

      View.Field step(double step)
      Parameters:
      step - the step between numbers, 1 until set
      Returns:
      this field
    • suggest

      View.Field suggest(String... values)
      Parameters:
      values - values suggested while typing
      Returns:
      this field
    • length

      View.Field length(int max)
      Parameters:
      max - how many characters the field takes at most
      Returns:
      this field