Package io.keikai.doc.collab.types
Class YXmlText
java.lang.Object
io.keikai.doc.collab.types.AbstractType<YTextEvent>
io.keikai.doc.collab.types.YText
io.keikai.doc.collab.types.YXmlText
Represents text in a Dom Element. In the future this type will also handle
simple formatting information like bold and italic.
-
Field Summary
Fields inherited from class io.keikai.doc.collab.types.AbstractType
_doc, _length, _map, _searchMarker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes a copy of this data type that can be included somewhere else.copy()static YXmlTextreadYXmlText(UpdateDecoder decoder) Overloaded method for reading with UpdateDecoderV1toJSON()Converts the type to a JSON object representation.toString()voidwrite(UpdateEncoder encoder) Writes this type's state to the encoder.Methods inherited from class io.keikai.doc.collab.types.YText
applyDelta, applyDelta, callObserver, cleanupYTextAfterTransaction, cleanupYTextFormatting, delete, delete, equalAttrs, findNextPosition, format, getAttribute, getAttributes, getSearchMarker, insert, insert, insertEmbed, insertEmbed, insertNegatedAttributes, integrate, isHasFormatting, length, readYText, removeAttribute, setAttribute, setHasFormatting, setSearchMarker, toDeltaList, toDeltaList, toDeltaMap, toDeltaMapMethods inherited from class io.keikai.doc.collab.types.AbstractType
callTypeObservers, createMapIterator, getDeepEventHandler, getDoc, getFirst, getItem, getMap, getParent, getStart, getTypeChildren, isParentOf, observe, observe, observeDeep, setLength, setMap, setStart, typeListCreateIterator, typeListDelete, typeListForEach, typeListForEachSnapshot, typeListGet, typeListInsertGenerics, typeListInsertGenericsAfter, typeListMap, typeListPushGenerics, typeListSlice, typeListToArray, typeListToArraySnapshot, typeMapDelete, typeMapGet, typeMapGetAll, typeMapGetAllSnapshot, typeMapGetSnapshot, typeMapHas, typeMapSet, unobserve, unobserveDeep
-
Constructor Details
-
YXmlText
public YXmlText()Constructs a new YText without an optional initial string. -
YXmlText
Constructs a new YText with an optional initial string.- Parameters:
string- The initial value of the YText.
-
-
Method Details
-
getNextSibling
- Returns:
- YXmlElement or YXmlText|null
-
getPrevSibling
- Returns:
- YXmlElement or YXmlText|null
-
copy
-
clone
Makes a copy of this data type that can be included somewhere else. Note that the content is only readable _after_ it has been included somewhere in the Ydoc. -
toString
-
toJSON
Description copied from class:AbstractTypeConverts the type to a JSON object representation. -
write
Description copied from class:AbstractTypeWrites this type's state to the encoder. -
readYXmlText
Overloaded method for reading with UpdateDecoderV1- Parameters:
decoder- The decoder to read data from.- Returns:
- YXmlText
-