Creates a form field creation manager (normally obtained from AnnotationManager.getFormFieldCreationManager).
OptionalannotationManager: AnnotationManager
The annotation manager whose widgets are edited.
OptionaldocViewer: DocumentViewer
The document viewer to redraw.
Adds a listener for an event. Adding the same function twice for one event has no effect.
Allows tools to be used in form field creation mode.
Tool names to allow.
Turns off adding form fields with a single click (the default); fields are drawn by dragging.
Hides markup annotations while in form field creation mode.
Disallows tools in form field creation mode.
Tool names to disallow.
Switch for adding form fields with a click (off by default: a click adds nothing, only dragging out a box does). When on, a click adds one at the default size, which can be changed per tool (setClickCreateSize).
Also shows other annotations in creation mode (shown by default, just not selectable or editable; call disable to hide them).
Does not end while some fields have no name; fires formFieldCreationEmptyFieldNames.
Default size of a form field tool when adding with a click: the changed size if changed, otherwise the tool's own default; undefined when not a form field tool.
Gets the indicator text of a widget in form field creation mode.
The widget.
The indicator text.
Field name of the radio group.
Whether the indicator is shown for a widget in form field creation mode.
The widget.
True when the indicator is shown.
Whether form fields can be added with a single click.
True when click-to-create is on.
Whether form field creation mode is on.
True in form field creation mode.
Whether markup annotations are shown in form field creation mode.
True when shown (the default).
Whether a tool can be used in form field creation mode.
The tool name.
True when the tool is allowed.
Removes every listener of every event.
Changes the default size (pt) of a form field tool (such as TextFormFieldCreateTool) when adding with a click.
Changes a widget's field name and commits; returns whether the name is usable: empty after trimming is empty (still set, used to clear); a name used by another field is duplicate (not changed), except that radio buttons may join a radio group of the same name, but not a non-radio field with that name. For non-radio widgets the whole field is renamed (all widgets of the field together).
Why the name was not accepted, or null when it was.
Whether the name was accepted.
Sets the indicator text of a widget in form field creation mode (for radio buttons, the whole group) and commits.
The widget.
The indicator text.
Shows or hides the indicator of a widget in form field creation mode (for radio buttons, the whole group) and commits.
The widget.
Whether to show the indicator.
Enters form field creation mode: widgets become editable as annotations instead of fillable fields. Fires formFieldCreationModeStarted; does nothing if already in the mode.
Static ReadonlyEventsEvent names of the form field creation manager.
ReadonlyFORM_CREATION_EMPTY_FIELD_NAMES: "formFieldCreationEmptyFieldNames"'formFieldCreationEmptyFieldNames': form field creation mode could not end because some fields have no name.
ReadonlyFORM_CREATION_ENDED: "formFieldCreationModeEnded"'formFieldCreationModeEnded': form field creation mode was left.
ReadonlyFORM_CREATION_STARTED: "formFieldCreationModeStarted"'formFieldCreationModeStarted': form field creation mode was entered.
Base class for objects that fire named events. Listener arguments are passed by position.