Examples of AnnotatedTextChangedEvent


Examples of com.google.wave.api.event.AnnotatedTextChangedEvent

    String annotationValue = "value";
    rootBlip.getContent().setAnnotation(0, 1, annotationKey, annotationValue);

    EventMessageBundle messages = generateAndCheckEvents(EventType.ANNOTATED_TEXT_CHANGED);
    assertEquals("Expected one event only", 1, messages.getEvents().size());
    AnnotatedTextChangedEvent event = AnnotatedTextChangedEvent.as(messages.getEvents().get(0));
    assertEquals("Expected the key of the annotation", annotationKey, event.getName());
    assertEquals("Expected the value of the annotation", annotationValue, event.getValue());
  }
View Full Code Here

Examples of com.google.wave.api.event.AnnotatedTextChangedEvent

      for (DocumentEvent<N, E, T> eventComponent : eventComponents) {
        if (eventComponent.getType() == DocumentEvent.Type.ANNOTATION_CHANGED) {
          if (capabilities.containsKey(EventType.ANNOTATED_TEXT_CHANGED)) {
            AnnotationChanged<N, E, T> anotationChangedEvent =
                (AnnotationChanged<N, E, T>) eventComponent;
            AnnotatedTextChangedEvent apiEvent =
                new AnnotatedTextChangedEvent(null, null, deltaAuthor.getAddress(), deltaTimestamp,
                    blip.getId(), anotationChangedEvent.key, anotationChangedEvent.newValue);
            addEvent(apiEvent, capabilities, blip.getId(), messages);
          }
        } else {
          if (capabilities.containsKey(EventType.DOCUMENT_CHANGED)
View Full Code Here

Examples of com.google.wave.api.event.AnnotatedTextChangedEvent

      for (DocumentEvent<N, E, T> eventComponent : eventComponents) {
        if (eventComponent.getType() == DocumentEvent.Type.ANNOTATION_CHANGED) {
          if (capabilities.containsKey(EventType.ANNOTATED_TEXT_CHANGED)) {
            AnnotationChanged<N, E, T> anotationChangedEvent =
                (AnnotationChanged<N, E, T>) eventComponent;
            AnnotatedTextChangedEvent apiEvent =
                new AnnotatedTextChangedEvent(null, null, deltaAuthor.getAddress(), deltaTimestamp,
                    blip.getId(), anotationChangedEvent.key, anotationChangedEvent.newValue);
            addEvent(apiEvent, capabilities, blip.getId(), messages);
          }
        } else {
          if (capabilities.containsKey(EventType.DOCUMENT_CHANGED)
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.