Package com.winnovative_software
Class PdfFormTextBox
java.lang.Object
com.winnovative_software.PdfFormField
com.winnovative_software.PdfFormTextBox
Represents a text box in a PDF form
-
Constructor Summary
ConstructorsConstructorDescriptionPdfFormTextBox
(RectangleFloat box, String text, PdfFont pdfFont) Constructs a text box form field -
Method Summary
Modifier and TypeMethodDescriptionfont()
Gets the PDF form text box fontboolean
Gets the flag indicating if the text box is multilineboolean
Gets the flag indicating if this text box is used to enter a passwordint
Gets the maximum length of the field text in charactersvoid
Sets the PDF form text box fontvoid
setIsMultiLine
(boolean isMultiline) Sets the flag indicating if the text box is multiline.void
setIsPassword
(boolean isPassword) Sets the flag indicating if this text box is used to enter a password.void
setMaxLength
(int maxLength) Sets the maximum length of the field text in charactersvoid
Sets the text box initial texttext()
Gets the text box initial textMethods inherited from class com.winnovative_software.PdfFormField
boundingRectangle, defaultValue, export, flatten, name, parentForm, readOnly, required, setAction, setBoundingRectangle, setDefaultValue, setExport, setFlatten, setName, setReadOnly, setRequired, setStyle, setToolTip, style, toolTip
-
Constructor Details
-
PdfFormTextBox
Constructs a text box form field- Parameters:
box
- the text box control bounding boxtext
- the text box initial textpdfFont
- the text font
-
-
Method Details
-
text
Gets the text box initial text- Returns:
- the text box initial text
-
setText
Sets the text box initial text- Parameters:
text
- the text box initial text to set
-
font
Gets the PDF form text box font- Returns:
- the PDF form text box font
-
setFont
Sets the PDF form text box font- Parameters:
pdfFont
- the PDF form text box font to set
-
isMultiLine
public boolean isMultiLine()Gets the flag indicating if the text box is multiline- Returns:
- the flag value
-
setIsMultiLine
public void setIsMultiLine(boolean isMultiline) Sets the flag indicating if the text box is multiline. This property is false by default- Parameters:
isMultiline
- the flag value to set
-
isPassword
public boolean isPassword()Gets the flag indicating if this text box is used to enter a password- Returns:
- the flag value
-
setIsPassword
public void setIsPassword(boolean isPassword) Sets the flag indicating if this text box is used to enter a password. This property is false by default- Parameters:
isPassword
- the flag value to set
-
maxLength
public int maxLength()Gets the maximum length of the field text in characters- Returns:
- the maximum length of the field text in characters
-
setMaxLength
public void setMaxLength(int maxLength) Sets the maximum length of the field text in characters- Parameters:
maxLength
- the maximum length of the field text in characters to set
-