Package com.ironsoftware.ironpdf.form
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 Summary
Constructors Constructor Description 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() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getOptions()Gets options.intgetSelectedIndex()Gets 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 Detail
- 
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 Detail
- 
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.
 
 
 - 
 
 -