Mvp4gMultiPresenterExample/src/main/java/de/gishmo/mvp4g/example/multipresenter/client/ui/multi/MultiPresenterHandler.java
public void onNewMulti() {
    // create a new instance of the presenter
    final MultiPresenter presenter = eventBus.addHandler(MultiPresenter.class);
    // set state in presenter
    // it's a new presenter
    presenter.setNewData(true);
    // data can be edit
    presenter.setEditData(true);
    // create unique ID for presenter
    String key = GUID.get();
    // create a instance of MultiPresenterModel to store informations
    // about the new presetner instance
    MultiPresenterModel model = new MultiPresenterModel();
    model.setId(key);
    model.setCreated(DateTimeFormat.getFormat("yyyy.MM.dd - HH.mm.ss")
                                   .format(new Date()));
    // store the information in a map with the generated key
    presenter.edit(key,
                   model);
    // create tab
    eventBus.addTabItem(model.getId(),
                        "MultiPresenter: " + model.getId(),
                        presenter.getView()
                                 .asWidget(),
                        true);
    // store presenter registration for further removement
    presenters.put(key,
                   presenter);
  }
/**
   * <p>Creates a new tab and add it to the tab-panel.
   * <br/><br/>
   * New tabs will be also added to the grid of open tabs.</p>
   */
Creates a new tab and add it to the tab-panel.

New tabs will be also added to the grid of open tabs.
Creates a new tab and add it to the tab - panel . New tabs will be also added to the grid of open tabs .
public void onNewMulti() {
    final MultiPresenter presenter = eventBus.addHandler(MultiPresenter.class);
    presenter.setNewData(true);
    presenter.setEditData(true);
    String key = GUID.get();
    MultiPresenterModel model = new MultiPresenterModel();
    model.setId(key);
    model.setCreated(DateTimeFormat.getFormat("yyyy.MM.dd - HH.mm.ss")
                                   .format(new Date()));
    presenter.edit(key,
                   model);
    eventBus.addTabItem(model.getId(),
                        "MultiPresenter: " + model.getId(),
                        presenter.getView()
                                 .asWidget(),
                        true);
    presenters.put(key,
                   presenter);
  }
public void onNewMulti ( ) { final MultiPresenter presenter = eventBus . addHandler ( MultiPresenter . class ) ; presenter . setNewData ( true ) ; presenter . setEditData ( true ) ; String key = GUID . get ( ) ; MultiPresenterModel model = new MultiPresenterModel ( ) ; model . setId ( key ) ; model . setCreated ( DateTimeFormat . getFormat ( "yyyy.MM.dd - HH.mm.ss" ) . format ( new Date ( ) ) ) ; presenter . edit ( key , model ) ; eventBus . addTabItem ( model . getId ( ) , "MultiPresenter: " + model . getId ( ) , presenter . getView ( ) . asWidget ( ) , true ) ; presenters . put ( key , presenter ) ; }
<p>Creates a new tab and add it to the tab-panel.
<p > Creates a new tab and add it to the tab - panel .
// create a new instance of the presenter // set state in presenter // it's a new presenter // data can be edit // create unique ID for presenter // create a instance of MultiPresenterModel to store informations // about the new presetner instance // store the information in a map with the generated key // create tab // store presenter registration for further removement