| Modifier and Type | Field and Description |
|---|---|
| private final PDAcroForm | |
| private final COSDictionary | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final PDNonTerminalField |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | PDField(PDAcroForm
The form that this field is part of. acroForm, COSDictionary the PDF object to represent as a field. field, PDNonTerminalField the parent node of the node parent)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract FDFField | |
| pack-priv PDField | |
| pack-priv static PDField | Returns: a new PDField instancethe form that the field is part of form, COSDictionary the dictionary representing a field element field, PDNonTerminalField the parent node of the node to be created, or null if root. parent)Creates a COSField subclass from the given COS field. |
| public PDAcroForm | Returns: The form this field is on.This will get the acroform that this field is part of. |
| public PDFormFieldAdditionalActions | |
| public String | Returns: the alternate name of the fieldGets the alternate name of the field ("shall be used in place of the actual field name wherever the field shall be identified in the user interface (such as in error or status messages referring to the field)"). |
| public COSDictionary | Returns: the dictionary that this class wraps.Implements org. This will get the dictionary associated with this field. |
| public abstract int | |
| public abstract String | |
| public String | Returns: the name of the fieldReturns the fully qualified name of the field, which is a concatenation of the names of all the parents fields. |
| protected COSBase | Returns: COS value for the given keythe key to look up key)Returns the given attribute, inheriting from parent nodes if necessary. |
| public String | |
| public PDNonTerminalField | |
| public String | |
| public abstract String | Returns: The list of widget annotations.Returns a string representation of the "V" entry, or an empty string. |
| public abstract List | Returns: a List ofPDAnnotationWidget annotations. Be aware that this list is
not backed by the actual widget collection of the field, so adding or deleting has no
effect on the PDF document. For PDTerminalField you'd have to call
setWidgets() with the modified list.Returns the widget annotations associated with this field. |
| pack-priv void | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the field is required to have a value at the time it is exported by a submit-form action.
|
| public void | setAlternateFieldName(String
the alternate name of the field. alternateFieldName)This will set the alternate name of the field ("shall be used in place of the actual field name wherever the field shall be identified in the user interface (such as in error or status messages referring to the field)"). |
| public void | |
| public void | setMappingName(String
the mapping name of the field mappingName)This will set the mapping name of the field. |
| public void | |
| public void | |
| public void | |
| public void | setRequired(boolean
The new flag for required. required)sets the flag whether the field is to be required to have a value at the time it is exported by a submit-form action. |
| public abstract void | |
| public String |
| acroForm | back to summary |
|---|---|
| private final PDAcroForm acroForm | |
| dictionary | back to summary |
|---|---|
| private final COSDictionary dictionary | |
| FLAG_NO_EXPORT | back to summary |
|---|---|
| private static final int FLAG_NO_EXPORT | |
| FLAG_READ_ONLY | back to summary |
|---|---|
| private static final int FLAG_READ_ONLY | |
| FLAG_REQUIRED | back to summary |
|---|---|
| private static final int FLAG_REQUIRED | |
| parent | back to summary |
|---|---|
| private final PDNonTerminalField parent | |
| PDField | back to summary |
|---|---|
| pack-priv PDField(PDAcroForm acroForm) Constructor.
| |
| PDField | back to summary |
|---|---|
| pack-priv PDField(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent) Constructor.
| |
| exportFDF | back to summary |
|---|---|
| pack-priv abstract FDFField exportFDF() throws IOException Exports this field and its children as FDF. | |
| findKid | back to summary |
|---|---|
| pack-priv PDField findKid(String[] name, int nameIndex) This will find one of the child elements. The name array are the components of the name to search down the tree of names. The nameIndex is where to start in that array. This method is called recursively until it finds the end point based on the name array. | |
| fromDictionary | back to summary |
|---|---|
| pack-priv static PDField fromDictionary(PDAcroForm form, COSDictionary field, PDNonTerminalField parent) Creates a COSField subclass from the given COS field. This is for reading fields from PDFs.
| |
| getAcroForm | back to summary |
|---|---|
| public PDAcroForm getAcroForm() This will get the acroform that this field is part of.
| |
| getActions | back to summary |
|---|---|
| public PDFormFieldAdditionalActions getActions() Get the additional actions for this field. This will return null if there are no additional actions for this field.
| |
| getAlternateFieldName | back to summary |
|---|---|
| public String getAlternateFieldName() Gets the alternate name of the field ("shall be used in place of the actual field name wherever the field shall be identified in the user interface (such as in error or status messages referring to the field)").
| |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. This will get the dictionary associated with this field.
| |
| getFieldFlags | back to summary |
|---|---|
| public abstract int getFieldFlags() This will get the flags for this field.
| |
| getFieldType | back to summary |
|---|---|
| public abstract String getFieldType() Get the FT entry of the field. This is a read only field and is set depending on the actual type. The field type is an inheritable attribute.
| |
| getFullyQualifiedName | back to summary |
|---|---|
| public String getFullyQualifiedName() Returns the fully qualified name of the field, which is a concatenation of the names of all the parents fields.
| |
| getInheritableAttribute | back to summary |
|---|---|
| protected COSBase getInheritableAttribute(COSName key) Returns the given attribute, inheriting from parent nodes if necessary. | |
| getMappingName | back to summary |
|---|---|
| public String getMappingName() Gets the mapping name of the field. The mapping name shall be used when exporting interactive form field data from the document.
| |
| getParent | back to summary |
|---|---|
| public PDNonTerminalField getParent() Get the parent field to this field, or null if none exists.
| |
| getPartialName | back to summary |
|---|---|
| public String getPartialName() Returns the partial name of the field.
| |
| getValueAsString | back to summary |
|---|---|
| public abstract String getValueAsString() Returns a string representation of the "V" entry, or an empty string.
| |
| getWidgets | back to summary |
|---|---|
| public abstract List Returns the widget annotations associated with this field.
For
| |
| importFDF | back to summary |
|---|---|
| pack-priv void importFDF(FDFField fdfField) throws IOException This will import a fdf field from a fdf document.
| |
| isNoExport | back to summary |
|---|---|
public boolean isNoExport()
| |
| isReadOnly | back to summary |
|---|---|
public boolean isReadOnly()
| |
| isRequired | back to summary |
|---|---|
public boolean isRequired()
| |
| setAlternateFieldName | back to summary |
|---|---|
| public void setAlternateFieldName(String alternateFieldName) This will set the alternate name of the field ("shall be used in place of the actual field name wherever the field shall be identified in the user interface (such as in error or status messages referring to the field)"). The text appears as a tool tip in Adobe Reader. Because of the usage for error or status messages, it should be different for each field.
| |
| setFieldFlags | back to summary |
|---|---|
| public void setFieldFlags(int flags) This will set the flags for this field.
| |
| setMappingName | back to summary |
|---|---|
| public void setMappingName(String mappingName) This will set the mapping name of the field.
| |
| setNoExport | back to summary |
|---|---|
| public void setNoExport(boolean noExport) sets the field to be not exported.
| |
| setPartialName | back to summary |
|---|---|
| public void setPartialName(String name) This will set the partial name of the field.
| |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly(boolean readonly) sets the field to be read-only.
| |
| setRequired | back to summary |
|---|---|
| public void setRequired(boolean required) sets the flag whether the field is to be required to have a value at the time it is exported by a submit-form action.
| |
| setValue | back to summary |
|---|---|
| public abstract void setValue(String value) throws IOException Sets the value of the field.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |