Package apple.uikit

Class NSTextElement

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    NSTextParagraph

    public class NSTextElement
    extends NSObject
    NSTextElement is an abstract base class for representing the smallest text layout unit typically paragraphs, tables, or attachments. A text element is associated with an NSTextContentManager. API-Since: 15.0
    • Constructor Detail

      • NSTextElement

        protected NSTextElement​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSTextElement allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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()
      • description_static

        public static java.lang.String description_static()
      • elementRange

        @Nullable
        public @Nullable NSTextRange elementRange()
        Represents the range of the element inside the document.
      • hash_static

        public static long hash_static()
      • 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)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setElementRange

        public void setElementRange​(@Nullable
                                    @Nullable NSTextRange value)
        Represents the range of the element inside the document.
      • setTextContentManager_unsafe

        public void setTextContentManager_unsafe​(@Nullable
                                                 @Nullable NSTextContentManager value)
        Returns the owner NSTextContentManager. A text element can migrate between text content managers.
      • setTextContentManager

        public void setTextContentManager​(@Nullable
                                          @Nullable NSTextContentManager value)
        Returns the owner NSTextContentManager. A text element can migrate between text content managers.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • textContentManager

        @Nullable
        public @Nullable NSTextContentManager textContentManager()
        Returns the owner NSTextContentManager. A text element can migrate between text content managers.
      • version_static

        public static long version_static()
      • childElements

        @NotNull
        public @NotNull NSArray<? extends NSTextElement> childElements()
        A concrete NSTextElement subclass can be structured in a tree. An element can have zero or more child elements. This section provides interface for supporting such a configuration. Returns an array of children. The array can contain zero or more elements. API-Since: 16.0
      • isRepresentedElement

        public boolean isRepresentedElement()
        Returns YES if it is an element represented in text layout. It is enumerated by NSTextContentManager. API-Since: 16.0
      • parentElement

        @Nullable
        public @Nullable NSTextElement parentElement()
        Returns the parent element if the receiver is a child. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.