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 Summary
ConstructorsConstructorDescriptionFormField(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 Summary
Modifier 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
-
FormField
public 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 indexname- the namepageIndex- the page indextype- the typex- the xy- the ywidth- the widthheight- the heightvalue- the valuereadOnly- the read only
-
-
Method Details
-
getAnnotationIndex
public final int getAnnotationIndex()Gets annotation index. Index of annotation associated with this form field- Returns:
- the annotation index
-
getName
Gets the ID name of this field.- Returns:
- the name
-
getPageIndex
public final int getPageIndex()Gets page index. Page index which contains this form field- Returns:
- the page index
-
isReadOnly
public final boolean isReadOnly()Is read only boolean. The permissions for users to fill-in current form field.- Returns:
- the boolean
-
getType
Gets form field types.- Returns:
- the type
-
getValue
Gets the value of the editable PDF field.- Returns:
- the value
-
getWidth
public final double getWidth()Gets form field width.- Returns:
- the width
-
getHeight
public final double getHeight()Gets form field height.- Returns:
- the height
-
getX
public final double getX()Gets form field x position.- Returns:
- the x
-
getY
public final double getY()Gets form field y position.- Returns:
- the y
-