public final class PDTextField extends PDVariableText
QUADDING_CENTERED, QUADDING_LEFT, QUADDING_RIGHT| Constructor and Description | 
|---|
| PDTextField(PDAcroForm acroForm) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | doNotScroll() | 
| boolean | doNotSpellCheck() | 
| String | getDefaultValue()Returns the default value of this field, or an empty string. | 
| int | getMaxLen()Returns the maximum number of characters of the text field. | 
| String | getValue()Returns the value of this field, or an empty string. | 
| String | getValueAsString()Returns a string representation of the "V" entry, or an empty string. | 
| boolean | isComb() | 
| boolean | isFileSelect() | 
| boolean | isMultiline() | 
| boolean | isPassword() | 
| boolean | isRichText() | 
| void | setComb(boolean comb)Set the comb bit. | 
| void | setDefaultValue(String value)Sets the default value of this field. | 
| void | setDoNotScroll(boolean doNotScroll)Set the doNotScroll bit. | 
| void | setDoNotSpellCheck(boolean doNotSpellCheck)Set the doNotSpellCheck bit. | 
| void | setFileSelect(boolean fileSelect)Set the file select bit. | 
| void | setMaxLen(int maxLen)Sets the maximum number of characters of the text field. | 
| void | setMultiline(boolean multiline)Set the multiline bit. | 
| void | setPassword(boolean password)Set the password bit. | 
| void | setRichText(boolean richText)Set the richText bit. | 
| void | setValue(String value)Sets the plain text value of this field. | 
getDefaultAppearance, getDefaultStyleString, getQ, getRichTextValue, getStringOrStream, setDefaultAppearance, setDefaultStyleString, setQ, setRichTextValueapplyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgetsgetAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toStringpublic PDTextField(PDAcroForm acroForm)
acroForm - The acroform.PDField.PDField(PDAcroForm)public boolean isMultiline()
public void setMultiline(boolean multiline)
multiline - The value for the multiline.public boolean isPassword()
public void setPassword(boolean password)
password - The value for the password.public boolean isFileSelect()
public void setFileSelect(boolean fileSelect)
fileSelect - The value for the fileSelect.public boolean doNotSpellCheck()
public void setDoNotSpellCheck(boolean doNotSpellCheck)
doNotSpellCheck - The value for the doNotSpellCheck.public boolean doNotScroll()
public void setDoNotScroll(boolean doNotScroll)
doNotScroll - The value for the doNotScroll.public boolean isComb()
public void setComb(boolean comb)
comb - The value for the comb.public boolean isRichText()
public void setRichText(boolean richText)
richText - The value for the richText.public int getMaxLen()
public void setMaxLen(int maxLen)
maxLen - the maximum number of characterspublic void setValue(String value) throws IOException
setValue in class PDFieldvalue - Plain textIOException - if the value could not be setpublic void setDefaultValue(String value) throws IOException
value - Plain textIOException - if the value could not be setpublic String getValue()
public String getDefaultValue()
public String getValueAsString()
PDFieldgetValueAsString in class PDFieldCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.