public final class

ResetFormAction

extends AbstractFormAction
java.lang.Object
   ↳ com.pspdfkit.annotations.actions.Action
     ↳ com.pspdfkit.annotations.actions.AbstractFormAction
       ↳ com.pspdfkit.annotations.actions.ResetFormAction

Class Overview

Resets one or more form fields to their default value.

Summary

Public Constructors
ResetFormAction(List<FormField> formFields, boolean excludeFormFields)
Creates action instance.
ResetFormAction(List<String> fieldNames, boolean excludeFormFields, List<Action> subActions)
Creates action instance.
Public Methods
boolean equals(Object o)
ActionType getType()
Returns type of action to make down-casting easier.
int hashCode()
boolean shouldExcludeFormFields()
Indicates whether to include form fields in getFieldNames() in the action or exclude them.
String toString()
[Expand]
Inherited Methods
From class com.pspdfkit.annotations.actions.AbstractFormAction
From class com.pspdfkit.annotations.actions.Action
From class java.lang.Object

Public Constructors

public ResetFormAction (List<FormField> formFields, boolean excludeFormFields)

Creates action instance.

Parameters
formFields List of target form fields.
excludeFormFields true to reset all fields except target form fields false to reset only the target form fields.

public ResetFormAction (List<String> fieldNames, boolean excludeFormFields, List<Action> subActions)

Creates action instance.

Parameters
fieldNames List of target form field names.
excludeFormFields true to reset all fields except target form fields false to reset only the target form fields.
subActions List of sub-actions of this action.

Public Methods

public boolean equals (Object o)

public ActionType getType ()

Returns type of action to make down-casting easier.

Returns
  • Type of this action.

public int hashCode ()

public boolean shouldExcludeFormFields ()

Indicates whether to include form fields in getFieldNames() in the action or exclude them.

Returns
  • If false, the list of fields specifies which fields to include. If true, the list of fields indicates which fields to exclude.

public String toString ()