Package apple.uikit

Class UICommand

    • Constructor Detail

      • UICommand

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • action

        public org.moe.natj.objc.SEL action()
        Action to take on choosing this command.
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • attributes

        public long attributes()
        Command attributes.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • commandWithTitleImageActionPropertyList

        public static UICommand commandWithTitleImageActionPropertyList​(java.lang.String title,
                                                                        UIImage image,
                                                                        org.moe.natj.objc.SEL action,
                                                                        java.lang.Object propertyList)
        Initializes a keyless command.
        Parameters:
        title - Short display title. This should be localized.
        image - Image that can appear next to this command, if needed.
        action - Action to take on choosing this command.
        propertyList - Property list object to distinguish commands, if needed.
        Returns:
        A new keyless command.
      • commandWithTitleImageActionPropertyListAlternates

        public static UICommand commandWithTitleImageActionPropertyListAlternates​(java.lang.String title,
                                                                                  UIImage image,
                                                                                  org.moe.natj.objc.SEL action,
                                                                                  java.lang.Object propertyList,
                                                                                  NSArray<? extends UICommandAlternate> alternates)
        Initializes a keyless command with alternates.
        Parameters:
        title - Short display title. This should be localized.
        image - Image that can appear next to this command, if needed.
        action - Action to take on choosing this command.
        propertyList - Property list object to distinguish commands, if needed.
        alternates - Alternates that differ in modifier flags.
        Returns:
        A new keyless command with alternates.
      • debugDescription_static

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

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

        public java.lang.String discoverabilityTitle()
        Elaborated title, if any.
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • propertyList

        public java.lang.Object propertyList()
        Property list object to distinguish commands, if needed.
      • resolveClassMethod

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

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

        public void setAttributes​(long value)
        Command attributes.
      • setDiscoverabilityTitle

        public void setDiscoverabilityTitle​(java.lang.String value)
        Elaborated title, if any.
      • setImage

        public void setImage​(UIImage value)
        Image that can appear next to this command
      • setState

        public void setState​(long value)
        State that can appear next to the command.
      • setTitle

        public void setTitle​(java.lang.String value)
        Short display title.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • state

        public long state()
        State that can appear next to the command.
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This 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:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class UIMenuElement
      • title

        public java.lang.String title()
        Short display title.
        Overrides:
        title in class UIMenuElement
      • version_static

        public static long version_static()