public class AcroRadioButtonGroupField extends AcroButtonField
interactive forms
.
Refer to AcroButtonField
and AcroFormField
for overview documentation.BUTTON_TYPE_CHECKBOX, BUTTON_TYPE_PUSHBUTTON, BUTTON_TYPE_RADIO_GROUP, DEFAULT_UNSELECTED_VALUE
FIELD_TYPE_BUTTON, FIELD_TYPE_CHOICE, FIELD_TYPE_OTHER, FIELD_TYPE_SIGNATURE, FIELD_TYPE_TEXT
Modifier and Type | Method and Description |
---|---|
Region |
bounds()
Returns the region on the page where this radio button group is positioned.
|
boolean |
canChangeValue()
This function always returns true.
|
java.util.Set |
getPossibleValues()
Returns a set of the possible values that may be set on this button.
|
boolean |
setValue(java.lang.String val)
Sets the value of this button field.
|
getButtonType, getExportValue, getExportValues, getValue
getDefaultValue, getFullName, getLocalName, getMappingName, getType, getUIName, hasValueChanged, isReadOnly
pageNumber
public java.util.Set getPossibleValues()
public boolean setValue(java.lang.String val)
AcroRadioButtonGroupField.getPossibleValues()
or null (i.e. no buttons in the radio button group should be selected).setValue
in interface AcroFormField
java.lang.IllegalArgumentException
- if a String is provided that is not in the set returned by AcroRadioButtonGroupField.getPossibleValues()
.public boolean canChangeValue()
canChangeValue
in interface AcroFormField
public Region bounds()
Since radio groups are an abstract construct — they are not rendered in any way, they only modify the
behaviour and semantics of their constituent radio buttons — radio groups have no declared bounds of their
own. Therefore, this method returns the union
of the bounds of all the
radio group's buttons.