Package com.goodow.realtime.store

Examples of com.goodow.realtime.store.TextDeletedEvent


  private void deleteAndFireEvent(int startIndex, int length, String sessionId, String userId) {
    int endIndex = startIndex + length;
    assert length > 0 && endIndex <= length();
    String toDelete = snapshot.substring(startIndex, endIndex);
    TextDeletedEvent event =
        new TextDeletedEventImpl(event(sessionId, userId).set("index", startIndex)
            .set("text", toDelete));
    snapshot.delete(startIndex, endIndex);
    fireEvent(event);
    model.bytesUsed -= length;
View Full Code Here

TOP

Related Classes of com.goodow.realtime.store.TextDeletedEvent

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.