Package com.google.gwt.topspin.ui.client

Examples of com.google.gwt.topspin.ui.client.MouseDownListener


    elem.setClassName(css.timeScaleBase());
    scale = DocumentExt.get().createDivWithClassName(css.scale());
    elem.appendChild(scale);
   
    // Suppress native selections by accidentally dragging on the time scale.
    MouseDownEvent.addMouseDownListener(elem, elem, new MouseDownListener() {
      public void onMouseDown(MouseDownEvent event) {
        event.preventDefault();
      }
    });
  }
View Full Code Here


   * Simply stops ugly native selection on components surrounding our main
   * graph. Accidental drags dirty the UI.
   */
  private void preventNativeSelection(Element tabList,
      DivElement graphContainerElem) {
    MouseDownListener listener = new MouseDownListener() {
      public void onMouseDown(MouseDownEvent event) {
        event.preventDefault();
      }
    };
    MouseDownEvent.addMouseDownListener(tabList, tabList, listener);
View Full Code Here

TOP

Related Classes of com.google.gwt.topspin.ui.client.MouseDownListener

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.