Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.MouseDownHandler


  private char accessKey;
  private IVkWidget vkParent;
 
  public VkTree()
  {
    addMouseDownHandler(new MouseDownHandler() {
      @Override
      public void onMouseDown(MouseDownEvent event) {
        if(Element.as(event.getNativeEvent().getEventTarget()) == VkTree.this.getElement() && event.getNativeButton() == NativeEvent.BUTTON_LEFT)
          VkTree.this.setSelectedItem(null);
      }
View Full Code Here


      mouseDownHandlerRegistration.removeHandler();
    mouseDownHandlerRegistration = null;
    mouseDownJs = js.trim();
    if(!mouseDownJs.isEmpty())
    {
      mouseDownHandlerRegistration = addMouseDownHandler(new MouseDownHandler() {
        @Override
        public void onMouseDown(MouseDownEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseDownJs, event, true);
        }
      });
View Full Code Here

      mouseDownHandlerRegistration.removeHandler();
    mouseDownHandlerRegistration = null;
    mouseDownJs = js.trim();
    if(!mouseDownJs.isEmpty())
    {
      mouseDownHandlerRegistration = addMouseDownHandler(new MouseDownHandler() {
        @Override
        public void onMouseDown(MouseDownEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseDownJs, event, true);
        }
      });
View Full Code Here

      mouseDownHandlerRegistration.removeHandler();
    mouseDownHandlerRegistration = null;
    mouseDownJs = js.trim();
    if(!mouseDownJs.isEmpty())
    {
      mouseDownHandlerRegistration = addMouseDownHandler(new MouseDownHandler() {
        @Override
        public void onMouseDown(MouseDownEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseDownJs, event, true);
        }
      });
View Full Code Here

      mouseDownHandlerRegistration.removeHandler();
    mouseDownHandlerRegistration = null;
    mouseDownJs = js.trim();
    if(!mouseDownJs.isEmpty())
    {
      mouseDownHandlerRegistration = addMouseDownHandler(new MouseDownHandler() {
        @Override
        public void onMouseDown(MouseDownEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseDownJs, event, true);
        }
      });
View Full Code Here

  public AutoCompleterTextBox(final List<String> suggestions)
  {
    this(suggestions, PanelPosition.BOTTOM);
  }
  private HandlerRegistration addMouseHandlerToTextBox() {
    return textBox.addMouseDownHandler(new MouseDownHandler(){
      @Override
      public void onMouseDown(MouseDownEvent event) {
        if(!suggestionsPanel.isVisible())
          prepareSuggestions();
    }});
View Full Code Here

    toolBarPanel.setAutoHideEnabled(false);
    DOM.setStyleAttribute(toolBarPanel.getElement(), "zIndex", Integer.toString(1));
    resizePanel.add(resizeImage);
    resizePanel.setAutoHideEnabled(false);
    DOM.setStyleAttribute(resizePanel.getElement(), "zIndex", Integer.toString(1));
    moveImage.addMouseDownHandler(new MouseDownHandler() {
      @Override
      public void onMouseDown(MouseDownEvent event) {
        VkStateHelper.getInstance().getMenu().prepareMenu((IVkWidget) popUpAssociateWidget);
        if(popUpAssociateWidget instanceof TextBoxBase)
          ((TextBoxBase)popUpAssociateWidget).setFocus(false);
        if(event.getNativeButton() == NativeEvent.BUTTON_LEFT && ((IVkWidget)popUpAssociateWidget).isMovable() && popUpAssociateWidget.getParent() instanceof AbsolutePanel) {
          VkStateHelper.getInstance().getMoveHelper().makeMovable((IVkWidget) popUpAssociateWidget);
          event.preventDefault();
          event.stopPropagation();
        }
      }});
    resizeImage.addMouseDownHandler(new MouseDownHandler(){
      @Override
      public void onMouseDown(MouseDownEvent event) {
        VkStateHelper.getInstance().getMenu().prepareMenu((IVkWidget) popUpAssociateWidget);
        if (event.getNativeButton() == NativeEvent.BUTTON_LEFT && ((IVkWidget)popUpAssociateWidget).isResizable()) {
          VkStateHelper.getInstance().getResizeHelper().resize(popUpAssociateWidget);
View Full Code Here

                           }

                       },
                       MouseMoveEvent.getType() );

        addDomHandler( new MouseDownHandler() {

                           public void onMouseDown(MouseDownEvent event) {
                               if ( !resizerInfo.isResizePrimed ) {
                                   return;
                               }
View Full Code Here

        final WindowHeader header = new WindowHeader(title, this);

        // dnd

        header.addMouseDownHandler( new MouseDownHandler() {

            public void onMouseDown(MouseDownEvent event) {
                dragged = true;
                dragStartX = event.getRelativeX( getElement() );
                dragStartY = event.getRelativeY( getElement() );
View Full Code Here

                if ( afterCloseEvent != null ) {
                    afterCloseEvent.execute();
                }   
            }
        } );
        titleBar.addMouseDownHandler( new MouseDownHandler() {

            public void onMouseDown(MouseDownEvent event) {
                dragged = true;
                dragStartX = event.getRelativeX( getElement() );
                dragStartY = event.getRelativeY( getElement() );
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.MouseDownHandler

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.