[gwt-contrib] Re: protected com.google.gwt.user.client.ui.Widget.addHandler(H, Type)

2010-11-15 Thread cokol
ike it wants > to be a subclass. > > Le 9 novembre 2010 01:56, cokol a écrit : > > > why is com.google.gwt.user.client.ui.Widget.addHandler(H, Type) > > protected? in case I want to fire a custom event on a widget so that > > the widget is not aware of custom event hand

[gwt-contrib] protected com.google.gwt.user.client.ui.Widget.addHandler(H, Type)

2010-11-09 Thread cokol
why is com.google.gwt.user.client.ui.Widget.addHandler(H, Type) protected? in case I want to fire a custom event on a widget so that the widget is not aware of custom event handler, it makes it difficult to manage. thanks -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: factory methods

2010-10-14 Thread cokol
Webber wrote: > Specific examples might be helpful here. I can see how this might be useful > in some specific cases, but wrapping every new in a template method sounds > like a horribly contorting way to have to write all one's code. > > Le 13 octobre 2010 05:19, cokol a écri

[gwt-contrib] factory methods

2010-10-13 Thread cokol
many other developers, including me, would appreciate if you'd use protected factory methods in non-final classes (even if the class is not abstract), like: a no-go: void func() { A = new A(); A.doSomething(); } instead, a better pattern: --- protected A createA() { return

[gwt-contrib] GWT Compiler / RPC Generator

2010-09-08 Thread cokol
hello all, currently there is an issue, that rpc consideres any possible subclass of the type intended for serialization, i.e. class MyTO { List args; } causes all ArrayList, LinkedList etc. to be considered into serialization, even though never using in the code. during a compile run the comp