Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    addHandler general mouse events

    Hello,

    I have a ListGrid and I want to use

    listGrid.addHandler(handler, type)

    I want my list grid to get ALL mouse clicks in the application when it is visible. And based on if the mouse click is contained in it will determine if it is visible or not.

    Does anyone have an example of .addHandler for smart gwt ListGrid? I have written lots of simple handlers, but not one that works outside of the control I am in.

    Any tips or direction would be great!!

    Thanks,
    Evan

    #2
    something like

    I tried the following, smart gwt 3.1, gwt 2.5

    Not only does it not work, but I get no events printing.
    How do I get ALL mouse clicks in the app.

    ClickHandler clickHandlerAll = new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
    System.out.println("Sweet click outside!!");
    }

    };
    listGrid.addHandler(clickHandlerAll, ClickEvent.getType());

    Comment


      #3
      Look at addMouse*Handler and addClickHandler

      Comment

      Working...
      X