Package org.waveprotocol.wave.model.document.ObservableMutableDocument

Examples of org.waveprotocol.wave.model.document.ObservableMutableDocument.Action


    doc = BasicFactories.observableDocumentProvider().create("blort", Attributes.EMPTY_MAP);
    for (Boolean b : state) {
      addEntry(b);
    }

    doc.with(new Action() {
      @Override
      public <N, E extends N, T extends N> void exec(ObservableMutableDocument<N, E, T> doc) {
        target = DocumentBasedBoolean.create(DefaultDocumentEventRouter.create(doc),
            doc.getDocumentElement(), ENTRY_TAG, VALUE_ATTR);
      }
View Full Code Here


  /**
   * Adds an entry to the target map's underlying state. This simulates a
   * concurrent modification by some other agent.
   */
  private void addEntry(final Boolean state) {
    doc.with(new Action() {
      @Override
      public <N, E extends N, T extends N> void exec(ObservableMutableDocument<N, E, T> doc) {
        E container = doc.getDocumentElement();

        // Insert entries
View Full Code Here

   * Checks the document state.
   *
   * @param state the document state specified in terms of entries
   */
  private void assertSubstrate(final List<Boolean> state) {
    doc.with(new Action() {
      @Override
      public <N, E extends N, T extends N> void exec(ObservableMutableDocument<N, E, T> doc) {
        E container = doc.getDocumentElement();

        E entry = DocHelper.getFirstChildElement(doc, container);
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.document.ObservableMutableDocument.Action

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.