Class PDFieldFactory
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.interactive.form.PDFieldFactory
-
public final class PDFieldFactory extends java.lang.ObjectA PDField factory.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringFIELD_TYPE_BUTTONprivate static java.lang.StringFIELD_TYPE_CHOICEprivate static java.lang.StringFIELD_TYPE_SIGNATUREprivate static java.lang.StringFIELD_TYPE_TEXT
-
Constructor Summary
Constructors Modifier Constructor Description privatePDFieldFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private 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 java.lang.StringfindFieldType(COSDictionary dic, java.util.Set<COSDictionary> seen)
-
-
-
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, java.util.Set<COSDictionary> seen)
-
-