当前位置: 首页>>代码示例>>Java>>正文


Java ProfileListener类代码示例

本文整理汇总了Java中org.waveprotocol.wave.client.account.ProfileListener的典型用法代码示例。如果您正苦于以下问题:Java ProfileListener类的具体用法?Java ProfileListener怎么用?Java ProfileListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProfileListener类属于org.waveprotocol.wave.client.account包,在下文中一共展示了ProfileListener类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fireUpdates

import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
private void fireUpdates(Profile... profiles) {
  // Note: if this gets too large, this should be extracted into an
  // incremental background task.
  for (ProfileListener listener : listeners) {
    for (int i = 0; i < profiles.length; i++) {
      listener.onProfileUpdated(profiles[i]);
    }
  }
}
 
开发者ID:ArloJamesBarnes,项目名称:walkaround,代码行数:10,代码来源:ContactsManager.java

示例2: SearchPresenter

import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
SearchPresenter(TimerService scheduler, Search search, SearchPanelView searchUi,
    WaveActionHandler actionHandler, SourcesEvents<ProfileListener> profiles) {
  this.search = search;
  this.searchUi = searchUi;
  this.scheduler = scheduler;
  this.actionHandler = actionHandler;
  this.profiles = profiles;
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:9,代码来源:SearchPresenter.java

示例3: create

import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
/**
 * Creates a search presenter.
 *
 * @param model model to present
 * @param view view to render into
 * @param actionHandler handler for actions
 * @param profileEventsDispatcher the dispatcher of profile events.
 */
public static SearchPresenter create(
    Search model, SearchPanelView view, WaveActionHandler actionHandler,
    SourcesEvents<ProfileListener> profileEventsDispatcher) {
  SearchPresenter presenter = new SearchPresenter(
      SchedulerInstance.getHighPriorityTimer(), model, view, actionHandler,
      profileEventsDispatcher);
  presenter.init();
  return presenter;
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:18,代码来源:SearchPresenter.java

示例4: addListener

import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
@Override
public void addListener(ProfileListener listener) {
  listeners.add(listener);
}
 
开发者ID:ArloJamesBarnes,项目名称:walkaround,代码行数:5,代码来源:ContactsManager.java

示例5: removeListener

import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
@Override
public void removeListener(ProfileListener listener) {
  listeners.remove(listener);
}
 
开发者ID:ArloJamesBarnes,项目名称:walkaround,代码行数:5,代码来源:ContactsManager.java

示例6: fireOnUpdated

import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
protected void fireOnUpdated(P profile) {
  for (ProfileListener listener : listeners) {
    listener.onProfileUpdated(profile);
  }
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:6,代码来源:AbstractProfileManager.java


注:本文中的org.waveprotocol.wave.client.account.ProfileListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。