Package com.ironsoftware.ironpdf.form
Class FormField
java.lang.Object
com.ironsoftware.ironpdf.form.FormField
- Direct Known Subclasses:
- CheckBoxField,- ComboBoxField,- TextField
Generic base class from which all PDF Form fields are derived.
- 
Constructor SummaryConstructorsConstructorDescriptionFormField(int annotationIndex, String name, int pageIndex, FormFieldTypes type, double x, double y, double width, double height, String value, boolean readOnly) (INTERNAL) Please Get ComboBoxField fromFormFieldsSet.getUnknownFields()fromFormManager.getFields()
- 
Method SummaryModifier and TypeMethodDescriptionfinal intGets annotation index.final doubleGets form field height.final StringgetName()Gets the ID name of this field.final intGets page index.final FormFieldTypesgetType()Gets form field types.final StringgetValue()Gets the value of the editable PDF field.final doublegetWidth()Gets form field width.final doublegetX()Gets form field x position.final doublegetY()Gets form field y position.final booleanIs read only boolean.
- 
Constructor Details- 
FormFieldpublic FormField(int annotationIndex, String name, int pageIndex, FormFieldTypes type, double x, double y, double width, double height, String value, boolean readOnly) (INTERNAL) Please Get ComboBoxField fromFormFieldsSet.getUnknownFields()fromFormManager.getFields()- Parameters:
- annotationIndex- the annotation index
- name- the name
- pageIndex- the page index
- type- the type
- x- the x
- y- the y
- width- the width
- height- the height
- value- the value
- readOnly- the read only
 
 
- 
- 
Method Details- 
getAnnotationIndexpublic final int getAnnotationIndex()Gets annotation index. Index of annotation associated with this form field- Returns:
- the annotation index
 
- 
getNameGets the ID name of this field.- Returns:
- the name
 
- 
getPageIndexpublic final int getPageIndex()Gets page index. Page index which contains this form field- Returns:
- the page index
 
- 
isReadOnlypublic final boolean isReadOnly()Is read only boolean. The permissions for users to fill-in current form field.- Returns:
- the boolean
 
- 
getTypeGets form field types.- Returns:
- the type
 
- 
getValueGets the value of the editable PDF field.- Returns:
- the value
 
- 
getWidthpublic final double getWidth()Gets form field width.- Returns:
- the width
 
- 
getHeightpublic final double getHeight()Gets form field height.- Returns:
- the height
 
- 
getXpublic final double getX()Gets form field x position.- Returns:
- the x
 
- 
getYpublic final double getY()Gets form field y position.- Returns:
- the y
 
 
-