Package fbench.dom.events

Examples of fbench.dom.events.ElementSelectionEvent


      Element mutel = (Element) ((MutationEvent) evt).getRelatedNode();
      System.out.println("GraphView: "+mutel.getTagName());
      if (!mutel.getTagName().equals("ECAction"))
        setElement(element);
    } else if (evt instanceof ElementSelectionEvent) {
      ElementSelectionEvent selevt = (ElementSelectionEvent) evt;
      switch (selevt.getDetail()) {
      case ElementSelectionEvent.ACTIVATE: {
        graphElementSelected(selevt.getSource());
        return;
      }
      case ElementSelectionEvent.HYPERACTIVATE: {
        setElement(selevt.getSelectedElement());
        ((JSplitPane)getParent().getParent().getParent()).validate();
      }
      }
    }
  }
View Full Code Here


  public void handleEvent(Event evt) {
    if ((evt instanceof ElementSelectionEvent)
        && (((ElementSelectionEvent) evt).getSource() == typeNode))
    {
      ElementSelectionEvent sel = (ElementSelectionEvent)evt;
      // process mouse press does:
      /*
      [selevt == ElementSelectionEvent]
      selevt.initSelectionEvent(getElement(), this, evt,
                    ElementSelectionEvent.ACTIVATE);
            ((org.w3c.dom.events.EventTarget) getElement().getOwnerDocument())
                    .dispatchEvent(selevt);
                    */
      sel.initSelectionEvent(this.getElement(), this, ElementSelectionEvent.ACTIVATE);
      //processMousePress(((ElementSelectionEvent) evt).getMouseEvent());
    }
  }
View Full Code Here

TOP

Related Classes of fbench.dom.events.ElementSelectionEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.