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

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


  }
  @Override
  public void setWidget(int row, int col, Widget widget){
    if(row >= 0 && row < getRowCount() && col >=0 && col < getCellCount(row) && widget instanceof IVkWidget){
      super.setWidget(row, col, widget);
      widget.addDomHandler(new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
          if(startSelection){
            clearSelectedCells();
            Element td = getEventTargetCell(Event.as(event.getNativeEvent()));
View Full Code Here


      mouseOverHandlerRegistration.removeHandler();
    mouseOverHandlerRegistration = null;
    mouseOverJs = js.trim();
    if(!mouseOverJs.isEmpty())
    {
      mouseOverHandlerRegistration = addMouseOverHandler(new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseOverJs, event, true);
        }
      });
View Full Code Here

      mouseOverHandlerRegistration.removeHandler();
    mouseOverHandlerRegistration = null;
    mouseOverJs = js.trim();
    if(!mouseOverJs.isEmpty())
    {
      mouseOverHandlerRegistration = richTextArea.addMouseOverHandler(new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseOverJs, event, true);
        }
      });
View Full Code Here

      mouseOverHandlerRegistration.removeHandler();
    mouseOverHandlerRegistration = null;
    mouseOverJs = js.trim();
    if(!mouseOverJs.isEmpty())
    {
      mouseOverHandlerRegistration = addMouseOverHandler(new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseOverJs, event, true);
        }
      });
View Full Code Here

      mouseOverHandlerRegistration.removeHandler();
    mouseOverHandlerRegistration = null;
    mouseOverJs = js.trim();
    if(!mouseOverJs.isEmpty())
    {
      mouseOverHandlerRegistration = addMouseOverHandler(new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseOverJs, event, true);
        }
      });
View Full Code Here

      mouseOverHandlerRegistration.removeHandler();
    mouseOverHandlerRegistration = null;
    mouseOverJs = js.trim();
    if(!mouseOverJs.isEmpty())
    {
      mouseOverHandlerRegistration = addMouseOverHandler(new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseOverJs, event, true);
        }
      });
View Full Code Here

      mouseOverHandlerRegistration.removeHandler();
    mouseOverHandlerRegistration = null;
    mouseOverJs = js.trim();
    if(!mouseOverJs.isEmpty())
    {
      mouseOverHandlerRegistration = addMouseOverHandler(new MouseOverHandler() {
        @Override
        public void onMouseOver(MouseOverEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(mouseOverJs, event, true);
        }
      });
View Full Code Here

   
  }
  private HTML getSuggestion(final List<String> suggestions, final int loopIndex, int index
      , String textBoxValue) {
    final HTML option = getSuggestionHtml(loopIndex, index, textBoxValue);
    option.addMouseOverHandler(new MouseOverHandler(){public void onMouseOver(MouseOverEvent event) {
      unHighlight(currentHighLightedOption);
      currentHighLightedOption = suggestionHolder.getWidgetIndex(option);
      hightlight(currentHighLightedOption);
    }});
    option.addClickHandler(new ClickHandler(){public void onClick(ClickEvent event) {
View Full Code Here

        chooser.getElement().getStyle().setWidth(90, Style.Unit.PX);

        title.setStyleName("applet_title");
        status.addStyleName("applet_status");

        RootPanel.get("applet-bar").addDomHandler(new MouseOverHandler() {

            @Override
            public void onMouseOver(MouseOverEvent event) {
                if (DOM.getElementById("main_panel").getClientWidth() > 805) {
                    DOM.getElementById("main_panel").getStyle()
                            .setMarginRight(157, Style.Unit.PX);
                    DOM.getElementById("applet-bar").getStyle()
                            .setWidth(140, Style.Unit.PX);
                    status.getElement().getStyle()
                            .setProperty("MozTransform", "rotate(0deg)");
                    status.getElement().getStyle()
                            .setProperty("WebkitTransform", "rotate(0deg)");
                    status.getElement().getStyle()
                            .setProperty("Transform", "rotate(0deg)");
                    status.getElement().getStyle()
                            .setMarginLeft(7, Style.Unit.PX);
                    status.getElement().getStyle()
                            .setMarginTop(15, Style.Unit.PX);
                    status.getElement().getStyle().setWidth(120, Style.Unit.PX);

                    button_container.getElement().getStyle().setOpacity(1);
                    title.getElement().getStyle().setOpacity(1);
                } else if (DOM.getElementById("applet-bar").getClientWidth() < 80) {

                    DOM.getElementById("applet-bar").getStyle()
                            .setBackgroundColor("#fabebe");
                }
            }
        }, MouseOverEvent.getType());

        locker_r = RootPanel.get("applet-bar").addDomHandler(
                new MouseOutHandler() {

                    @Override
                    public void onMouseOut(MouseOutEvent event) {
                        DOM.getElementById("applet-bar").getStyle()
                                .setBackgroundColor("#FFFFFF");
                        DOM.getElementById("main_panel").getStyle()
                                .setMarginRight(50, Style.Unit.PX);
                        DOM.getElementById("applet-bar").getStyle()
                                .setWidth(33, Style.Unit.PX);
                        status.getElement().getStyle()
                                .setProperty("MozTransform", "rotate(90deg)");
                        status.getElement()
                                .getStyle()
                                .setProperty("WebkitTransform", "rotate(90deg)");
                        status.getElement().getStyle()
                                .setProperty("Transform", "rotate(90deg)");
                        status.getElement().getStyle()
                                .setMarginLeft(-86, Style.Unit.PX);
                        status.getElement().getStyle()
                                .setMarginTop(60, Style.Unit.PX);
                        status.getElement().getStyle()
                                .setWidth(200, Style.Unit.PX);
                        button_container.getElement().getStyle().setOpacity(0);
                        title.getElement().getStyle().setOpacity(0);
                    }
                }, MouseOutEvent.getType());

        final Element lock = DOM.getElementById("lock");

        DOM.setEventListener(lock, new EventListener() {

            @Override
            public void onBrowserEvent(Event event) {

                if (flag) {
                    lock.setAttribute("src", "images/lock.png");
                    locker_r.removeHandler();
                    flag = false;
                } else {
                    lock.setAttribute("src", "images/unlock.png");
                    flag = true;
                    locker_r = RootPanel.get("applet-bar").addDomHandler(
                            new MouseOutHandler() {

                                @Override
                                public void onMouseOut(MouseOutEvent event) {
                                    DOM.getElementById("applet-bar").getStyle()
                                            .setBackgroundColor("#FFFFFF");
                                    DOM.getElementById("main_panel").getStyle()
                                            .setMarginRight(50, Style.Unit.PX);
                                    DOM.getElementById("applet-bar").getStyle()
                                            .setWidth(33, Style.Unit.PX);
                                    status.getElement()
                                            .getStyle()
                                            .setProperty("MozTransform",
                                                    "rotate(90deg)");
                                    status.getElement()
                                            .getStyle()
                                            .setProperty("WebkitTransform",
                                                    "rotate(90deg)");
                                    status.getElement()
                                            .getStyle()
                                            .setProperty("Transform",
                                                    "rotate(90deg)");
                                    status.getElement().getStyle()
                                            .setMarginLeft(-86, Style.Unit.PX);
                                    status.getElement().getStyle()
                                            .setMarginTop(60, Style.Unit.PX);
                                    status.getElement().getStyle()
                                            .setWidth(200, Style.Unit.PX);
                                    button_container.getElement().getStyle()
                                            .setOpacity(0);
                                    title.getElement().getStyle().setOpacity(0);
                                }
                            }, MouseOutEvent.getType());
                }

            }
        });

        DOM.sinkEvents(lock, Event.ONCLICK);

        VerticalPanel tmp = new VerticalPanel();

        tmp.add(rescan);
        tmp.add(chooser);

        button_container.add(tmp);
        main.add(title);
        main.add(status);

        main.add(button_container);
        main.add(on_off);
        main.add(applet);
        RootPanel.get("applet-bar").add(main);

        on_off.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                // send changeStatus signal
                if (event.getRelativeElement().getStyle().getColor()
                        .equals("red")) {
                    event.getRelativeElement().getStyle().setColor("#38D12F");
                } else {
                    event.getRelativeElement().getStyle().setColor("red");
                }

                AppletBar.APPLET_BAR.changeState();
            }
        });

        on_off.addMouseOverHandler(new MouseOverHandler() {
            @Override
            public void onMouseOver(MouseOverEvent event) {
                event.getRelativeElement().getStyle()
                        .setCursor(Style.Cursor.POINTER);
            }
View Full Code Here

        ImageResource imageResource = simulationResources.stepEmpty();
        final Image image = new Image(imageResource);
        final PopupPanel popupPanel = new PopupPanel(true);
        popupPanel.setWidget(new Label(path.getName()
                + " @ " + SimulationTestUtils.formatMillis(step.getDistanceMillis())));
        image.addMouseOverHandler(new MouseOverHandler() {
            public void onMouseOver(MouseOverEvent event) {
                popupPanel.showRelativeTo(image);
            }
        });
        image.addMouseOutHandler(new MouseOutHandler() {
View Full Code Here

TOP

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

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.