Code example for Element

Methods: getNodeName

0
 */ 
public class Form extends XoplonCtrl { 
  public static final String NODENAME = "form";
 
  public static boolean isForm(Element elem) {
    return elem.getNodeName().equals(NODENAME);
  } 
 
  public static Element createForm(Document doc) {
    Element retVal = XoplonCtrl.createCtrl(doc, NODENAME);
    return retVal;
  } 
 
  public static Element addForm(Element parent) {
    Element form = createForm(parent.getOwnerDocument());
    parent.appendChild(form);
    return form;
  } 
 
}