public abstract class PDTerminalField extends PDField
Modifier | Constructor and Description |
---|---|
protected |
PDTerminalField(PDAcroForm acroForm)
Constructor.
|
(package private) |
PDTerminalField(PDAcroForm acroForm,
COSDictionary field,
PDNonTerminalField parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyChange()
Applies a value change to the field.
|
(package private) abstract void |
constructAppearances()
Constructs appearance streams and appearance dictionaries for all widget annotations.
|
(package private) FDFField |
exportFDF()
Exports this field and its children as FDF.
|
int |
getFieldFlags()
This will get the flags for this field.
|
java.lang.String |
getFieldType()
Get the FT entry of the field.
|
PDAnnotationWidget |
getWidget()
Deprecated.
Fields may have more than one widget, call
getWidgets() instead. |
java.util.List<PDAnnotationWidget> |
getWidgets()
Returns the widget annotations associated with this field.
|
void |
importFDF(FDFField fdfField)
This will import a fdf field from a fdf document.
|
void |
setActions(PDFormFieldAdditionalActions actions)
Set the actions of the field.
|
void |
setWidgets(java.util.List<PDAnnotationWidget> children)
Sets the field's widget annotations.
|
findKid, fromDictionary, getAcroForm, getActions, getAlternateFieldName, getCOSObject, getFullyQualifiedName, getInheritableAttribute, getMappingName, getParent, getPartialName, getValueAsString, isNoExport, isReadOnly, isRequired, setAlternateFieldName, setFieldFlags, setMappingName, setNoExport, setPartialName, setReadOnly, setRequired, setValue, toString
protected PDTerminalField(PDAcroForm acroForm)
acroForm
- The form that this field is part of.PDTerminalField(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent)
acroForm
- The form that this field is part of.field
- the PDF object to represent as a field.parent
- the parent node of the nodepublic void setActions(PDFormFieldAdditionalActions actions)
actions
- The field actions.public int getFieldFlags()
PDField
getFieldFlags
in class PDField
public java.lang.String getFieldType()
PDField
getFieldType
in class PDField
public void importFDF(FDFField fdfField) throws java.io.IOException
PDField
FDFField exportFDF() throws java.io.IOException
PDField
public java.util.List<PDAnnotationWidget> getWidgets()
getWidgets
in class PDField
setWidgets()
with the modified
list.public void setWidgets(java.util.List<PDAnnotationWidget> children)
children
- The list of widget annotations.@Deprecated public PDAnnotationWidget getWidget()
getWidgets()
instead.protected final void applyChange() throws java.io.IOException
java.io.IOException
- if the appearance couldn't be generatedabstract void constructAppearances() throws java.io.IOException
applyChange()
.java.io.IOException
- if the appearance couldn't be generated