MVP: Should the View implement a Presenter's interface or vice versa?

前端 未结 3 854
离开以前
离开以前 2020-12-14 03:25

I am doing my first steps with GWT. I have a question after reading:

  • Large scale application development and MVP
  • Large scale application
3条回答
  •  爱一瞬间的悲伤
    2020-12-14 04:18

    In the second tutorial the code was changed to using a Presenter interface (defined in the view) to accommodate using UiBinders and Java generics. I think the Presenter interface was moved to the View interface as they both share the same generic T.

提交回复
热议问题