FormEditInfo
class FormEditInfo : Parcelable
Record of a form filling operation that has been executed on a single form field in a PDF. Contains the minimum amount of data required to replicate the action on the form.
Summary
Constants |
|
|---|---|
const Int |
EDIT_TYPE_CLICK = 0Indicates a click on a clickable form widget |
const Int |
Represents setting indices on a combobox or listbox form widget |
const Int |
Represents setting text on a text field or editable combobox form widget |
Public companion functions |
|
|---|---|
FormEditInfo |
createClick(widgetIndex: @IntRange(from = 0) Int, clickPoint: PdfPoint)Create a FormEditInfo object of type |
FormEditInfo |
createSetIndices(Create a FormEditInfo object of type |
FormEditInfo |
createSetText(Create a FormEditInfo object of type |
Public companion properties |
|
|---|---|
Parcelable.Creator<FormEditInfo> |
Public functions |
|
|---|---|
open Int |
|
open operator Boolean |
|
Int |
getSelectedIndexAt(index: Int)Returns the index of the selected item in the list |
open Int |
hashCode() |
open Unit |
writeToParcel(dest: Parcel, flags: Int) |
Public properties |
|
|---|---|
PdfPoint? |
|
Int |
Represents the page number on which the edit occurred |
Int |
Returns the count of the selected items. |
String? |
|
Int |
|
Int |
Represents the index of the widget that was edited. |
Constants
EDIT_TYPE_SET_INDICES
const val EDIT_TYPE_SET_INDICES = 1: Int
Represents setting indices on a combobox or listbox form widget
EDIT_TYPE_SET_TEXT
const val EDIT_TYPE_SET_TEXT = 2: Int
Represents setting text on a text field or editable combobox form widget
Public companion functions
createClick
fun createClick(widgetIndex: @IntRange(from = 0) Int, clickPoint: PdfPoint): FormEditInfo
Create a FormEditInfo object of type EDIT_TYPE_CLICK
| Parameters | |
|---|---|
widgetIndex: @IntRange(from = 0) Int |
The index of the widget that was edited. |
clickPoint: PdfPoint |
The point on the |
createSetIndices
fun createSetIndices(
pageNumber: @IntRange(from = 0) Int,
widgetIndex: @IntRange(from = 0) Int,
selectedIndices: IntArray
): FormEditInfo
Create a FormEditInfo object of type EDIT_TYPE_SET_INDICES
createSetText
fun createSetText(
pageNumber: @IntRange(from = 0) Int,
widgetIndex: @IntRange(from = 0) Int,
text: String
): FormEditInfo
Create a FormEditInfo object of type EDIT_TYPE_SET_TEXT
Public companion properties
Public functions
getSelectedIndexAt
fun getSelectedIndexAt(index: Int): Int
Returns the index of the selected item in the list FormWidgetInfo.listItems at the given index in the list of selected indices.
| Parameters | |
|---|---|
index: Int |
The position of the selected index to retrieve, from 0 to |
| Returns | |
|---|---|
Int |
The index of the selected item from the list |
Public properties
pageNumber
val pageNumber: Int
Represents the page number on which the edit occurred
selectedIndexCount
val selectedIndexCount: Int
Returns the count of the selected items.
| See also | |
|---|---|
createSetIndices |
'selectedIndices' in |
widgetIndex
val widgetIndex: Int
Represents the index of the widget that was edited.