Form Provider Impl
Internal implementation of the form provider that manages PDF form fields and elements. This class handles form field creation, retrieval, modification, and removal operations for AcroForms in PDF documents.
Properties
Functions
Allows to programmatically create and insert a form field into the document. The newly created form field will be automatically attached to the document once created.
Allows to programmatically create and insert a form field into the document, asynchronously. The newly created form field will be automatically attached to the document once created.
Allows to programmatically create and insert a form field into the document.
Allows to programmatically create and insert a form field into the document, asynchronously.
Adds OnButtonFormFieldUpdatedListener to get notified when button fields get updated. If the listener has already been added previously, this method will be a no-op. Adding
null is not allowed, and will result in an exception.
Adds OnChoiceFormFieldUpdatedListener to get notified when choice fields get updated. If the listener has already been added previously, this method will be a no-op. Adding
null is not allowed, and will result in an exception.
Adds OnFormFieldUpdatedListener to get notified when any form field gets updated. If the listener has already been added previously, this method will be a no-op. Adding
null is not allowed, and will result in an exception.
Adds OnFormTabOrderUpdatedListener to get notified when form tab order has been recalculated. If the listener has already been added previously, this method will be a no-op. Adding null is not allowed, and will result in an exception.
Adds OnTextFormFieldUpdatedListener to get notified when text fields get updated. If the listener has already been added previously, this method will be a no-op. Adding
null is not allowed, and will result in an exception.
Attaches the form field to its child form elements. This method needs to be implemented by the InternalFormProvider because it's package private on the FormField.
Factory for creating FormElement instances. This is implement by this interface to not expose the form element constructors themselves.
Factory for creating FormField instances. This is implement by this interface to not expose the form field constructors themselves.
Finds a form element for widget annotation.
Finds a form element for widget annotation, asynchronously.
Returns a list of all form elements in the document.
Returns a list of all form elements in the document, asynchronously.
Searches for a form element by name. Returns the first element with given name.
Searches for a form element with a given name, asynchronously.
Returns a list of all form fields in the document.
Returns the list of all form fields in the document, asynchronously.
Searches for a form field with fully qualified field name. Returns the first field with given fullyQualifiedName.
Searches for a form field with fully qualified field name, asynchronously.
Returns order of FormElement for document. We calculate the tab order with two different methods:
Returns order of FormElement for document, asynchronously.
Returns true when fields cache has already been initialized.
Returns whether form fields in this document were modified or not.
Clears dirty state of this forms provider. It's used to clear the modified state after the document has been saved.
Call this method to add new field to cache. Use case for this is that, form field has been encountered in document that is not in global AcroForms array and core notifies us about this field.
Called when the form fields cache should be prepared for the first time. This can take a while and should not be executed on the main thread.
Allows to programmatically remove a form element from the document.
Allows to programmatically remove a form element from the document, asynchronously.
Removes previously registered OnButtonFormFieldUpdatedListener. Upon calling this method the listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Passing null is not allowed, and will result in an exception.
Removes previously registered OnChoiceFormFieldUpdatedListener. Upon calling this method the listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Passing null is not allowed, and will result in an exception.
Removes previously registered OnFormFieldUpdatedListener. Upon calling this method the listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Passing null is not allowed, and will result in an exception.
Removes previously registered OnFormTabOrderUpdatedListener. Upon calling this method the listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Passingnull is not allowed, and will result in an exception.
Removes previously registered OnTextFormFieldUpdatedListener. Upon calling this method the listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Passing null is not allowed, and will result in an exception.
Resets a form, represented by a list of form fields, to default values.