java.lang.Object
org.sejda.sambox.pdmodel.interactive.form.PDFieldFactory
A PDField factory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PDFieldcreateField(PDAcroForm form, COSDictionary field, PDNonTerminalField parent) Creates aPDFieldsubclass from the given field.static PDFieldcreateFieldAddingChildToParent(PDAcroForm form, COSDictionary field, PDNonTerminalField parent) Creates and sets it as a child of the given parentPDNonTerminalFieldstatic PDNonTerminalFieldcreateNonTerminalField(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
-
Method Details
-
createFieldAddingChildToParent
public static PDField createFieldAddingChildToParent(PDAcroForm form, COSDictionary field, PDNonTerminalField parent) Creates and sets it as a child of the given parentPDNonTerminalField- Parameters:
form-field-parent-- Returns:
-
createField
Creates aPDFieldsubclass 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
-
createNonTerminalField
public static PDNonTerminalField createNonTerminalField(PDAcroForm form, COSDictionary field, PDNonTerminalField parent)
-