I am trying to figure out to use a MouseDownHandler with a ListBox.
I have the following code:
myCombo.addMouseDownHandler(new MouseDownHandler(){
Window.alert("WORKING");
});
I get this error however.
The method addMouseDownHandler(MouseDownHandler) in the type FocusWidget is not applicable for the arguments (new MouseDownHandler(){})
The
MouseDownHandler
has to implement theonMouseDown
method: