| java.lang.Object | |||
| ↳ | com.pspdfkit.annotations.Annotation | ||
| ↳ | com.pspdfkit.annotations.LinkAnnotation | ||
| ↳ | com.pspdfkit.annotations.WidgetAnnotation | ||
Represents the appearance of a field in interactive forms.
For form elements with text, the text color comes from the color property of Annotation.
Use getFormElement() to access associated FormElement.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Action |
getAdditionalAction(AnnotationTriggerEvent triggerEvent)
Returns the action that should be executed on annotation trigger event.
| ||||||||||
| Map<AnnotationTriggerEvent, Action> |
getAdditionalActions()
Returns a map of additional actions keyed by their trigger events.
| ||||||||||
| FormElement |
getFormElement()
Returns a form element for widget annotation.
| ||||||||||
| Maybe<FormElement> |
getFormElementAsync()
Returns a form element for widget annotation, asynchronously.
| ||||||||||
| float |
getTextSize()
Returns the text size set to this annotation.
| ||||||||||
| AnnotationType |
getType()
Gets the annotation type of the annotation.
| ||||||||||
| void |
setAdditionalAction(AnnotationTriggerEvent triggerEvent, Action action)
Sets the action that should be executed for the given annotation trigger event.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.LinkAnnotation
| |||||||||||
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
From class
java.lang.Object
| |||||||||||
Returns the action that should be executed on annotation trigger event.
Returns a map of additional actions keyed by their trigger events.
null if no additional actions are set.
Returns a form element for widget annotation.
Note: this call may block for a while and should not be invoked on the main thread.
Note: This call requires forms feature in your license.
null if it doesn't exist.
Returns a form element for widget annotation, asynchronously.
Note: This call requires forms feature in your license.
FormElement or just completing in case the form element is null.
Returns the text size set to this annotation.
Gets the annotation type of the annotation.
Sets the action that should be executed for the 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.
|