public class RadioButton extends Input
Constructor and Description |
---|
RadioButton(java.lang.String params)
Creates this input parsing required values from the given text
|
Modifier and Type | Method and Description |
---|---|
HTTPParameter |
convertToHTTPParameter(int index)
Converts this input to the HTTP Parameter that can be added to a Scrapeable File.
|
boolean |
getChecked()
Returns whether or not this radio button is selected.
|
void |
setChecked(boolean checked)
Sets whether or not this radio button is selected.
|
void |
setValueChecked(java.lang.Object value)
Sets the value for the input.
|
java.lang.String |
toString() |
public RadioButton(@NotNull java.lang.String params)
params
- The contents of the input tag@Nullable public HTTPParameter convertToHTTPParameter(int index)
Input
convertToHTTPParameter
in class Input
index
- The index to use for this parameterpublic void setValueChecked(@Nullable java.lang.Object value)
Input
setValueChecked
in class Input
value
- The new value for the inputpublic void setChecked(boolean checked)
checked
- True to check the box, false to uncheck itpublic boolean getChecked()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object