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
ConstructorDescriptionFormField
(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 int
Gets annotation index.final double
Gets form field height.final String
getName()
Gets the ID name of this field.final int
Gets page index.final FormFieldTypes
getType()
Gets form field types.final String
getValue()
Gets the value of the editable PDF field.final double
getWidth()
Gets form field width.final double
getX()
Gets form field x position.final double
getY()
Gets form field y position.final boolean
Is 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
-