java.lang.Object | |
↳ | com.pspdfkit.forms.FormElementConfiguration.BaseBuilder<V extends com.pspdfkit.forms.FormElementConfiguration, B extends com.pspdfkit.forms.FormElementConfiguration.BaseBuilder<V, B>> |
![]() |
Base builder to be used for all builders declared in the FormElementConfiguration
subclasses.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BaseBuilder(int pageIndex, RectF boundingBox)
Creates a new
FormElementConfiguration builder. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract V |
build()
Creates a
FormElementConfiguration with the arguments supplied to this builder. | ||||||||||
B |
setAdditionalAction(AnnotationTriggerEvent triggerEvent, Action action)
Sets the action that should be executed for given annotation trigger event.
| ||||||||||
B |
setNextElement(FormElement nextElement)
Sets next form element in form tab order.
| ||||||||||
B |
setPreviousElement(FormElement previousElement)
Sets previous form element in form tab order.
| ||||||||||
B |
setReadOnly(boolean isReadOnly)
Sets whether the form element is read-only.
| ||||||||||
B |
setRequired(boolean isRequired)
Sets whether the form element is required.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract B |
getThis()
Returns correct type of this builder.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new FormElementConfiguration
builder.
pageIndex | Page index where the checkbox form element will be attached. |
---|---|
boundingBox | Annotation bounding box of the widget annotation representing the appearance of the checkbox form element. |
Creates a FormElementConfiguration
with the arguments supplied to this builder.
Sets the action that should be executed for given annotation trigger event.
triggerEvent | Event for which to set the action. |
---|---|
action | Action to be executed when triggerEvent occurs, null to
remove existing action.
|
Sets next form element in form tab order.
nextElement | Next form element in form tab order. |
---|
Sets previous form element in form tab order.
previousElement | Previous form element in form tab order. |
---|
Sets whether the form element is read-only. If set, the user may not change the value of the created form element.
isReadOnly | true when the form element should be read-only.
|
---|
Sets whether the form element is required. If set, the field is required to have a value at the time it is exported by a submit form action.
isRequired | true when the form element should be required.
|
---|
Returns correct type of this builder.