Package com.pspdfkit.annotations.actions
Class ResetFormAction
-
- All Implemented Interfaces:
public final class ResetFormAction extends AbstractFormAction
Resets one or more form fields to their default value.
-
-
Constructor Summary
Constructors Constructor Description ResetFormAction(List<FormField> formFields, boolean excludeFormFields)
Creates action instance. ResetFormAction(List<String> fieldNames, boolean excludeFormFields, List<Action> subActions)
Creates action instance.
-
Method Summary
Modifier and Type Method Description boolean
shouldExcludeFormFields()
Indicates whether to include form fields in getFieldNames in the action or exclude them. ActionType
getType()
Returns type of action to make down-casting easier. boolean
equals(Object o)
int
hashCode()
String
toString()
-
-
Constructor Detail
-
ResetFormAction
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 fieldsfalse
to reset only the target form fields.
-
ResetFormAction
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 fieldsfalse
to reset only the target form fields.subActions
- List of sub-actions of this action.
-
-
Method Detail
-
shouldExcludeFormFields
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. Iftrue
, the list of fields indicates which fields to exclude.
-
getType
@NonNull() ActionType getType()
Returns type of action to make down-casting easier.
- Returns:
Type of this action.
-
hashCode
int hashCode()
-
-
-
-