Пример #1
0
 /**
  * Call Email share event
  *
  * @param clickEvent instance of {@link ClickEvent}
  */
 @UiHandler("emailPanel")
 public void onEmailClickEvent(ClickEvent event) {
   if (!(socialDo.getShareType().equalsIgnoreCase("private"))) {
     if (AppClientFactory.getCurrentPlaceToken().equals(PlaceTokens.RESOURCE_SEARCH)) {
       MixpanelUtil.Click_Email_FromResource();
     } else if (AppClientFactory.getCurrentPlaceToken().equals(PlaceTokens.COLLECTION_SEARCH)) {
       MixpanelUtil.Click_Email_FromCollection();
     } else if (AppClientFactory.getCurrentPlaceToken().equals(PlaceTokens.COLLECTION_PLAY)
         || AppClientFactory.getCurrentPlaceToken().equals(PlaceTokens.PREVIEW_PLAY)) {
       if (socialShareContainer.getElement().getId().equalsIgnoreCase("collectionShareViewPage")) {
         MixpanelUtil.ClickEmailFromShareInCollectionplayer();
       } else if (socialShareContainer
           .getElement()
           .getId()
           .equalsIgnoreCase("collectionShareSummaryPage")) {
         MixpanelUtil.ClickEmailFromSummaryPageInCollectionplayer();
       }
     }
     onEmailShareEvent();
   }
 }