Package org.waveprotocol.wave.client.wavepanel.impl.focus

Examples of org.waveprotocol.wave.client.wavepanel.impl.focus.ViewTraverser


   * Finds the blip that should receive the focus and selects it.
   */
  private static void selectAndFocusOnBlip(Reader reader, ModelAsViewProvider views,
      ConversationView wave, FocusFramePresenter focusFrame, WaveRef waveRef) {
    FocusBlipSelector blipSelector =
        FocusBlipSelector.create(wave, views, reader, new ViewTraverser());
    BlipView blipUi = blipSelector.selectBlipByWaveRef(waveRef);
    // Focus on the selected blip.
    if (blipUi != null) {
      focusFrame.focus(blipUi);
    }
View Full Code Here


  private ViewToolbar(ToplevelToolbarWidget toolbarUi, FocusFramePresenter focusFrame,
      ModelAsViewProvider views, ConversationView wave, Reader reader) {
    this.toolbarUi = toolbarUi;
    this.focusFrame = focusFrame;
    this.reader = reader;
    blipSelector = FocusBlipSelector.create(wave, views, reader, new ViewTraverser());
  }
View Full Code Here

   *
   * @return the feature.
   */
  public static Reader install(LocalSupplementedWave supplement, FocusFramePresenter focus,
      ModelAsViewProvider models, DocumentRegistry<? extends InteractiveDocument> documents) {
    ViewTraverser traverser = new ViewTraverser();
    final Reader reader = new Reader(supplement, models, documents, traverser);
    focus.setOrder(reader);
    focus.addListener(reader);
    return reader;
  }
View Full Code Here

   *
   * @return the feature.
   */
  public static Reader install(LocalSupplementedWave supplement, FocusFramePresenter focus,
      ModelAsViewProvider models, DocumentRegistry<? extends InteractiveDocument> documents) {
    ViewTraverser traverser = new ViewTraverser();
    final Reader reader = new Reader(supplement, models, documents, traverser);
    focus.setOrder(reader);
    focus.addListener(reader);
    return reader;
  }
View Full Code Here

  private ViewToolbar(ToplevelToolbarWidget toolbarUi, FocusFramePresenter focusFrame,
      ModelAsViewProvider views, ConversationView wave, Reader reader) {
    this.toolbarUi = toolbarUi;
    this.focusFrame = focusFrame;
    this.reader = reader;
    blipSelector = FocusBlipSelector.create(wave, views, reader, new ViewTraverser());
  }
View Full Code Here

   * Finds the blip that should receive the focus and selects it.
   */
  private static void selectAndFocusOnBlip(Reader reader, ModelAsViewProvider views,
      ConversationView wave, FocusFramePresenter focusFrame, WaveRef waveRef) {
    FocusBlipSelector blipSelector =
        FocusBlipSelector.create(wave, views, reader, new ViewTraverser());
    BlipView blipUi = blipSelector.selectBlipByWaveRef(waveRef);
    // Focus on the selected blip.
    if (blipUi != null) {
      focusFrame.focus(blipUi);
    }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.wavepanel.impl.focus.ViewTraverser

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.