-
8 Sep 2008 7:19 AM #1
getting onBrowserEvent called?
getting onBrowserEvent called?
I have a subclass of DataView that calls sinkEvents(Event.ONCLICK) in its constructor, and I get the onBrowserEvent calls as expected.
But I tried the same technique with a subclass of HtmlContainer, and I don't get the onBrowserEvent method calls. Same is true for subclasses of LayoutContainer, and others.
Why does it work in a DataView subclass but not others?
How can I get the browser events on other classes? I'm sure I'm missing something.
Rob
-
8 Sep 2008 8:16 AM #2
For now I've gone back to the GWT HTML widget, which does the right thing with browser events. But I would prefer to use the Gxt version if I could understand what the issue is.
-
10 Sep 2008 2:35 PM #3
I am not sure this will help... if you provide source to illustrate what you're saying.. but I noticed you are using Event.ONCLICK and listening for onBrowserEvent calls....
Could you try using the following (note the 's' on Event class... which is the GXT event class)
Code:sinkEvents(Events.OnClick) widget.addListener(Events.OnClick, new Listener<ComponentEvent>() { .... }


Reply With Quote