Hi!

Personally, I do not use the "HasXxxxx" methods. The way I use MVP
+UIBinder to create SomeForm is:

* SomeFormView creates its widgets through UiBinder, which are in
SomeFormView.ui.xml. SomeFormView implements SomeFormDisplay (see
below) which is the interface that SomeFormPresenter expects.

* SomeFormDisplay is an interface, that is implemented by
SomeFormView; this includes getters and setters, but doesn't provide
direct access to any widget. This interface also includes methods to
define callbacks, which are used by SomeFormView when it wants to
return data to SomeFormPresenter, or whenever an event occurs that
needs be handled by SomeFormPresenter. Events are linked to these
callbacks by using @UiHandler; the corresponding code just invokes the
appropriate callback.

* SomeFormPresenter receives a SomeFormDisplay object in its
constructor; thus, it cannot interact with the SomeFormView except
through the SomeFormDisplay interface. Just about the first thing
SomeFormPresenter does, is create appropriate callbacks, and set them
(through the SomeFormDisplay setSuchAndSuchCallback(...) methods).

Is this explanation clear? Is this closer to what you expected?

Best regards,
F.Kereki

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to