| java.lang.Object | ||
| ↳ | com.pspdfkit.annotations.actions.Action | |
| ↳ | com.pspdfkit.annotations.actions.HideAction | |
A hide action hides or shows one or more annotations on the screen by setting or clearing their hidden flags.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected final List<AnnotationReference> | annotationReferences | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
HideAction(List<Annotation> annotations, List<FormElement> formElements, boolean shouldHide)
Creates action instance.
| |||||||||||
|
HideAction(List<Annotation> annotations, List<FormElement> formElements, boolean shouldHide, List<Action> subActions)
Creates action instance.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean | equals(Object o) | ||||||||||
| Observable<List<Annotation>> |
getAnnotationsAsync(PdfDocument document)
Resolves target annotations.
| ||||||||||
| ActionType |
getType()
Returns type of action to make down-casting easier.
| ||||||||||
| int | hashCode() | ||||||||||
| boolean |
shouldHide()
Whether to hide or show referenced annotations/form elements.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.actions.Action
| |||||||||||
From class
java.lang.Object
| |||||||||||
Creates action instance.
| annotations | List of target annotations. |
|---|---|
| formElements | List of target form elements. |
| shouldHide | true to hide targets, false to show them.
|
Creates action instance.
| annotations | List of target annotations. |
|---|---|
| formElements | List of target form elements. |
| shouldHide | true to hide targets, false to show them. |
| subActions | List of sub-actions of this action. |
Resolves target annotations. These annotation will be shown/hidden when action is executed.
| document | Owning document. |
|---|
Returns type of action to make down-casting easier.