Package org.waveprotocol.wave.client.wavepanel.view

Examples of org.waveprotocol.wave.client.wavepanel.view.ParticipantView


  /**
   * Shows a participation popup for the clicked participant.
   */
  private void handleParticipantClicked(Element context) {
    ParticipantView participantView = views.asParticipant(context);
    final Pair<Conversation, ParticipantId> participation = models.getParticipant(participantView);
    Profile profile = profiles.getProfile(participation.second);

    // Summon a popup view from a participant, and attach profile-popup logic to
    // it.
    final ProfilePopupView profileView = participantView.showParticipation();
    ProfilePopupPresenter profileUi = ProfilePopupPresenter.create(profile, profileView, profiles);
    profileUi.addControl(EscapeUtils.fromSafeConstant(messages.remove()), new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        participation.first.removeParticipant(participation.second);
View Full Code Here


      profileRenderer.monitorParticipation(conversation, participant);
    }

    @Override
    public void onParticipantRemoved(ParticipantId participant) {
      ParticipantView participantUi = views.getParticipantView(conversation, participant);
      if (participantUi != null) {
        participantUi.remove();
      }
      profileRenderer.unmonitorParticipation(conversation, participant);
    }
View Full Code Here

    IdentitySet<Conversation> conversations = participations.get(profile.getAddress());
    if (conversations != null) {
      conversations.each(new Proc<Conversation>() {
        @Override
        public void apply(Conversation conversation) {
          ParticipantView participantUi =
              views.getParticipantView(conversation, profile.getParticipantId());
          if (participantUi != null) {
            participantUi.setAvatar(profile.getImageUrl());
            participantUi.setName(profile.getFullName());
          }
        }
      });
    }
  }
View Full Code Here

  /**
   * Shows a participation popup for the clicked participant.
   */
  private void handleParticipantClicked(Element context) {
    ParticipantView participantView = views.asParticipant(context);
    final Pair<Conversation, ParticipantId> participation = models.getParticipant(participantView);
    Profile profile = profiles.getProfile(participation.second);

    // Summon a popup view from a participant, and attach profile-popup logic to
    // it.
    final ProfilePopupView profileView = participantView.showParticipation();
    ProfilePopupPresenter profileUi = ProfilePopupPresenter.create(profile, profileView, profiles);
    profileUi.addControl(EscapeUtils.fromSafeConstant("Remove"), new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        participation.first.removeParticipant(participation.second);
View Full Code Here

    IdentitySet<Conversation> conversations = participations.get(profile.getAddress());
    if (conversations != null) {
      conversations.each(new Proc<Conversation>() {
        @Override
        public void apply(Conversation conversation) {
          ParticipantView participantUi =
              views.getParticipantView(conversation, profile.getParticipantId());
          if (participantUi != null) {
            participantUi.setAvatar(profile.getImageUrl());
            participantUi.setName(profile.getFullName());
          }
        }
      });
    }
  }
View Full Code Here

      profileRenderer.monitorParticipation(conversation, participant);
    }

    @Override
    public void onParticipantRemoved(ParticipantId participant) {
      ParticipantView participantUi = views.getParticipantView(conversation, participant);
      if (participantUi != null) {
        participantUi.remove();
      }
      profileRenderer.unmonitorParticipation(conversation, participant);
    }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.wavepanel.view.ParticipantView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.