Package com.winnovative_software
Class PdfFormAutoFieldStyle
java.lang.Object
com.winnovative_software.PdfFormAutoFieldStyle
This class offers the necessary properties and methods to control the style
of the automatically generated PDF form fields
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the form field background color in an automatically generated PDF formGets the form field border color in an automatically generated PDF formGets the form field border style in an automatically generated PDF formboolean
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 flattenedfont()
Gets the PDF form fields fontGets the form field fore color in an automatically generated PDF 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
setBackColor
(RgbColor backColor) Sets the form field background color in an automatically generated PDF formvoid
setBorderColor
(RgbColor borderColor) Sets the form field border color in an automatically generated PDF formvoid
setBorderStyle
(PdfBorderStyle borderStyle) Sets the form field border style in an automatically generated PDF formvoid
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 fields fontvoid
setForeColor
(RgbColor foreColor) Sets the form field fore color in an automatically generated PDF formvoid
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.
-
Constructor Details
-
PdfFormAutoFieldStyle
public PdfFormAutoFieldStyle()
-
-
Method Details
-
borderStyle
Gets the form field border style in an automatically generated PDF form- Returns:
- the form field border style in an automatically generated PDF form
-
setBorderStyle
Sets the form field border style in an automatically generated PDF form- Parameters:
borderStyle
- the form field border style in an automatically generated PDF form
-
backColor
Gets the form field background color in an automatically generated PDF form- Returns:
- the form field background color in an automatically generated PDF form
-
setBackColor
Sets the form field background color in an automatically generated PDF form- Parameters:
backColor
- the form field background color to set
-
foreColor
Gets the form field fore color in an automatically generated PDF form- Returns:
- the form field fore color in an automatically generated PDF form
-
setForeColor
Sets the form field fore color in an automatically generated PDF form- Parameters:
foreColor
- the form field fore color to set
-
borderColor
Gets the form field border color in an automatically generated PDF form- Returns:
- the form field border color in an automatically generated PDF form
-
setBorderColor
Sets the form field border color in an automatically generated PDF form- Parameters:
borderColor
- the form field border color to set
-
font
Gets the PDF form fields font- Returns:
- the PDF form fields font
-
setFont
Sets the PDF form fields font- Parameters:
pdfFont
- the PDF form fields font to set
-
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
-
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
-