Package apple.uikit
Class NSTextContentManager
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.NSTextContentManager
-
- All Implemented Interfaces:
NSCoding,NSSecureCoding,NSObject,NSTextElementProvider
- Direct Known Subclasses:
NSTextContentStorage
public class NSTextContentManager extends NSObject implements NSTextElementProvider, NSSecureCoding
NSTextContentManager is an abstract class defining the interface for managing the text document contents and the default implementation. The concrete subclass overrides NSTextElementProvider for managing the content backing store. It is the root object strongly referencing the rest of objects in the TextKit network via an array of NSTextLayoutManager. Also, it manages the editing transaction by tracking the active NSTextLayoutManager focused to be editing. API-Since: 15.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSTextContentManager.Block_performEditingTransactionUsingBlockstatic interfaceNSTextContentManager.Block_synchronizeTextLayoutManagers-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.NSTextElementProvider
NSTextElementProvider.Block_enumerateTextElementsFromLocationOptionsUsingBlock, NSTextElementProvider.Block_synchronizeToBackingStore
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSTextContentManager(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()voidaddTextLayoutManager(@NotNull NSTextLayoutManager textLayoutManager)@Nullable NSTextRangeadjustedRangeFromRangeForEditingTextSelection(@NotNull NSTextRange textRange, boolean forEditingTextSelection)Should be implemented if the location backing store requires manual adjustment after editing.static NSTextContentManageralloc()static NSTextContentManagerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)booleanautomaticallySynchronizesTextLayoutManagers()Automatically synchronizes all text layout managers when hasEditingTransaction becoming NO.booleanautomaticallySynchronizesToBackingStore()Automatically synchronizes the backing store when hasEditingTransaction becoming NO.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()@Nullable java.lang.Objectdelegate()static java.lang.Stringdescription_static()@NotNull NSTextRangedocumentRange()Declares the starting and ending locations for the document.voidencodeWithCoder(@NotNull NSCoder coder)@Nullable NSTextLocationenumerateTextElementsFromLocationOptionsUsingBlock(@Nullable NSTextLocation textLocation, long options, NSTextElementProvider.Block_enumerateTextElementsFromLocationOptionsUsingBlock block)Enumerates the text elements starting at textLocation.booleanhasEditingTransaction()When YES, there is an active editing transaction from primaryTextLayoutManager.static longhash_static()NSTextContentManagerinit()NSTextContentManagerinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable NSTextLocationlocationFromLocationWithOffset(@NotNull NSTextLocation location, long offset)Returns a new location from location with offset.static NSTextContentManagernew_objc()longoffsetFromLocationToLocation(@NotNull NSTextLocation from, @NotNull NSTextLocation to)Returns the offset between from and to.voidperformEditingTransactionUsingBlock(@NotNull NSTextContentManager.Block_performEditingTransactionUsingBlock transaction)Invoked by primaryTextLayoutManager controlling the active editing transaction.@Nullable NSTextLayoutManagerprimaryTextLayoutManager()The primary NSTextLayoutManager interacting with the user allowing to edit.voidrecordEditActionInRangeNewTextRange(@NotNull NSTextRange originalTextRange, @NotNull NSTextRange newTextRange)Records information about an edit action to the transaction.voidremoveTextLayoutManager(@NotNull NSTextLayoutManager textLayoutManager)voidreplaceContentsInRangeWithTextElements(@NotNull NSTextRange range, @Nullable NSArray<? extends NSTextElement> textElements)Replaces the characters specified by range with textElements.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAutomaticallySynchronizesTextLayoutManagers(boolean value)Automatically synchronizes all text layout managers when hasEditingTransaction becoming NO.voidsetAutomaticallySynchronizesToBackingStore(boolean value)Automatically synchronizes the backing store when hasEditingTransaction becoming NO.voidsetDelegate(@Nullable java.lang.Object value)voidsetDelegate_unsafe(@Nullable java.lang.Object value)voidsetPrimaryTextLayoutManager(@Nullable NSTextLayoutManager value)The primary NSTextLayoutManager interacting with the user allowing to edit.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()voidsynchronizeTextLayoutManagers(@Nullable NSTextContentManager.Block_synchronizeTextLayoutManagers completionHandler)Synchronizes changes to all non-primary text layout managers.voidsynchronizeToBackingStore(NSTextElementProvider.Block_synchronizeToBackingStore completionHandler)Synchronizes changes to the backing store.@NotNull NSArray<? extends NSTextElement>textElementsForRange(@NotNull NSTextRange range)Returns an array of NSTextElement intersecting the specified range in sequence.@NotNull NSArray<? extends NSTextLayoutManager>textLayoutManagers()An array of NSTextLayoutManager.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
addTextLayoutManager
public void addTextLayoutManager(@NotNull @NotNull NSTextLayoutManager textLayoutManager)
-
adjustedRangeFromRangeForEditingTextSelection
@Nullable public @Nullable NSTextRange adjustedRangeFromRangeForEditingTextSelection(@NotNull @NotNull NSTextRange textRange, boolean forEditingTextSelection)
Description copied from interface:NSTextElementProviderShould be implemented if the location backing store requires manual adjustment after editing. When textRange is intersecting or following the current edited range, the method returns the range adjusted for the modification in the editing session. Returns nil, when no adjustment necessary. forEditingTextSelection indicates if textRange is for the text selection associated with the edit session.- Specified by:
adjustedRangeFromRangeForEditingTextSelectionin interfaceNSTextElementProvider
-
alloc
public static NSTextContentManager alloc()
-
allocWithZone
public static NSTextContentManager allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
automaticallySynchronizesTextLayoutManagers
public boolean automaticallySynchronizesTextLayoutManagers()
Automatically synchronizes all text layout managers when hasEditingTransaction becoming NO. YES by default.
-
automaticallySynchronizesToBackingStore
public boolean automaticallySynchronizesToBackingStore()
Automatically synchronizes the backing store when hasEditingTransaction becoming NO. NO by default.
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
delegate
@Nullable public @Nullable java.lang.Object delegate()
-
description_static
public static java.lang.String description_static()
-
documentRange
@NotNull public @NotNull NSTextRange documentRange()
Description copied from interface:NSTextElementProviderDeclares the starting and ending locations for the document. The subclass could use its own implementation of a location object conforming to NSTextRange.- Specified by:
documentRangein interfaceNSTextElementProvider
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateTextElementsFromLocationOptionsUsingBlock
@Nullable public @Nullable NSTextLocation enumerateTextElementsFromLocationOptionsUsingBlock(@Nullable @Nullable NSTextLocation textLocation, long options, @NotNull NSTextElementProvider.Block_enumerateTextElementsFromLocationOptionsUsingBlock block)
Description copied from interface:NSTextElementProviderEnumerates the text elements starting at textLocation. If textLocation=nil, it assumes self.documentRange.location for forward enumeration; uses self.documentRange.endLocation for reverse enumeration. When enumerating backward, it starts with the element preceding the one containing textLocation. If enumerated at least one element, it returns the edge of the enumerated range. Note that the enumerated range might not match the range of the last element returned. It enumerates the elements in the sequence, but it can skip a range (it can limit the maximum number of text elements enumerated for a single invocation or hide some elements from the layout). Returning NO from block breaks out of the enumeration.- Specified by:
enumerateTextElementsFromLocationOptionsUsingBlockin interfaceNSTextElementProvider
-
hasEditingTransaction
public boolean hasEditingTransaction()
When YES, there is an active editing transaction from primaryTextLayoutManager. the synchronization operations to non-primary text layout managers and the backing store block (or fails when synchronous) while this property is YES. Non-primary text layout managers should avoid accessing the elements while this is YES. KVO-compliant
-
hash_static
public static long hash_static()
-
init
public NSTextContentManager init()
-
initWithCoder
public NSTextContentManager initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
locationFromLocationWithOffset
@Nullable public @Nullable NSTextLocation locationFromLocationWithOffset(@NotNull @NotNull NSTextLocation location, long offset)
Description copied from interface:NSTextElementProviderReturns a new location from location with offset. The offset value could be positive or negative indicating the logical direction. Could return nil when the inputs don't produce any legal location (i.e. out of bounds index).- Specified by:
locationFromLocationWithOffsetin interfaceNSTextElementProvider
-
new_objc
public static NSTextContentManager new_objc()
-
offsetFromLocationToLocation
public long offsetFromLocationToLocation(@NotNull @NotNull NSTextLocation from, @NotNull @NotNull NSTextLocation to)Description copied from interface:NSTextElementProviderReturns the offset between from and to. The return value could be positive or negative. Could return NSNotFound when the offset cannot be represented in an integer value (i.e. locations are not in the same document).- Specified by:
offsetFromLocationToLocationin interfaceNSTextElementProvider
-
performEditingTransactionUsingBlock
public void performEditingTransactionUsingBlock(@NotNull @NotNull NSTextContentManager.Block_performEditingTransactionUsingBlock transaction)Invoked by primaryTextLayoutManager controlling the active editing transaction. Can be nested. The outer most transaction toggles hasEditingTransaction and sends synchronization messages if enabled after invoking transaction.
-
primaryTextLayoutManager
@Nullable public @Nullable NSTextLayoutManager primaryTextLayoutManager()
The primary NSTextLayoutManager interacting with the user allowing to edit. Setting an NSTextLayoutManager not in textLayoutManagers will reset to nil. It automatically synchronizes pending edits before switching to a new primary object. The operation is synchronous. KVO-compliant
-
recordEditActionInRangeNewTextRange
public void recordEditActionInRangeNewTextRange(@NotNull @NotNull NSTextRange originalTextRange, @NotNull @NotNull NSTextRange newTextRange)Records information about an edit action to the transaction. originalTextRange is the range edited before the action, and newTextRange is the corresponding range after the action. The concrete subclass should invoke this method for each edit action.
-
removeTextLayoutManager
public void removeTextLayoutManager(@NotNull @NotNull NSTextLayoutManager textLayoutManager)
-
replaceContentsInRangeWithTextElements
public void replaceContentsInRangeWithTextElements(@NotNull @NotNull NSTextRange range, @Nullable @Nullable NSArray<? extends NSTextElement> textElements)Description copied from interface:NSTextElementProviderReplaces the characters specified by range with textElements. If the edges of range is not at existing element range boundaries, it either split the element if it allows the operation (i.e. NSTextParagraph) or adjust the replacement range. This method is intended to be used only by NSTextLayoutManager.- Specified by:
replaceContentsInRangeWithTextElementsin interfaceNSTextElementProvider
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setAutomaticallySynchronizesTextLayoutManagers
public void setAutomaticallySynchronizesTextLayoutManagers(boolean value)
Automatically synchronizes all text layout managers when hasEditingTransaction becoming NO. YES by default.
-
setAutomaticallySynchronizesToBackingStore
public void setAutomaticallySynchronizesToBackingStore(boolean value)
Automatically synchronizes the backing store when hasEditingTransaction becoming NO. NO by default.
-
setDelegate_unsafe
public void setDelegate_unsafe(@Nullable @Nullable java.lang.Object value)
-
setDelegate
public void setDelegate(@Nullable @Nullable java.lang.Object value)
-
setPrimaryTextLayoutManager
public void setPrimaryTextLayoutManager(@Nullable @Nullable NSTextLayoutManager value)The primary NSTextLayoutManager interacting with the user allowing to edit. Setting an NSTextLayoutManager not in textLayoutManagers will reset to nil. It automatically synchronizes pending edits before switching to a new primary object. The operation is synchronous. KVO-compliant
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
synchronizeTextLayoutManagers
public void synchronizeTextLayoutManagers(@Nullable @Nullable NSTextContentManager.Block_synchronizeTextLayoutManagers completionHandler)Synchronizes changes to all non-primary text layout managers. If completionHandler=nil, performs the operation synchronously. completionHandler gets passed error if failed. It should block (or fail if synchronous) when there is an active transaction.
-
synchronizeToBackingStore
public void synchronizeToBackingStore(@Nullable NSTextElementProvider.Block_synchronizeToBackingStore completionHandler)Description copied from interface:NSTextElementProviderSynchronizes changes to the backing store. If completionHandler=nil, performs the operation synchronously. completionHandler gets passed error if failed. It should block (or fail if synchronous) when there is an active transaction.- Specified by:
synchronizeToBackingStorein interfaceNSTextElementProvider
-
textElementsForRange
@NotNull public @NotNull NSArray<? extends NSTextElement> textElementsForRange(@NotNull @NotNull NSTextRange range)
Returns an array of NSTextElement intersecting the specified range in sequence. It can return a set of elements not filling the entire range specified if the entire range is not synchronously available. Uses -enumerateTextElementsFromLocation:options:usingBlock: to fill the array.
-
textLayoutManagers
@NotNull public @NotNull NSArray<? extends NSTextLayoutManager> textLayoutManagers()
An array of NSTextLayoutManager. KVO-compliant
-
version_static
public static long version_static()
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-