Class Radio


public final class Radio extends Choice
Represents a HTML form's radio element.
  • Constructor Details

    • Radio

      public Radio(String name, String value, boolean selected)
      Creates a new radio object.
      Parameters:
      name - the field name
      value - the value of this choice item
      selected - true if this choice is originally selected
    • Radio

      public Radio(String name, String value)
      Constructs a new unselected radio with the specified value and HTML text.
      Parameters:
      name - the name of this choice
      value - the value of this choice item
    • Radio

      public Radio(String name)
      Constructs a new unselected radio with no separate value attribute
      Parameters:
      name - the name of this choice
  • Method Details