It seems that Panel doesn\'t inherit from HasClickHandlers and I can\'t add a clickHandler to DivElement. Is there any way to add the clickHandler to a DIV?
EDIT:
public class ClickableDiv extends FlowPanel implements HasClickHandlers {
@Override
public HandlerRegistration addClickHandler(ClickHandler handler) {
return addDomHandler(handler, ClickEvent.getType());
}
}
That should be all you need. addDomHandler will take care of "sinking" the event type for you.