public void handleEvent(DOMEvent evt) { String src = this.getAttribute("src"); String ref = getAttribute("ref"); String name = getAttribute("name"); if (src == "" || ref == "" || name == "") { logError("Empty src, ref or name attribute"); return; } NodeSet nset = this.getValue(ref).asNodeSet(); Node refNode = null; if (nset != null) { refNode = nset.firstNode(); } if (refNode == null) { logError("Reference binding failed"); } ((XFormsDocument) ownerDocument).restore(src, refNode, name); }
public void logStatus(String msg) { ((XFormsDocument) ownerDocument).log(UserInterface.LVL_STATUS, msg, this); }
public void logWarning(String msg) { ((XFormsDocument) ownerDocument).log(UserInterface.LVL_WARN, msg, this); }
public void logWarning(String msg, Throwable t) { ((XFormsDocument) ownerDocument) .log(UserInterface.LVL_WARN, "Exception:" + msg + t.toString(), this); }
public void logError(Throwable t) { ((XFormsDocument) ownerDocument) .log(UserInterface.LVL_ERROR, "Exception:" + t.toString(), this); }
public void logError(String msg) { ((XFormsDocument) ownerDocument).log(UserInterface.LVL_ERROR, msg, this); }