return new FormFieldList(this, "//field");
}
@Override
public FormField addField() {
XMLNode body = getDxl().selectSingleNode("/form/body/richtext");
// Create an appropriate paragraph definition
XMLNode finalPardef = getDxl().selectSingleNode("//pardef[last()]");
int nextId = Integer.valueOf(finalPardef.getAttribute("id")) + 1;
XMLNode pardef = body.addChildElement("pardef");
pardef.setAttribute("id", String.valueOf(nextId));
pardef.setAttribute("hide", "notes web mobile");
// Now create the par and the field
XMLNode par = body.addChildElement("par");
par.setAttribute("def", pardef.getAttribute("id"));
// Now add the field
XMLNode field = par.addChildElement("field");
field.setAttribute("kind", "editable");
field.setAttribute("name", "");
field.setAttribute("type", "text");
return new FormField(field);
}