public class

KeyStrokeEventData

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.KeyStrokeEventData

Class Overview

KeyStokeEventData contains information for executing KeyStrokeAction.

Summary

Public Constructors
KeyStrokeEventData(String field_name, String current_value, String change, int selection_start, int selection_end)
The constructor for KeyStrokeEventData.
Public Methods
void destroy()
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public KeyStrokeEventData (String field_name, String current_value, String change, int selection_start, int selection_end)

The constructor for KeyStrokeEventData. For example, given the starting string "PDFTron Rocks", and the user selected "Tron" and pasted "Net", this would be indicated with the following constructor: KeyStrokeEventData(field_name, "PDFTron Rocks", "Net", 3, 7);.

Parameters
field_name the name of the field where the event happens
current_value the value of the field before event happens
change the value of text that the user wants to add
selection_start the start postion of the selected text
selection_end the end postion of the selected text

Note: slection_start can be the same as selection_end if no text is selected.

Public Methods

public void destroy ()

Protected Methods

protected void finalize ()

Throws
Throwable