Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.interactive.form

public final Class PDFieldFactory

extends Object
Class Inheritance
Imports
java.util.HashSet, .Set, org.apache.pdfbox.cos.COSArray, .COSBase, .COSDictionary, .COSName

A PDField factory.

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static PDField
private static PDField
public static PDField

Returns:

the corresponding PDField instance
createField
(PDAcroForm
the 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
parent
)

Creates a COSField subclass from the given field.

private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FIELD_TYPE_BUTTONback to summary
private static final String FIELD_TYPE_BUTTON
FIELD_TYPE_CHOICEback to summary
private static final String FIELD_TYPE_CHOICE
FIELD_TYPE_SIGNATUREback to summary
private static final String FIELD_TYPE_SIGNATURE
FIELD_TYPE_TEXTback to summary
private static final String FIELD_TYPE_TEXT

Constructor Detail

PDFieldFactoryback to summary
private PDFieldFactory()

Method Detail

createButtonSubTypeback to summary
private static PDField createButtonSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
createChoiceSubTypeback to summary
private static PDField createChoiceSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
createFieldback to summary
public static PDField createField(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)

Creates a COSField subclass from the given field.

Parameters
form:PDAcroForm

the form that the field is part of

field:COSDictionary

the dictionary representing a field element

parent:PDNonTerminalField

the parent node of the node to be created

Returns:PDField

the corresponding PDField instance

findFieldTypeback to summary
private static String findFieldType(COSDictionary dic, Set<COSDictionary> seen)