Class PDFieldFactory
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.form.PDFieldFactory
A PDField factory.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PDFieldcreateButtonSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent) private static PDFieldcreateChoiceSubType(PDAcroForm form, COSDictionary field, PDNonTerminalField parent) static PDFieldcreateField(PDAcroForm form, COSDictionary field, PDNonTerminalField parent) Creates a COSField subclass from the given field.private static String
-
Field Details
-
FIELD_TYPE_TEXT
- See Also:
-
FIELD_TYPE_BUTTON
- See Also:
-
FIELD_TYPE_CHOICE
- See Also:
-
FIELD_TYPE_SIGNATURE
- See Also:
-
-
Constructor Details
-
PDFieldFactory
private PDFieldFactory()
-
-
Method Details
-
createField
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
-