Esempio n. 1
0
  private FxNode processEventHandlerAttribute(String event, String content) {
    EventHandler eh;

    if (content != null && content.startsWith(EVENT_HANDLER_METHOD_PREFIX)) {
      eh = accessor.asMethodRef(accessor.createEventHandler(event));
      accessor.addContent(eh, content.substring(1));

    } else {
      eh = accessor.createEventHandler(event);
      if (content != null && content.length() > 0) {
        accessor.addContent(eh, content);
      }
    }
    return eh;
  }
Esempio n. 2
0
 private FxNode handleEventHandlerTag(String eventName) {
   FxNode node = accessor.createEventHandler(eventName);
   FxNode parent = nodeStack.peek();
   if (!(parent instanceof FxInstance)) {
     accessor.makeBroken(node);
   }
   return node;
 }