Class RadioButtonGroup


  • public class RadioButtonGroup
    extends Field

    A radio button field

    • Method Detail

      • addNewButton

        public RadioButton addNewButton​(java.lang.String exportName)

        Create a radio button

        The created radio button is automatically added to this radio button field's getButtons().
        Parameters:
        exportName - the radio button's export name
        Returns:
        the newly created radio button
        Throws:
        java.lang.IllegalStateException - if the document has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
      • getButtons

        public RadioButtonList getButtons()

        This field's buttons (Getter)

        Throws:
        java.lang.IllegalStateException - if the object has already been closed
      • getChosenButton

        public RadioButton getChosenButton()

        This field's selected button (Getter)

        if null is set, then no button is chosen.
        Throws:
        java.lang.IllegalStateException - if the object has already been closed
      • setChosenButton

        public void setChosenButton​(RadioButton value)

        This field's selected button (Setter)

        if null is set, then no button is chosen.
        Throws:
        java.lang.IllegalStateException - if the object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
        java.lang.IllegalArgumentException - if the provided radio button object does not belong to the radio button field
        java.lang.IllegalStateException - if the given RadioButton object is null and the radio button group does not support toggling to off
        java.lang.IllegalStateException - if the form field is marked as read-only