Package com.winnovative_software
Class PdfFormField
java.lang.Object
com.winnovative_software.PdfFormField
- Direct Known Subclasses:
PdfFormButton
,PdfFormCheckBox
,PdfFormComboBox
,PdfFormListBox
,PdfFormRadioButtonsGroup
,PdfFormTextBox
This class represents a field in the PDF form of a PDF document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the PDF form field control box in PDF page with the dimensions expressed in pointsGets the default value of the field to which the field reverts when a reset form action is executedboolean
export()
Gets the flag indicating if the field is exported by a submit form actionboolean
flatten()
Gets the flag indicating if the form field is flattenedname()
Gets the PDF form field nameGets the field parent formboolean
readOnly()
Gets the flag indicating if the field is read onlyboolean
required()
Gets the flag indicating if the field should have a value at the time it is exported by a submit form actionvoid
Sets the action to be performed when the field is activatedvoid
setBoundingRectangle
(RectangleFloat bounds) Sets the PDF form field control box in PDF page with the dimensions expressed in pointsvoid
setDefaultValue
(Object defaultValue) Sets the default value of the field to which the field reverts when a reset form action is executedvoid
setExport
(boolean export) Sets the flag indicating if the field is exported by a submit form actionvoid
setFlatten
(boolean flatten) Sets flag indicating if the form field is flattened.void
Sets the PDF form field namevoid
setReadOnly
(boolean readOnly) Sets flag indicating if the field is read only.void
setRequired
(boolean required) Sets flag indicating if the field should have a value at the time it is exported by a submit form action.void
setStyle
(PdfFormFieldStyle style) Sets the PDF form field stylevoid
setToolTip
(String toolTip) Sets the PDF form field tooltipstyle()
Gets the PDF form field styletoolTip()
Gets the PDF form field tooltip
-
Constructor Details
-
PdfFormField
public PdfFormField()
-
-
Method Details
-
parentForm
Gets the field parent form- Returns:
- the field parent form
-
setAction
Sets the action to be performed when the field is activated- Parameters:
action
- the action to set- Throws:
Exception
- an exception is thrown if the action cannot be set
-
name
Gets the PDF form field name- Returns:
- the PDF form field name
-
setName
Sets the PDF form field name- Parameters:
fieldName
- the PDF form field name to set
-
defaultValue
Gets the default value of the field to which the field reverts when a reset form action is executed- Returns:
- the default value of the field
-
setDefaultValue
Sets the default value of the field to which the field reverts when a reset form action is executed- Parameters:
defaultValue
- the default value of the field to set
-
readOnly
public boolean readOnly()Gets the flag indicating if the field is read only- Returns:
- the flag value
-
setReadOnly
public void setReadOnly(boolean readOnly) Sets flag indicating if the field is read only. The default value of the property is false- Parameters:
readOnly
- the flag value to set
-
required
public boolean required()Gets the flag indicating if the field should have a value at the time it is exported by a submit form action- Returns:
- the flag value
-
setRequired
public void setRequired(boolean required) Sets flag indicating if the field should have a value at the time it is exported by a submit form action. The default value of the property is false- Parameters:
required
- the flag value to set
-
export
public boolean export()Gets the flag indicating if the field is exported by a submit form action- Returns:
- the flag value
-
setExport
public void setExport(boolean export) Sets the flag indicating if the field is exported by a submit form action- Parameters:
export
- the flag value to set
-
toolTip
Gets the PDF form field tooltip- Returns:
- the PDF form field tooltip
-
setToolTip
Sets the PDF form field tooltip- Parameters:
toolTip
- the PDF form field tooltip
-
style
Gets the PDF form field style- Returns:
- the PDF form field style
-
setStyle
Sets the PDF form field style- Parameters:
style
- the PDF form field style to set
-
boundingRectangle
Gets the PDF form field control box in PDF page with the dimensions expressed in points- Returns:
- the PDF form field control box in PDF page
-
setBoundingRectangle
Sets the PDF form field control box in PDF page with the dimensions expressed in points- Parameters:
bounds
- the PDF form field control box to set in PDF page with the dimensions expressed in points
-
flatten
public boolean flatten()Gets the flag indicating if the form field is flattened- Returns:
- the flag value
-
setFlatten
public void setFlatten(boolean flatten) Sets flag indicating if the form field is flattened. The default value of the property is false- Parameters:
flatten
- the flag value to set
-