开发者

View state, new activity start

开发者 https://www.devze.com 2023-03-09 11:58 出处:网络
I use the MVP pattern in my project. According to it Place define view after a new Activity starts. In some cases when I have to save the content of some Text areas after change of Place. I think that

I use the MVP pattern in my project. According to it Place define view after a new Activity starts. In some cases when I have to save the content of some Text areas after change of Place. I think that it is not a good idea to put these text areas in Place, because they don't define business logic. To save them in View elements is no开发者_如何学Got good either. How do I resolve this situation?


GUI elements (GWT widgets) belong in Views. Why do you think otherwise?

Then your View interface (or is it Display?) can have getTextData()/setTextData() methods to retrieve data in your TextBox.

0

精彩评论

暂无评论...
验证码 换一张
取 消