I'm developing a large system using MVP. In my view I use the
interfaces for returning HasClickHandlers instead of returning a
Button since I want to decouple the view as much as possible from the
presenter. My question is when I have a TextBox for example and want
to use both addKeyDownHandler, addValueChangeHandler and also read the
text from it, should I have 3 methods in my view that returns
something like
public HasValue<String> getEmailValue() { return emailBox };
public HasKeyDownHandlers getEmailDown() { return emailBox };
public HasValueChangeHandlers<String> getEmailChange() { return
emailBox; }
This seems a bit awkward. Is there any better way or is this the best
practice if I want to use the HasHandlers interfaces?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.