Пример #1
0
  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);
  }
Пример #2
0
 public void logStatus(String msg) {
   ((XFormsDocument) ownerDocument).log(UserInterface.LVL_STATUS, msg, this);
 }
Пример #3
0
 public void logWarning(String msg) {
   ((XFormsDocument) ownerDocument).log(UserInterface.LVL_WARN, msg, this);
 }
Пример #4
0
 public void logWarning(String msg, Throwable t) {
   ((XFormsDocument) ownerDocument)
       .log(UserInterface.LVL_WARN, "Exception:" + msg + t.toString(), this);
 }
Пример #5
0
 public void logError(Throwable t) {
   ((XFormsDocument) ownerDocument)
       .log(UserInterface.LVL_ERROR, "Exception:" + t.toString(), this);
 }
Пример #6
0
 public void logError(String msg) {
   ((XFormsDocument) ownerDocument).log(UserInterface.LVL_ERROR, msg, this);
 }