01: package com.canoo.webtest.plugins.pdftest.htmlunit;
02:
03: /**
04: * Represents a form field in a PDF document
05: * @author Etienne Studer
06: * @author Marc Guillemot
07: */
08: public interface PDFField {
09:
10: public static final Type TEXTBOX = new Type("textbox");
11: public static final Type CHECKBOX = new Type("checkbox");
12: public static final Type CHOICE_FIELD = new Type("choice field");
13: public static final Type PUSH_BUTTON = new Type("push button");
14: public static final Type RADIO_COLLECTION = new Type(
15: "radio collection");
16: public static final Type SIGNATURE = new Type("signature");
17: public static final Type OTHER = new Type("other");
18:
19: public static final class Type {
20:
21: private final String fDescription;
22:
23: private Type(final String description) {
24: fDescription = description;
25: }
26:
27: public String toString() {
28: return fDescription;
29: }
30: }
31:
32: String getValue();
33:
34: String getName();
35:
36: boolean isReadOnly();
37: }
|