Package com.evopdf
Class PdfFormField
java.lang.Object
com.evopdf.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 executedbooleanexport()Gets the flag indicating if the field is exported by a submit form actionbooleanflatten()Gets the flag indicating if the form field is flattenedname()Gets the PDF form field nameGets the field parent formbooleanreadOnly()Gets the flag indicating if the field is read onlybooleanrequired()Gets the flag indicating if the field should have a value at the time it is exported by a submit form actionvoidSets the action to be performed when the field is activatedvoidsetBoundingRectangle(RectangleFloat bounds) Sets the PDF form field control box in PDF page with the dimensions expressed in pointsvoidsetDefaultValue(Object defaultValue) Sets the default value of the field to which the field reverts when a reset form action is executedvoidsetExport(boolean export) Sets the flag indicating if the field is exported by a submit form actionvoidsetFlatten(boolean flatten) Sets flag indicating if the form field is flattened.voidSets the PDF form field namevoidsetReadOnly(boolean readOnly) Sets flag indicating if the field is read only.voidsetRequired(boolean required) Sets flag indicating if the field should have a value at the time it is exported by a submit form action.voidsetStyle(PdfFormFieldStyle style) Sets the PDF form field stylevoidsetToolTip(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
 
 -