Class ComboBoxField

java.lang.Object
com.ironsoftware.ironpdf.form.FormField
com.ironsoftware.ironpdf.form.ComboBoxField

public class ComboBoxField extends FormField
The type Combo box field.
  • Constructor Details

    • ComboBoxField

      public ComboBoxField(int annotationIndex, String name, int pageIndex, double x, double y, double width, double height, String value, List<String> options, int selectedIndex, boolean readOnly)
      (INTERNAL) Please Get ComboBoxField from FormFieldsSet.getComboBoxFields() from FormManager.getFields()
      Parameters:
      annotationIndex - the annotation index
      name - the name
      pageIndex - the page index
      x - the x
      y - the y
      width - the width
      height - the height
      value - the value
      options - the options
      selectedIndex - the selected index
      readOnly - the read only
  • Method Details

    • getOptions

      public final List<String> getOptions()
      Gets options. The available options for the combo-box in zero based index order.
      Returns:
      the option names as strings.
    • getSelectedIndex

      public final int getSelectedIndex()
      Gets The index of the selected option.
      Returns:
      the index of the selected. 0 based.