Class YTextEvent


  • public class YTextEvent
    extends YEvent
    Event that describes the changes on a YText type.
    • Constructor Detail

      • YTextEvent

        public YTextEvent​(YText ytext,
                          Transaction transaction,
                          java.util.Set<java.lang.String> subs)
        Constructor
        Parameters:
        ytext -
        transaction -
        subs - The keys that changed
    • Method Detail

      • getChanges

        public Changes getChanges()
        Description copied from class: YEvent
        Get the changes made in this event.
        Overrides:
        getChanges in class YEvent
        Returns:
        The changes made.
      • getDeltaMap

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getDeltaMap()
      • getDeltaList

        public java.util.List<Delta> getDeltaList()
        Compute the changes in the delta format. A <a href="https://quilljs.com/docs/delta/|Quill">Delta</a> that represents the changes on the document.