Package org.waveprotocol.wave.model.document

Examples of org.waveprotocol.wave.model.document.Document.emptyElement()


   * @param documentId the id of the document to erase
   */
  public static void clearDocument(Wavelet wavelet, String documentId) {
    Document document = wavelet.getDocument(documentId);
    if (document.size() != 0) {
      document.emptyElement(document.getDocumentElement());
    }
  }

  /**
   * Clears the content of each document / blip on the provided wavelet.
View Full Code Here


   * @param documentId the id of the document to erase
   */
  public static void clearDocument(Wavelet wavelet, String documentId) {
    Document document = wavelet.getDocument(documentId);
    if (document.size() != 0) {
      document.emptyElement(document.getDocumentElement());
    }
  }

  /**
   * Clears the content of each document / blip on the provided wavelet.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.