COSObjectable
public final class PDTextField extends PDVariableText
QUADDING_CENTERED, QUADDING_LEFT, QUADDING_RIGHT
Constructor | Description |
---|---|
PDTextField(PDAcroForm acroForm) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
doNotScroll() |
|
boolean |
doNotSpellCheck() |
|
java.lang.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.
|
java.lang.String |
getValue() |
Returns the value of this field, or an empty string.
|
java.lang.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(java.lang.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(java.lang.String value) |
Sets the plain text value of this field.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, toString
applyChange, getFieldFlags, getFieldType, getWidget, getWidgets, importFDF, setActions, setWidgets
getDefaultAppearance, getDefaultStyleString, getQ, getRichTextValue, getStringOrStream, setDefaultAppearance, setDefaultStyleString, setQ, setRichTextValue
public PDTextField(PDAcroForm acroForm)
acroForm
- The acroform.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(java.lang.String value) throws java.io.IOException
public void setDefaultValue(java.lang.String value) throws java.io.IOException
value
- Plain textjava.io.IOException
- if the value could not be setpublic java.lang.String getValue()
public java.lang.String getDefaultValue()
public java.lang.String getValueAsString()
PDField
getValueAsString
in class PDField
Copyright © 2002–2018. All rights reserved.