Ejemplo n.º 1
0
 @Override
 public void closeCard() {
   cachingService.remove(CachedObjectKeys.OPENED_CONTENT);
   PlaceRequest place = new PlaceRequest.Builder().nameToken(NameTokens.stories).build();
   CloseCardEvent.fire(
       this, StoriesDashboardPresenter.SLOT_MAIN_CONTENT, handler, place, storySummary);
 }
Ejemplo n.º 2
0
 @Override
 public void onCardClosed(CloseCardEvent event) {
   Object object = event.getObject();
   if (object instanceof StorySummary) {
     StorySummary summary = (StorySummary) object;
     if (summary.getStoryId() == storySummary.getStoryId()) {
       storySummary = summary;
       redraw();
     }
   }
 }