On Monday, September 19, 2011 5:43:09 PM UTC+2, gwa wrote:
*@UiHandler(dialogOk)*
*void dialogOk(final ClickEvent event) {*
*yourOtherClass.doSomething();*
*}*
Imagine your other class is an Activity (Presenter from MVP pattern), and
you have a correcttly separated
I have
*@UiHandler(dialogOk)*
*void dialogOk(final ClickEvent event) {*
*// do something*
*}*
*
*
This is perfectly valid code if dialogOk is within THIS class but how can I
add a ClickHandler to a static Widget that is defined in another class?
I want to avoid putting this
write a @UiHandler method in another class the widget is declared look
stupid to me. (Cool, let's put 8 class with @UiHandler(widget) and let see
which handler wins!)
Why don't you simply do the opposite?
*@UiHandler(dialogOk)*
*void dialogOk(final ClickEvent event) {*
*