Package com.ironsoftware.ironpdf.form
Class ComboBoxField
java.lang.Object
com.ironsoftware.ironpdf.form.FormField
com.ironsoftware.ironpdf.form.ComboBoxField
The type Combo box field.
-
Constructor Summary
ConstructorsConstructorDescriptionComboBoxField(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 fromFormFieldsSet.getComboBoxFields()fromFormManager.getFields() -
Method Summary
Modifier and TypeMethodDescriptionGets options.final intGets The index of the selected option.Methods inherited from class com.ironsoftware.ironpdf.form.FormField
getAnnotationIndex, getHeight, getName, getPageIndex, getType, getValue, getWidth, getX, getY, isReadOnly
-
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 fromFormFieldsSet.getComboBoxFields()fromFormManager.getFields()- Parameters:
annotationIndex- the annotation indexname- the namepageIndex- the page indexx- the xy- the ywidth- the widthheight- the heightvalue- the valueoptions- the optionsselectedIndex- the selected indexreadOnly- the read only
-
-
Method Details
-
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.
-