public class

KeyStrokeActionResult

extends Object
implements AutoCloseable
java.lang.Object
   ↳ com.pdftron.pdf.KeyStrokeActionResult

Class Overview

A class that contains information from a KeyStrokeAction

Summary

Public Methods
void close()
Frees the native memory of the object.
void destroy()
String getText()
The new text to be added.
boolean isValid()
Indicates whether the added text passed validation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Methods

public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public void destroy ()

public String getText ()

The new text to be added. For example, getText() could return an upper case version of the text entered by user.

Returns
  • added text.

public boolean isValid ()

Indicates whether the added text passed validation. returns true if it is, otherwise returns false

Returns
  • true if passed validation, otherwise false