com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class RadioButtonField

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, com.aspose.ms.System.ICloneable, Cloneable, Iterable


    public final class RadioButtonField
    extends ChoiceField

    Class representing radio button field.

    • Constructor Detail

      • RadioButtonField

        public RadioButtonField(Page page,
                                Rectangle rect)

        Sets radio button field

        Parameters:
        page - Page object
        rect - Rectangle object
      • RadioButtonField

        public RadioButtonField(Page page)

        Constructor for RadiouttonField

        Parameters:
        page - Page where radio button will be placed.
      • RadioButtonField

        public RadioButtonField(IDocument doc)

        Constructor for RadioButtonField.

        Parameters:
        doc - Document where radio button will be created.
    • Method Detail

      • getStyle

        public int getStyle()

        Style of field box.

        Returns:
        BoxStyle value
        See Also:
        BoxStyle
      • setStyle

        public void setStyle(int value)

        Style of field box.

        Parameters:
        value - BoxStyle value
        See Also:
        BoxStyle
      • getSelected

        public int getSelected()

        Gets index of selected item. Numbering of items is started from 1.

        Overrides:
        getSelected in class ChoiceField
        Returns:
        int value
      • setSelected

        public void setSelected(int value)

        Sets index of selected item. Numbering of items is started from 1.

        Overrides:
        setSelected in class ChoiceField
        Parameters:
        value - int value
      • updateAppearances

        public void updateAppearances()

        Update appearances value.

        Overrides:
        updateAppearances in class Field
      • add

        public void add(RadioButtonOptionField newItem)

        Adds new option field to RadioButton field

        Parameters:
        newItem - Item which should be added.
      • addOption

        public void addOption(String optionName,
                              Rectangle rect)

        Add to radio button option with specifed rectangle.

        Parameters:
        optionName - Name of new option.
        rect - New item rectangle.
      • addOption

        public void addOption(String optionName)

        Add option to radion button.

        Overrides:
        addOption in class ChoiceField
        Parameters:
        optionName - Name of the option which will be added.
      • setPosition

        public void setPosition(Point point)

        Move all subitems of radio button to specified positins on the page.

        Overrides:
        setPosition in class Field
        Parameters:
        point - Sets position of RadioButton field annotations.
      • getPageIndex

        public int getPageIndex()

        Gets index of page which contains this RadioButton field.

        Overrides:
        getPageIndex in class Field
        Returns:
        int value
      • setValue

        public void setValue(String value)

        Sets value of field.

        Overrides:
        setValue in class ChoiceField
        Parameters:
        value - String value