public class GeneralTextField extends TextField
Modifier and Type | Method and Description |
---|---|
static GeneralTextField |
create(Document targetDocument)
Create a general text form field
|
static GeneralTextField |
createDynamicObject(long handle) |
boolean |
getDoNotScroll()
Flags this text field non scrollable (Getter)
|
boolean |
getDoNotSpellCheck()
Flags this text field for prevention from spell checking (Getter)
|
java.lang.Integer |
getMaxLength()
The maximal text length (Getter)
|
boolean |
getMultiline()
Flags this text field as multi-line (Getter)
|
boolean |
getPassword()
Flags this text field as a password entry field (Getter)
|
void |
setDoNotScroll(boolean value)
Flags this text field non scrollable (Setter)
|
void |
setDoNotSpellCheck(boolean value)
Flags this text field for prevention from spell checking (Setter)
|
void |
setMaxLength(java.lang.Integer value)
The maximal text length (Setter)
|
void |
setMultiline(boolean value)
Flags this text field as multi-line (Setter)
|
void |
setPassword(boolean value)
Flags this text field as a password entry field (Setter)
|
getAlignment, getFontSize, getText, setAlignment, setFontSize, setText
addNewWidget, getDoNotExport, getReadOnly, getRequired, getWidgets, setDoNotExport, setReadOnly, setRequired
copy, getDisplayName, getExportName, setDisplayName, setExportName
equals, hashCode
public static GeneralTextField createDynamicObject(long handle)
public static GeneralTextField create(Document targetDocument)
targetDocument
- the output document with which the returned object is associatedjava.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- the target document contains form fields that have been implicitly copied by a call to
pdftoolbox.pdf.Page.copy
with an argument options
in which
pdftoolbox.pdf.PageCopyOptions.setFormFields
was set to FormFieldCopyStrategy.COPY
java.lang.IllegalArgumentException
- the target document contains unsigned signatures that have been implicitly copied by a call to
pdftoolbox.pdf.Page.copy
with an argument options
in which
pdftoolbox.pdf.PageCopyOptions.setUnsignedSignatures
was set to pdftoolbox.pdf.CopyStrategy.COPY
.public java.lang.Integer getMaxLength()
java.lang.IllegalStateException
- if the object has already been closedpublic void setMaxLength(java.lang.Integer value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalStateException
- if the form field has widgetsjava.lang.IllegalArgumentException
- if the given value is not null
and is smaller than 0public boolean getMultiline()
java.lang.IllegalStateException
- if the object has already been closedpublic void setMultiline(boolean value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalStateException
- if the form field has widgetspublic boolean getPassword()
java.lang.IllegalStateException
- if the object has already been closedpublic void setPassword(boolean value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalStateException
- if the form field has widgetspublic boolean getDoNotSpellCheck()
java.lang.IllegalStateException
- if the object has already been closedpublic void setDoNotSpellCheck(boolean value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlypublic boolean getDoNotScroll()
java.lang.IllegalStateException
- if the object has already been closedpublic void setDoNotScroll(boolean value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-only