Class PDFieldFactory
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.form.PDFieldFactory
-
public final class PDFieldFactory extends java.lang.Object
A PDField factory.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
FIELD_TYPE_BUTTON
private static java.lang.String
FIELD_TYPE_CHOICE
private static java.lang.String
FIELD_TYPE_SIGNATURE
private static java.lang.String
FIELD_TYPE_TEXT
-
Constructor Summary
Constructors Modifier Constructor Description private
PDFieldFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static PDField
createButtonSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
private static PDField
createChoiceSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
static PDField
createField(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
Creates a COSField subclass from the given field.private static java.lang.String
findFieldType(COSDictionary dic)
-
-
-
Field Detail
-
FIELD_TYPE_TEXT
private static final java.lang.String FIELD_TYPE_TEXT
- See Also:
- Constant Field Values
-
FIELD_TYPE_BUTTON
private static final java.lang.String FIELD_TYPE_BUTTON
- See Also:
- Constant Field Values
-
FIELD_TYPE_CHOICE
private static final java.lang.String FIELD_TYPE_CHOICE
- See Also:
- Constant Field Values
-
FIELD_TYPE_SIGNATURE
private static final java.lang.String FIELD_TYPE_SIGNATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createField
public static PDField createField(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
Creates a COSField subclass from the given field.- Parameters:
form
- the form that the field is part offield
- the dictionary representing a field elementparent
- the parent node of the node to be created- Returns:
- the corresponding PDField instance
-
createChoiceSubType
private static PDField createChoiceSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
-
createButtonSubType
private static PDField createButtonSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
-
findFieldType
private static java.lang.String findFieldType(COSDictionary dic)
-
-