Package io.keikai.doc.collab.types
Class YTextEvent
- java.lang.Object
-
- io.keikai.doc.collab.utils.YEvent
-
- io.keikai.doc.collab.types.YTextEvent
-
public class YTextEvent extends YEvent
Event that describes the changes on a YText type.
-
-
Field Summary
-
Fields inherited from class io.keikai.doc.collab.utils.YEvent
_currentTarget, _target, _transaction, ERROR_COMPUTE_CHANGES
-
-
Constructor Summary
Constructors Constructor Description YTextEvent(YText ytext, Transaction transaction, java.util.Set<java.lang.String> subs)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangesgetChanges()Get the changes made in this event.java.util.List<Delta>getDeltaList()Compute the changes in the delta format.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>getDeltaMap()-
Methods inherited from class io.keikai.doc.collab.utils.YEvent
adds, deletes, getKeys, getPath, getTarget, getTransaction, setCurrentTarget, setPath
-
-
-
-
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:YEventGet the changes made in this event.- Overrides:
getChangesin classYEvent- 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.
-
-