public class FormUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static String |
JSON_TYPE |
static String |
JSON_VALUE |
Constructor and Description |
---|
FormUtil() |
Modifier and Type | Method and Description |
---|---|
static List<TextField> |
collectEditableRichTextFields(Form form) |
static List<Field> |
collectVisibleFields(FieldSet fieldSet,
List<Field> fields) |
static List<Field> |
collectVisibleFields(Form form,
List<Field> fields) |
static void |
fieldsToJson(org.json.JSONStringer js,
Collection<Field> fields)
Writes a collection of fields as properties of a JSON object.
|
static Form |
readFromJson(Form form,
org.json.JSONObject jsonObject) |
static String |
writeToJson(Form form) |
public static final String copyright
public static final String JSON_VALUE
public static final String JSON_TYPE
public static void fieldsToJson(org.json.JSONStringer js, Collection<Field> fields) throws org.json.JSONException
js
- the JSONStringer to write to. Must have a JSON object open for writing.fields
- the fields to outputorg.json.JSONException
- if the JSON can not be generated.public static List<Field> collectVisibleFields(FieldSet fieldSet, List<Field> fields)