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

Examples of org.waveprotocol.wave.client.wavepanel.view.dom.full.BlipQueueRenderer$PagingHandler


      StageOne stageOne = stageTwo.getStageOne();
      WavePanelImpl panel = stageOne.getWavePanel();
      FocusFramePresenter focus = stageOne.getFocusFrame();
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      WaveDocuments<? extends InteractiveDocument> docs = stageTwo.getDocumentRegistry();
      BlipQueueRenderer blipQueue = stageTwo.getBlipQueue();
      EditSession edit = getEditSession();
      return ActionsImpl.create(views, docs, blipQueue, focus, edit);
    }
View Full Code Here


    protected ViewFactory createViewFactories() {
      return ViewFactories.FIXED;
    }

    protected DomRenderer createRenderer() {
      final BlipQueueRenderer pager = getBlipQueue();
      DocRefRenderer docRenderer = new DocRefRenderer() {
        @Override
        public UiBuilder render(
            ConversationBlip blip, IdentityMap<ConversationThread, UiBuilder> replies) {
          // Documents are rendered blank, and filled in later when
          // they get paged in.
          pager.add(blip);
          return DocRefRenderer.EMPTY.render(blip, replies);
        }
      };

      RenderingRules<UiBuilder> rules = new FullDomRenderer(
View Full Code Here

  }

  private void initNewWave(StageThree three) {
    // Do the new-wave flow.
    ModelAsViewProvider views = two.getModelAsViewProvider();
    BlipQueueRenderer blipQueue = two.getBlipQueue();
    ConversationView wave = two.getConversations();

    // Force rendering to finish.
    blipQueue.flush();
    BlipView blipUi = views.getBlipView(wave.getRoot().getRootThread().getFirstBlip());
    three.getEditActions().startEditing(blipUi);
  }
View Full Code Here

    three.getEditActions().startEditing(blipUi);
  }

  private void handleExistingWave(StageThree three) {
    if (waveRef.hasDocumentId()) {
      BlipQueueRenderer blipQueue = two.getBlipQueue();
      blipQueue.flush();
      selectAndFocusOnBlip(two.getReader(), two.getModelAsViewProvider(), two.getConversations(),
          one.getFocusFrame(), waveRef);
    }
  }
View Full Code Here

        return new StageTwo.DefaultProvider(one, null) {
          WaveViewData waveData;
          StringMap<DocOp> diffMap = CollectionUtils.createStringMap();

          @Override protected DomRenderer createRenderer() {
            final BlipQueueRenderer pager = getBlipQueue();
            DocRefRenderer docRenderer = new DocRefRenderer() {
                @Override
                public UiBuilder render(
                    ConversationBlip blip, IdentityMap<ConversationThread, UiBuilder> replies) {
                  // Documents are rendered blank, and filled in later when
                  // they get paged in.
                  pager.add(blip);
                  return DocRefRenderer.EMPTY.render(blip, replies);
                }
              };
            RenderingRules<UiBuilder> rules = new MyFullDomRenderer(
                getBlipDetailer(), docRenderer, getProfileManager(),
View Full Code Here

    protected ViewFactory createViewFactories() {
      return ViewFactories.FIXED;
    }

    protected DomRenderer createRenderer() {
      final BlipQueueRenderer pager = getBlipQueue();
      DocRefRenderer docRenderer = new DocRefRenderer() {
        @Override
        public UiBuilder render(
            ConversationBlip blip, IdentityMap<ConversationThread, UiBuilder> replies) {
          // Documents are rendered blank, and filled in later when
          // they get paged in.
          pager.add(blip);
          return DocRefRenderer.EMPTY.render(blip, replies);
        }
      };

      RenderingRules<UiBuilder> rules = new FullDomRenderer(
View Full Code Here

      StageOne stageOne = stageTwo.getStageOne();
      WavePanelImpl panel = stageOne.getWavePanel();
      FocusFramePresenter focus = stageOne.getFocusFrame();
      ModelAsViewProvider views = stageTwo.getModelAsViewProvider();
      WaveDocuments<? extends InteractiveDocument> docs = stageTwo.getDocumentRegistry();
      BlipQueueRenderer blipQueue = stageTwo.getBlipQueue();
      EditSession edit = getEditSession();
      return ActionsImpl.create(views, docs, blipQueue, focus, edit);
    }
View Full Code Here

  }

  private void initNewWave(StageThree three) {
    // Do the new-wave flow.
    ModelAsViewProvider views = two.getModelAsViewProvider();
    BlipQueueRenderer blipQueue = two.getBlipQueue();
    ConversationView wave = two.getConversations();

    // Force rendering to finish.
    blipQueue.flush();
    BlipView blipUi = views.getBlipView(wave.getRoot().getRootThread().getFirstBlip());
    three.getEditActions().startEditing(blipUi);
  }
View Full Code Here

    three.getEditActions().startEditing(blipUi);
  }

  private void handleExistingWave(StageThree three) {
    if (waveRef.hasDocumentId()) {
      BlipQueueRenderer blipQueue = two.getBlipQueue();
      blipQueue.flush();
      selectAndFocusOnBlip(two.getReader(), two.getModelAsViewProvider(), two.getConversations(),
          one.getFocusFrame(), waveRef);
    }
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.wavepanel.view.dom.full.BlipQueueRenderer$PagingHandler

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.