Uses of Class
io.keikai.doc.collab.types.AbstractType
Packages that use AbstractType
Package
Description
-
Uses of AbstractType in io.keikai.doc.collab.structs
Methods in io.keikai.doc.collab.structs that return AbstractTypeConstructors in io.keikai.doc.collab.structs with parameters of type AbstractType -
Uses of AbstractType in io.keikai.doc.collab.types
Subclasses of AbstractType in io.keikai.doc.collab.typesModifier and TypeClassDescriptionclassYArray<T>A shared Array implementation.classYMap<T>A shared Map implementation.classType that represents text with formatting information.classYXmlElement<T>classYXmlFragment<T>Represents a list ofYXmlElement.andYXmlTexttypes.classYXmlHook<T>classRepresents text in a Dom Element.Methods in io.keikai.doc.collab.types with type parameters of type AbstractTypeModifier and TypeMethodDescriptionstatic <T extends AbstractType>
voidAbstractType.typeListForEach(T type, TriConsumer<Object, Integer, T> f) Executes a provided function on every element of the type.Methods in io.keikai.doc.collab.types that return AbstractTypeModifier and TypeMethodDescriptionAbstractType.clone()Makes a copy of this data type that can be included somewhere else.AbstractType.copy()YXmlFragment.getFirstChild()YXmlElement.getNextSibling()AbstractType.getParent()YXmlElement.getPrevSibling()YXmlTreeWalkerResult.getValue()YXmlFragment.querySelector(String query) Returns the first YXmlElement that matches the query.Methods in io.keikai.doc.collab.types that return types with arguments of type AbstractTypeModifier and TypeMethodDescriptionYXmlFragment.querySelectorAll(String query) Returns all YXmlElements that match the query.Methods in io.keikai.doc.collab.types with parameters of type AbstractTypeModifier and TypeMethodDescriptionstatic <T extends YEvent>
voidAbstractType.callTypeObservers(AbstractType type, Transaction transaction, T event) Calls event listeners with an event and propagates to all parents.static ArraySearchMarkerArraySearchMarker.findMarker(AbstractType yArray, int index) Finds a marker for the given index in an AbstractType.AbstractType.getTypeChildren(AbstractType t) Retrieves all children of a type as a list.static voidYText.insertNegatedAttributes(Transaction transaction, AbstractType parent, ItemTextListPosition currPos, Map<String, Object> negatedAttributes) static booleanAbstractType.isParentOf(AbstractType parent, Item child) Check if `parent` is a parent of `child`.static Iterator<?>AbstractType.typeListCreateIterator(AbstractType type) Creates an iterator for the elements in the type.static voidAbstractType.typeListDelete(Transaction transaction, AbstractType parent, int index, int length) Deletes content from the type at the specified index and length.static voidAbstractType.typeListForEachSnapshot(AbstractType type, TriConsumer<Object, Integer, AbstractType> f, Snapshot snapshot) Executes a provided function on every element of the type, based on the provided snapshot.static ObjectAbstractType.typeListGet(AbstractType type, int index) Gets the element at the specified index in the type.static voidAbstractType.typeListInsertGenerics(Transaction transaction, AbstractType parent, int index, List<?> content) Inserts generic content at a specified index in the type.static voidAbstractType.typeListInsertGenericsAfter(Transaction transaction, AbstractType parent, Item referenceItem, List<?> content) Inserts generic content after a specified item in the type.static <C,R> List<R> AbstractType.typeListMap(AbstractType type, TriFunction<C, Number, AbstractType, R> f) Maps the elements in the type to a new list using the provided function.static voidAbstractType.typeListPushGenerics(Transaction transaction, AbstractType parent, List<?> content) Pushes generic content to the end of the type.AbstractType.typeListSlice(AbstractType type, int start, int end) Slices the list elements within the provided range.AbstractType.typeListToArray(AbstractType type) Converts the list of elements in the type to an array.AbstractType.typeListToArraySnapshot(AbstractType type, Snapshot snapshot) Converts the list of elements in the type to an array based on the provided snapshot.static voidAbstractType.typeMapDelete(Transaction transaction, AbstractType parent, String key) Deletes a key from the type's map.static ObjectAbstractType.typeMapGet(AbstractType parent, String key) Gets a value from the type's map by key.AbstractType.typeMapGetAll(AbstractType parent) Gets all key-value pairs from the type's map.AbstractType.typeMapGetAllSnapshot(AbstractType parent, Snapshot snapshot) Gets all key-value pairs from the type's map for a specific snapshot.static ObjectAbstractType.typeMapGetSnapshot(AbstractType parent, String key, Snapshot snapshot) Gets a value from the type's map by key for a specific snapshot.static booleanAbstractType.typeMapHas(AbstractType parent, String key) Checks if the type's map contains a key.static voidAbstractType.typeMapSet(Transaction transaction, AbstractType parent, String key, Object value) Sets a value in the type's map.Method parameters in io.keikai.doc.collab.types with type arguments of type AbstractTypeModifier and TypeMethodDescriptionYXmlFragment.createTreeWalker(Function<AbstractType, Boolean> filter) Create a subtree of childNodes.voidYXmlFragment.forEach(TriConsumer<Object, Integer, AbstractType> f) Executes a provided function once on every child element.<M> List<M>YArray.map(TriFunction<T, Number, AbstractType, M> f) Returns a List with the result of calling a provided function on every element of this YArray.static voidAbstractType.typeListForEachSnapshot(AbstractType type, TriConsumer<Object, Integer, AbstractType> f, Snapshot snapshot) Executes a provided function on every element of the type, based on the provided snapshot.static <C,R> List<R> AbstractType.typeListMap(AbstractType type, TriFunction<C, Number, AbstractType, R> f) Maps the elements in the type to a new list using the provided function.Constructors in io.keikai.doc.collab.types with parameters of type AbstractTypeModifierConstructorDescriptionYXmlTreeWalker(AbstractType root, Function<AbstractType, Boolean> filter) YXmlTreeWalkerResult(AbstractType value, boolean done) Constructor parameters in io.keikai.doc.collab.types with type arguments of type AbstractTypeModifierConstructorDescriptionYXmlTreeWalker(AbstractType root, Function<AbstractType, Boolean> filter) -
Uses of AbstractType in io.keikai.doc.collab.utils
Fields in io.keikai.doc.collab.utils declared as AbstractTypeModifier and TypeFieldDescriptionprotected AbstractTypeYEvent._currentTargetThe current target on which the observe callback is called.protected final AbstractTypeYEvent._targetThe type on which this event was created on.Methods in io.keikai.doc.collab.utils with type parameters of type AbstractTypeModifier and TypeMethodDescription<T extends AbstractType>
TDoc.get(String name, Class<? extends AbstractType> typeClz) Define a shared data type.Methods in io.keikai.doc.collab.utils that return AbstractTypeMethods in io.keikai.doc.collab.utils that return types with arguments of type AbstractTypeModifier and TypeMethodDescriptionTransaction.getChanged()StackItemEvent.getChangedParentTypes()Transaction.getChangedParentTypes()UndoManager.getScope()Doc.getShare()Methods in io.keikai.doc.collab.utils with parameters of type AbstractTypeModifier and TypeMethodDescriptionstatic voidTransaction.addChangedTypeToTransaction(Transaction transaction, AbstractType type, String parentSub) Adds a changed type to the transaction.voidUndoManager.addToScope(AbstractType yType) static AbsolutePositionRelativePosition.createAbsolutePosition(AbstractType type, int index, int assoc) Create an AbsolutePosition.static RelativePositionRelativePosition.createRelativePosition(AbstractType type, ID item, int assoc) Create a RelativePosition from an AbstractType and an item ID.static RelativePositionRelativePosition.createRelativePositionFromTypeIndex(AbstractType type, int index) Create a RelativePosition based on an absolute position.static RelativePositionRelativePosition.createRelativePositionFromTypeIndex(AbstractType type, int index, int assoc) Create a RelativePosition based on an absolute position.static StringID.findRootTypeKey(AbstractType type) The top types are mapped from y.share.get(keyname) => type.voidYEvent.setCurrentTarget(AbstractType currentTarget) Method parameters in io.keikai.doc.collab.utils with type arguments of type AbstractTypeModifier and TypeMethodDescriptionvoidUndoManager.addToScope(List<AbstractType> yTypes) <T extends AbstractType>
TDoc.get(String name, Class<? extends AbstractType> typeClz) Define a shared data type.Constructors in io.keikai.doc.collab.utils with parameters of type AbstractTypeModifierConstructorDescriptionAbsolutePosition(AbstractType type, int index) Constructor for AbsolutePosition with default association value.AbsolutePosition(AbstractType type, int index, int assoc) Constructor for AbsolutePosition.UndoManager(AbstractType typeScope) UndoManager(AbstractType typeScope, UndoManagerOptions options) YEvent(AbstractType target, Transaction transaction) Constructor parameters in io.keikai.doc.collab.utils with type arguments of type AbstractTypeModifierConstructorDescriptionStackItemEvent(StackItem stackItem, Object origin, String type, Map<AbstractType, List<YEvent>> changedParentTypes) UndoManager(List<AbstractType> typeScopes) UndoManager(List<AbstractType> typeScopes, UndoManagerOptions options)