I am having a great deal of trouble figuring out how implement MVP
pattern for a view extending/aggregating Tree.

Much of the logic which I'd like to put in presenter would involve
manipulating TreeItems, but TreeItem's constructor calls GWT.create()
and thus can not be called from a normal JUnit/JMock context.

I am about to try an approach where I'll need:
TreePanelPresenter (class)
TreePanel (Interface)
TreePanelImpl (extending or aggregating Tree)
TreePanelItem (interface)
TreePanelItemImpl (extending or aggregating TreeItem)
TreePanelItemStub (mimicking TreeItem behavior used by
TreePanelPresenter)

Am I on the right track?
Any idea why TreeItem uses GWT.create() in the first place?

Kind regards
Jan Hornbøll Hansen

-- 
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.

Reply via email to