本文整理汇总了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]);
}
}
}
示例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;
}
示例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;
}
示例4: addListener
import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
@Override
public void addListener(ProfileListener listener) {
listeners.add(listener);
}
示例5: removeListener
import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
@Override
public void removeListener(ProfileListener listener) {
listeners.remove(listener);
}
示例6: fireOnUpdated
import org.waveprotocol.wave.client.account.ProfileListener; //导入依赖的package包/类
protected void fireOnUpdated(P profile) {
for (ProfileListener listener : listeners) {
listener.onProfileUpdated(profile);
}
}