@Override public void start(AcceptsOneWidget panel, final EventBus eventBus) { view = clientFactory.getFerriesRouteAlertDetailsView(); this.eventBus = eventBus; view.setPresenter(this); Place place = clientFactory.getPlaceController().getWhere(); if (place instanceof FerriesRouteAlertDetailsPlace) { FerriesRouteAlertDetailsPlace ferriesRouteAlertDetailsPlace = (FerriesRouteAlertDetailsPlace) place; view.setPublishDate( ferriesRouteAlertDetailsPlace.getFerriesRouteAlertItem().getPublishDate()); view.setAlertTitle( ferriesRouteAlertDetailsPlace.getFerriesRouteAlertItem().getAlertFullTitle()); view.setAlertText( ferriesRouteAlertDetailsPlace.getFerriesRouteAlertItem().getAlertFullText()); } panel.setWidget(view); captureClickEvents(); }
@Override public void onStop() { view.setPresenter(null); }