summaryrefslogtreecommitdiff
path: root/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-08-22 15:04:18 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2013-08-27 09:53:40 +0100
commitae69f90ec82a8f19557c385c1bb25a3fb4fd5ae3 (patch)
treec620c60d892dfdc0621aef412f1cb6da4d633c88 /platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
parent57ceaf3fe8ea3c180d52d6c01b083bc293835664 (diff)
downloadmupdf-ae69f90ec82a8f19557c385c1bb25a3fb4fd5ae3.tar.xz
Android: add signature checking
Diffstat (limited to 'platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java')
-rw-r--r--platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
index e362d1e7..7b1b8e41 100644
--- a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
+++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java
@@ -49,6 +49,8 @@ public class MuPDFCore
private native void setFocusedWidgetChoiceSelectedInternal(String [] selected);
private native String [] getFocusedWidgetChoiceSelected();
private native String [] getFocusedWidgetChoiceOptions();
+ private native boolean getFocusedWidgetSignatureState();
+ private native String checkFocusedSignatureInternal();
private native int setFocusedWidgetTextInternal(String text);
private native String getFocusedWidgetTextInternal();
private native int getFocusedWidgetTypeInternal();
@@ -183,6 +185,8 @@ public class MuPDFCore
case LISTBOX:
case COMBOBOX:
return new PassClickResultChoice(changed, getFocusedWidgetChoiceOptions(), getFocusedWidgetChoiceSelected());
+ case SIGNATURE:
+ return new PassClickResultSignature(changed, getFocusedWidgetSignatureState());
default:
return new PassClickResult(changed);
}
@@ -201,6 +205,10 @@ public class MuPDFCore
setFocusedWidgetChoiceSelectedInternal(selected);
}
+ public synchronized String checkFocusedSignature() {
+ return checkFocusedSignatureInternal();
+ }
+
public synchronized LinkInfo [] getPageLinks(int page) {
return getPageLinksInternal(page);
}