public interface NSTextElementProvider
| Modifier and Type | Interface and Description |
|---|---|
static interface |
NSTextElementProvider.Block_enumerateTextElementsFromLocationOptionsUsingBlock |
static interface |
NSTextElementProvider.Block_synchronizeToBackingStore |
| Modifier and Type | Method and Description |
|---|---|
default NSTextRange |
adjustedRangeFromRangeForEditingTextSelection(NSTextRange textRange,
boolean forEditingTextSelection)
Should be implemented if the location backing store requires manual adjustment after editing.
|
NSTextRange |
documentRange()
Declares the starting and ending locations for the document.
|
NSTextLocation |
enumerateTextElementsFromLocationOptionsUsingBlock(NSTextLocation textLocation,
long options,
NSTextElementProvider.Block_enumerateTextElementsFromLocationOptionsUsingBlock block)
Enumerates the text elements starting at textLocation.
|
default NSTextLocation |
locationFromLocationWithOffset(NSTextLocation location,
long offset)
Returns a new location from location with offset.
|
default long |
offsetFromLocationToLocation(NSTextLocation from,
NSTextLocation to)
Returns the offset between from and to.
|
void |
replaceContentsInRangeWithTextElements(NSTextRange range,
NSArray<? extends NSTextElement> textElements)
Replaces the characters specified by range with textElements.
|
void |
synchronizeToBackingStore(NSTextElementProvider.Block_synchronizeToBackingStore completionHandler)
Synchronizes changes to the backing store.
|
default NSTextRange adjustedRangeFromRangeForEditingTextSelection(NSTextRange textRange, boolean forEditingTextSelection)
NSTextRange documentRange()
NSTextLocation enumerateTextElementsFromLocationOptionsUsingBlock(NSTextLocation textLocation, long options, NSTextElementProvider.Block_enumerateTextElementsFromLocationOptionsUsingBlock block)
default NSTextLocation locationFromLocationWithOffset(NSTextLocation location, long offset)
default long offsetFromLocationToLocation(NSTextLocation from, NSTextLocation to)
void replaceContentsInRangeWithTextElements(NSTextRange range, NSArray<? extends NSTextElement> textElements)
void synchronizeToBackingStore(NSTextElementProvider.Block_synchronizeToBackingStore completionHandler)