Click event to a Gwt-connector

Posted by sprasad12 on Stack Overflow See other posts from Stack Overflow or by sprasad12
Published on 2010-02-09T00:10:52Z Indexed on 2010/03/18 22:41 UTC
Read the original article Hit count: 404

Filed under:
|

Hi,

I am trying to add click event to one of the widgets that use gwt-connector. Here is the code:

public class Diagrams extends Diagram implements HasClickHandlers{

    public Diagrams(AbsolutePanel boundaryPanel) {
        super(boundaryPanel);
    }

    @Override
    public HandlerRegistration addClickHandler(ClickHandler handler) {
        return addDomHandler(handler, ClickEvent.getType());
    }

    @Override
    public void fireEvent(GwtEvent<?> event) {

    }    
}

Here Diagram is a gwt-connector class. Here is the link to the Diagram class and also link to GWT-Connector.

Question:

  1. Am i doing anything wrong in the code while adding the clickhandler?
  2. I am getting error saying that addDomHandler is undefined for the type Diagrams. are there limitations for adding click handlers?

Any input will be of great help. Thank you.

© Stack Overflow or respective owner

Related posts about gwt

Related posts about java