Package org.waveprotocol.wave.client.common.util

Examples of org.waveprotocol.wave.client.common.util.StringSequence


   */
  private void saveInlineReplies(BlipMetaDomImpl metaDom) {
    // Iteration is done via ids, in order to identify the thread to get the
    // inline -> default location mapping.

    StringSequence inlineLocators = metaDom.getInlineLocators();
    String inlineId = inlineLocators.getFirst();
    while (inlineId != null) {
      AnchorView inlineUi = views.asAnchor(Document.get().getElementById(inlineId));
      InlineThreadView threadUi = inlineUi.getThread();
      if (threadUi != null) {
        // Move to default location.
        String defaultId = ViewIdMapper.defaultOfInlineAnchor(inlineId);
        AnchorView defaultUi = views.asAnchor(Document.get().getElementById(defaultId));
        inlineUi.detach(threadUi);
        defaultUi.attach(threadUi);
      }

      inlineId = inlineLocators.getNext(inlineId);
    }
  }
View Full Code Here


   */
  private void saveInlineReplies(BlipMetaDomImpl metaDom) {
    // Iteration is done via ids, in order to identify the thread to get the
    // inline -> default location mapping.

    StringSequence inlineLocators = metaDom.getInlineLocators();
    String inlineId = inlineLocators.getFirst();
    while (inlineId != null) {
      AnchorView inlineUi = views.asAnchor(Document.get().getElementById(inlineId));
      InlineThreadView threadUi = inlineUi.getThread();
      if (threadUi != null) {
        // Move to default location.
        String defaultId = ViewIdMapper.defaultOfInlineAnchor(inlineId);
        AnchorView defaultUi = views.asAnchor(Document.get().getElementById(defaultId));
        inlineUi.detach(threadUi);
        defaultUi.attach(threadUi);
      }

      inlineId = inlineLocators.getNext(inlineId);
    }
  }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.common.util.StringSequence

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.