gwt-activities

GWT MVP updating Activity state on Place change

て烟熏妆下的殇ゞ 提交于 2020-01-01 03:17:09
问题 What is the best practise to update Activity state on Place change? Imagine you have an activity with view that displays list of categories and list of items in the category. If different category is selected then app goes to new place with category ID. I want then to only refresh items and not to create new activity that also re-reads category list. My current approach is like this: public class AppActivityMapper implements ActivityMapper { private ItemListActivity itemListActivity; ...

GWT MVP updating Activity state on Place change

丶灬走出姿态 提交于 2019-12-03 07:33:57
What is the best practise to update Activity state on Place change? Imagine you have an activity with view that displays list of categories and list of items in the category. If different category is selected then app goes to new place with category ID. I want then to only refresh items and not to create new activity that also re-reads category list. My current approach is like this: public class AppActivityMapper implements ActivityMapper { private ItemListActivity itemListActivity; ... public Activity getActivity(final Place place) { final Activity activity; if (place instanceof