Package com.pspdfkit.forms
Class PushButtonFormElement
-
- All Implemented Interfaces:
public class PushButtonFormElement extends ButtonFormElement
A simple push button that responds immediately to user input without retaining any state.
-
-
Method Summary
Modifier and Type Method Description FormType
getType()
Gets form type for PushButtonFormElement. PushButtonFormField
getFormField()
Retrieve parent form field. Action
getAction()
Returns the action that should be performed once this push button is pressed. void
setAction(@Nullable() Action action)
Sets action to the link annotation. Bitmap
getBitmap()
Returns the bitmap set for this push button form element. void
setBitmap(@NonNull() Bitmap bitmap)
Sets a custom bitmap for this button form element. -
-
Method Detail
-
getType
@NonNull() FormType getType()
Gets form type for PushButtonFormElement. See FormType.
- Returns:
Form type for PushButtonFormElement.
-
getFormField
@NonNull() PushButtonFormField getFormField()
Retrieve parent form field.
- Returns:
Attached parent form field.
-
getAction
@Nullable() Action getAction()
Returns the action that should be performed once this push button is pressed.
- Returns:
Action to be performed once this button is pressed,
null
when no action exists.
-
setAction
void setAction(@Nullable() Action action)
Sets action to the link annotation.
- Parameters:
action
- Action to be activated when the push button form element is pressed,null
to remove action.
-
getBitmap
@Nullable() Bitmap getBitmap()
Returns the bitmap set for this push button form element.
- Returns:
Bitmap set for this push button, may be
null
.
-
-
-
-