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


Java ModelAsViewProvider类代码示例

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


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

示例1: DynamicDomRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
private DynamicDomRenderer(
    ModelAsViewProvider modelAsViewProvider,
    ShallowBlipRenderer shallowBlipRenderer,
    LiveProfileRenderer profileRenderer,
    LiveSupplementRenderer supplementRenderer,
    FragmentRequester blipRequester,
    ElementRenderer elementRenderer,
    BlipDocumentRenderer blipDocumentRenderer,
    ConversationNavigator navigator,
    ElementMeasurer measurer) {
  super(blipRequester, elementRenderer, blipDocumentRenderer, navigator, measurer);
  
  this.modelAsViewProvider = modelAsViewProvider;
  this.shallowBlipRenderer = shallowBlipRenderer;
  this.profileRenderer = profileRenderer;
  this.supplementRenderer = supplementRenderer;
  
  scroller = new DomScrollerImpl();
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:20,代码来源:DynamicDomRenderer.java

示例2: create

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
public static LiveProfileRenderer create(ProfileManager profiles,
    final ModelAsViewProvider views, final ShallowBlipRenderer blipRenderer) {
  final TimerService timer = SchedulerInstance.getLowPriorityTimer();
  QueueProcessor<ConversationBlip> contributorUpdater =
      new QueueProcessor<ConversationBlip>(timer) {
        
    @Override
    public void process(ConversationBlip blip) {
      BlipView blipUi = blip != null ? views.getBlipView(blip) : null;
      BlipMetaView metaUi = blipUi != null ? blipUi.getMeta() : null;
      if (metaUi != null) {
        blipRenderer.renderContributors(blip, metaUi);
      }
    }
  };
  return new LiveProfileRenderer(profiles, views, contributorUpdater);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:18,代码来源:LiveProfileRenderer.java

示例3: ParticipantController

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
/**
 * @param localDomain nullable. if provided, automatic suffixing will occur.
 */
ParticipantController(
    DomAsViewProvider views,
    ModelAsViewProvider models,
    LocalSupplementedWave supplement,
    ProfileManager profiles,
    ContactManager contacts,
    String localDomain,
    WaveletId waveletId,
    ParticipantsViewBuilder.Css css,
    ParticipantMessages messages) {
  this.views = views;
  this.models = models;
  this.supplement = supplement;
  this.profiles = profiles;
  this.contacts = contacts;
  this.localDomain = localDomain;
  this.waveletId = waveletId;
  this.css = css;
  this.messages = messages;
  contactsView = new ContactModelList(contacts, profiles);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:25,代码来源:ParticipantController.java

示例4: install

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
/**
 * Builds and installs the participant control feature.
 * @param user the logged in user
 */
public static void install(
    WavePanel panel,
    ModelAsViewProvider models,
    LocalSupplementedWave supplement,
    ProfileManager profiles,
    ContactManager contacts,
    WaveletId waveletId,
    String localDomain,
    ParticipantsViewBuilder.Css css,
    ParticipantMessages messages) {
  ParticipantController controller = new ParticipantController(
      panel.getViewProvider(),
      models,
      supplement,
      profiles,
      contacts,
      localDomain,
      waveletId,
      css,
      messages);
  controller.install(panel);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:27,代码来源:ParticipantController.java

示例5: install

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
public static EditSession install(ModelAsViewProvider views,
    DocumentRegistry<? extends InteractiveDocument> documents,
    SelectionExtractor selectionExtractor, FocusFramePresenter focus, WavePanelImpl panel) {
  EditSession edit = new EditSession(views, documents, panel.getGwtPanel(), selectionExtractor, focus);
  focus.addListener(edit);
  if (panel.hasContents()) {
    edit.onInit();
  }
  panel.addListener(focus);

  // Warms up the editor code (e.g., internal statics) by creating and throwing
  // away an editor, in order to reduce the latency of starting the first edit
  // session.
  Editors.create();

  return edit;
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:18,代码来源:EditSession.java

示例6: setUp

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
@Override
protected void setUp() {
  ShallowBlipRenderer populator = mock(ShallowBlipRenderer.class);
  ObservableSupplementedWave supplement = mock(ObservableSupplementedWave.class);
  ProfileManager profiles = new ProfileManagerImpl();
  ThreadReadStateMonitor readMonitor = mock(ThreadReadStateMonitor.class);

  // Create a wave
  wave = createWave();

  // Render it.
  FakeRenderer renderer = FakeRenderer.create(wave);
  ModelAsViewProvider views = renderer;
  rendering = renderer.render(wave);

  // Keep it live.
  ReplyManager replyHandler = new ReplyManager(views);
  timer = new FakeTimerService();
  LiveConversationViewRenderer.create(
      timer, wave, views, populator, replyHandler, readMonitor, profiles, supplement).init();
}
 
开发者ID:apache,项目名称:incubator-wave,代码行数:22,代码来源:WaveRendererTest.java

示例7: DraftModeController

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
protected DraftModeController(Actions actions, LogicalPanel container, DomAsViewProvider domAsViewProvider,
    ModelAsViewProvider modelAsViewProvider, EditSession editSession) {
  this.actions = actions;
  this.container = container;
  this.domAsViewProvider = domAsViewProvider;
  this.modelAsViewProvider = modelAsViewProvider;
  this.editSession = editSession;
  
  messages = WavePanelResourceLoader.getBlipMessages();
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:11,代码来源:DraftModeController.java

示例8: install

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
/**
 * Creates and installs the context menu feature.
 */
public static void install(WavePanel panel, ModelAsViewProvider modelProvider,
    ConversationNavigator navigator, Actions actions) {
  DomAsViewProvider domAsViewProvider = panel.getViewProvider();
  ContinuationIndicatorController controller = new ContinuationIndicatorController(
      domAsViewProvider, modelProvider, navigator, actions);
  
  EventHandlerRegistry handlers = panel.getHandlers();
  handlers.registerMouseComeLeaveHandler(TypeCodes.kind(Type.BLIP_CONTINUATION_BAR), controller);
  handlers.registerMouseComeLeaveHandler(TypeCodes.kind(Type.CONTINUATION_BAR), controller);
  handlers.registerMouseComeLeaveHandler(TypeCodes.kind(Type.CONTINUATION_BUTTON), controller);
  handlers.registerMouseComeLeaveHandler(TypeCodes.kind(Type.CONTINUATION_TEXT), controller);
  handlers.registerClickHandler(TypeCodes.kind(Type.CONTINUATION_BUTTON), controller);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:17,代码来源:ContinuationIndicatorController.java

示例9: ContinuationIndicatorController

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
ContinuationIndicatorController(DomAsViewProvider domAsViewProvider,
    ModelAsViewProvider modelAsViewProvider, ConversationNavigator navigator, Actions actions) {
  this.domAsViewProvider = domAsViewProvider;
  this.modelAsViewProvider = modelAsViewProvider;
  this.navigator = navigator;
  this.actions = actions;
  css = WavePanelResourceLoader.getContinuationIndicator().css();
  messages = WavePanelResourceLoader.getBlipMessages();

  indicator = getElement(ContinuationIndicatorViewBuilder.CONTINUATION_BAR_ID);
  addButton = getElement(ContinuationIndicatorViewBuilder.CONTINUATION_ADD_BUTTON_ID);
  replyButton = getElement(ContinuationIndicatorViewBuilder.CONTINUATION_REPLY_BUTTON_ID);
  line = getElement(ContinuationIndicatorViewBuilder.CONTINUATION_LINE_ID);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:15,代码来源:ContinuationIndicatorController.java

示例10: ElementDomRenderer

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
public ElementDomRenderer(ModelAsViewProvider modelAsViewProvider,
    DomAsViewProvider domAsViewProvider, ReplyManager replyManager, ElementDomMeasurer measurer) {
  this.modelAsViewProvider = modelAsViewProvider;
  this.domAsViewProvider = domAsViewProvider;
  this.replyManager = replyManager;
  this.measurer = measurer;
  blipCss = WavePanelResourceLoader.getBlip().css();
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:9,代码来源:ElementDomRenderer.java

示例11: create

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
public static ParticipantUpdateRenderer create(ModelAsViewProvider modelAsViewProvider,
    LiveProfileRenderer profileRenderer, ObservableConversationView conversationView) {
  ParticipantUpdateRenderer tpr = new ParticipantUpdateRenderer(modelAsViewProvider,
      profileRenderer);
  tpr.bindConversation(conversationView.getRoot());
  conversationView.addListener(tpr.conversationViewListener);
  return tpr;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:9,代码来源:ParticipantUpdateRenderer.java

示例12: create

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
/**
 * Creates a blip document renderer.
 */
public static BlipDocumentRendererImpl create(
    DomAsViewProvider domAsViewProvider,
    ModelAsViewProvider modelAsViewProvider,
    DocumentRegistries registries,
    LogicalPanel logicalPanel) {
  return new BlipDocumentRendererImpl(
      domAsViewProvider,
      modelAsViewProvider,
      registries,
      logicalPanel);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:15,代码来源:BlipDocumentRendererImpl.java

示例13: BlipDocumentRendererImpl

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
private BlipDocumentRendererImpl(
    DomAsViewProvider domAsViewProvider,
    ModelAsViewProvider modelAsViewProvider,
    DocumentRegistries documentRegistries,
    LogicalPanel logicalPanel) {
  this.domAsViewProvider = domAsViewProvider;
  this.modelAsViewProvider = modelAsViewProvider;
  this.documentRegistries = documentRegistries;
  this.logicalPanel = logicalPanel;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:11,代码来源:BlipDocumentRendererImpl.java

示例14: create

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
public static TagUpdateRenderer create(ModelAsViewProvider modelAsViewProvider,
    TagReader tagReader, ObservableConversationView conversationView) {
  TagUpdateRenderer tpr = new TagUpdateRenderer(modelAsViewProvider, tagReader);
  tpr.bindConversation(conversationView.getRoot());
  conversationView.addListener(tpr.conversationViewListener);
  return tpr;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:8,代码来源:TagUpdateRenderer.java

示例15: ScreenPositionDomScroller

import org.waveprotocol.wave.client.wavepanel.view.dom.ModelAsViewProvider; //导入依赖的package包/类
private ScreenPositionDomScroller(ObservableDynamicRenderer renderer,
    SmartScroller<? super BlipView> smartScroller, ModelAsViewProvider modelAsViewProvider,
    Scroller scroller, ElementMeasurer measurer) {
  super(renderer, scroller, measurer);
  
  this.smartScroller = smartScroller;
  this.modelAsViewProvider = modelAsViewProvider;
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:9,代码来源:ScreenPositionDomScroller.java


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