Examples of ElementSelectionEvent


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

Examples of fbench.dom.events.ElementSelectionEvent

  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

Examples of org.apache.tools.ant.gui.event.ElementSelectionEvent

         * @param event Event to post.
         * @return true if event should be propogated, false if
         * it should be cancelled.
         */
        public boolean eventPosted(EventObject event) {
            ElementSelectionEvent e = (ElementSelectionEvent) event;
            String text = _defText;
            ACSElement[] selected = e.getSelectedElements();

            if(selected != null && selected.length > 0) {
                StringBuffer buf = new StringBuffer();
                String name = null;

View Full Code Here

Examples of org.apache.tools.ant.gui.event.ElementSelectionEvent

        public boolean  eventPosted(EventObject event) {
            if(event instanceof ProjectClosedEvent) {
                updateDisplay(null);
            }
            else {
                ElementSelectionEvent e = (ElementSelectionEvent) event;
                ACSElement[] elements = e.getSelectedElements();
                updateDisplay(elements);
            }
            return true;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.