Re: How to get internal widget to notify its parent widget when clicked (and have the parent execute something)

2009-04-29 Thread Micky
ublic void onClick(ClickEventevent){ > >      parent.doSomething(); > >    } > > > }); > > > no need to do any sink/unsink mucking about. > > > -jason > > > On Apr 4, 2009, at 8:51 PM, matttai wrote: > > > > As per the title :) >

Re: How to get internal widget to notify its parent widget when clicked (and have the parent execute something)

2009-04-06 Thread Vitali Lovich
would look something like: > > > > myWidget.addClickHandler(new ClickHandler(){ > >public void onClick(ClickEvent event){ > > parent.doSomething(); > >} > > > > }); > > > > no need to do any sink/unsink mucking about. > > > > -jason > > &

Re: How to get internal widget to notify its parent widget when clicked (and have the parent execute something)

2009-04-06 Thread matttai
gt; > -jason > > On Apr 4, 2009, at 8:51 PM, matttai wrote: > > > > > > > As per the title :) > > > How to get internal widget to notify its parent widget when clicked > > (and have the parent execute something)? > > > I think it has something to

Re: How to get internal widget to notify its parent widget when clicked (and have the parent execute something)

2009-04-06 Thread Jason Essington
about. -jason On Apr 4, 2009, at 8:51 PM, matttai wrote: > > As per the title :) > > How to get internal widget to notify its parent widget when clicked > (and have the parent execute something)? > > I think it has something to do with sinking and unsinking events but I > hav

Re: How to get internal widget to notify its parent widget when clicked (and have the parent execute something)

2009-04-05 Thread gregor
ChangeListener and SourcesChangeEvents interfaces for example, of if 1.6.x you should use maybe HasValueChangeHandlers and ValueChangeHandler. regards gregor On Apr 5, 3:51 am, matttai wrote: > As per the title :) > > How to get internal widget to notify its parent widget when clicked > (

How to get internal widget to notify its parent widget when clicked (and have the parent execute something)

2009-04-04 Thread matttai
As per the title :) How to get internal widget to notify its parent widget when clicked (and have the parent execute something)? I think it has something to do with sinking and unsinking events but I haven't been able to find a very good example of doing this. Any help would be apprec