/mvp4g-examples

mvp4g-examples

Primary LanguageJavaApache License 2.0Apache-2.0

MVP4G-Examples

To help you understand the framework, Mvp4g comes with tutorials and examples. Here you will find several examples. Most of them are deployed at the app engine.

Examples

#####EmployeeAdmin The GWT PureMvc example (as part of the mvp4g showcase here) but implemented with the Mvp4g framework.

#####EmployeeAdmin with GXT: Same example as EmployeeAdmin but implemented with GXT using different approaches (see Mvp4g and GXT post).

#####Mvp4gMultiPresenterExample This example demonstrates the use of the Multi-Presenter feature of mvp4g without using History.

Once the program is started, you'll see a Dashboard with an empty portlet. This portlet contains the unique IDs of all opened presenter. By pressing the 'add tab'-button, a new tab is created and the unique ID of the presenter is added to the grid of open tabs. Double clicking a row in the grid will bring the corresponding presenter to front.

The implementation is done with a mvp4g Eventhandler which manages new tab, open tab and closing a tab.

#####Mvp4gMultiPresenterWirthHistorieExample This example demonstrates the use of the Multi-Presenter feature of mvp4g supporting History.

After starting the application, it shows a list of person. To open a new tab, double click a row in the grid. It is also possible to add a new person by pressing the 'add person'-button.

The history is implemented in that way, that it will always remembers all open tabs. If the program is reloaded, it shows all tabs open, that where selected the last time. Using the browsers back- or forward-button will not change the opened tabs. It might be possible to implement this by changing the implementation inside the history converter.