Hive Development Limited: Google Web Toolkit (GWT) MVP Example - 0 views
Google Reader (1000+) - 1 views
MVP vs MVC - 0 views
-
In MVC, the model is heavy with business rules and data access, the view contains the presentation logic, and the controller is typically a framework component with an XML configuration to drive it. In MVP, the model is lightweight POJO value objects, the view is mockable, and the presentation is specific to the model and the view. It is the presentation that has all the dependencies and glue code for the model\nand the view. You get more code coverage in your unit testing with MVP so MVP and TDD go together.
Google Groups - 0 views
Learning Google App Engine and GWT Best Practices: Converting to the MVP architecture - 1 views
Google Web Toolkit Blog: Announcing the Final Release of GWT 2.1 - 2 views
ContactsApplication - gwt-mosaic - 0 views
Presenter First - 0 views
ExtGWT, mvp4g, Google App Engine: GWT App Architecture Best Practices (slides+text) Part 1 - 0 views
Large scale application development and MVP - Part II - 0 views
-
segment the code that declares the UI from the code that drives the UI.
-
we want the our ContactsPresenter to implement a Presenter interface that allows our ContactsView to callback into the presenter when it receives a click, select or other event. The Presenter interface defines the following: public interface Presenter<T> { void onAddButtonClicked(); void onDeleteButtonClicked(); void onItemClicked(T clickedItem); void onItemSelected(T selectedItem); }
-
The first part of wiring everything up is to have our ContactsPresenter implement the Presenter interface, and then register itself with the underlying view. To register itself, we'll need our ContactsView to expose a setPresenter() method: private Presenter<T> presenter; public void setPresenter(Presenter<T> presenter) { this.presenter = presenter; }
- ...8 more annotations...
« First
‹ Previous
121 - 140 of 141
Next ›
Showing 20▼ items per page