Thursday, November 22, 2012

Re: Required solution for all Textbox on value change event - generic way

You need an abstract view class, which all your views extend. In your abstract presenter you register all event handlers to that view. Then you just need a mechanism how your presenter implementations can pass in their concrete view BEFORE the event handlers are registered. Via setter or argument maybe.


On Wed, Nov 21, 2012 at 5:51 PM, Dharanipathi D <dharanipathi@gmail.com> wrote:
Hi all,

In my application we are using 
   1. Screen are designed using UIBinder with a view class to bind 
   2. Presenter as controller and model. 
   3. We do have Base Presenter (abstract with few generic implementations)
   4. We are having many such screens with all screen will have textbox in it and all screen presenter will extends Base Presenter.

-- My requirement is to fire and catch generic event when user changes any textbox in any screen.
-- I dont want to define event for each and every textboxes available in each screen.
-- I want to register all textbox on value change (ValueChangeHandler) event in generic.

Is there anyway we can achieve this.

I would highly appreciate if anyone provides solution for this..

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OkDnE9Pj8vkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment