Listen for click on VerticalPanel?

2009-09-08 Thread markww
Hi, Is it possible to listen for a click event on a VerticalPanel? I don't see any methods like addClickHandler() for it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: Listen for click on VerticalPanel?

2009-09-08 Thread Tamás Gömbös
Hi, Just extend VerticalPanel and implement the HasClickHandlers interface with this widget. I hope this helps. bye! 2009/9/8 markww mar...@gmail.com Hi, Is it possible to listen for a click event on a VerticalPanel? I don't see any methods like addClickHandler() for it? Thanks

Re: Listen for click on VerticalPanel?

2009-09-08 Thread Mark
Thanks, this is all I had to add after the 'implements': @Override public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); } Thanks again, Mark On Sep 8, 3:11 pm, Tamás Gömbös gomb...@gmail.com wrote: Hi, Just

Re: Listen for click on VerticalPanel?

2009-09-08 Thread Saeed Zarinfam
Hi also you can use this code: VerticalPanel verticalPanel = new VerticalPanel() { @Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); switch (DOM.eventGetType(event)) { case Event.ONCLICK: {