Package apple.uikit

Class UIKeyCommand

    • Constructor Detail

      • UIKeyCommand

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • 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()
      • debugDescription_static

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

        public static java.lang.String description_static()
      • 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)
      • keyCommandWithInputModifierFlagsAction

        public static UIKeyCommand keyCommandWithInputModifierFlagsAction​(java.lang.String input,
                                                                          long modifierFlags,
                                                                          org.moe.natj.objc.SEL action)
        Creates an key command that will _not_ be discoverable in the UI.
      • keyCommandWithInputModifierFlagsActionDiscoverabilityTitle

        public static UIKeyCommand keyCommandWithInputModifierFlagsActionDiscoverabilityTitle​(java.lang.String input,
                                                                                              long modifierFlags,
                                                                                              org.moe.natj.objc.SEL action,
                                                                                              java.lang.String discoverabilityTitle)
        Key Commands with a discoverabilityTitle _will_ be discoverable in the UI.
      • keyPathsForValuesAffectingValueForKey

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

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

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

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • 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()
      • version_static

        public static long version_static()
      • discoverabilityTitle

        public java.lang.String discoverabilityTitle()
        Elaborated title, if any.
        Overrides:
        discoverabilityTitle in class UICommand
      • input

        public java.lang.String input()
      • modifierFlags

        public long modifierFlags()
      • setDiscoverabilityTitle

        public void setDiscoverabilityTitle​(java.lang.String value)
        Elaborated title, if any.
        Overrides:
        setDiscoverabilityTitle in class UICommand
      • _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 UICommand
      • action

        public org.moe.natj.objc.SEL action()
        Action to take on choosing this command.
        Overrides:
        action in class UICommand
      • attributes

        public long attributes()
        Command attributes.
        Overrides:
        attributes in class UICommand
      • commandWithTitleImageActionInputModifierFlagsPropertyList

        public static UIKeyCommand commandWithTitleImageActionInputModifierFlagsPropertyList​(java.lang.String title,
                                                                                             UIImage image,
                                                                                             org.moe.natj.objc.SEL action,
                                                                                             java.lang.String input,
                                                                                             long modifierFlags,
                                                                                             java.lang.Object propertyList)
        Initializes a key 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.
        input - Keys that must be pressed to choose this command.
        modifierFlags - Bit mask of key modifier flags to choose this command.
        propertyList - Property list object to distinguish commands, if needed.
        Returns:
        A new key command.
      • commandWithTitleImageActionInputModifierFlagsPropertyListAlternates

        public static UIKeyCommand commandWithTitleImageActionInputModifierFlagsPropertyListAlternates​(java.lang.String title,
                                                                                                       UIImage image,
                                                                                                       org.moe.natj.objc.SEL action,
                                                                                                       java.lang.String input,
                                                                                                       long modifierFlags,
                                                                                                       java.lang.Object propertyList,
                                                                                                       NSArray<? extends UICommandAlternate> alternates)
        Initializes a key 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.
        input - Keys that must be pressed to choose this command.
        modifierFlags - Bit mask of key modifier flags to choose this command.
        propertyList - Property list object to distinguish commands, if needed.
        alternates - Alternates that differ in modifier flags.
        Returns:
        A new key command.
      • commandWithTitleImageActionPropertyList

        public static UIKeyCommand commandWithTitleImageActionPropertyList​(java.lang.String title,
                                                                           UIImage image,
                                                                           org.moe.natj.objc.SEL action,
                                                                           java.lang.Object propertyList)
      • commandWithTitleImageActionPropertyListAlternates

        public static UIKeyCommand commandWithTitleImageActionPropertyListAlternates​(java.lang.String title,
                                                                                     UIImage image,
                                                                                     org.moe.natj.objc.SEL action,
                                                                                     java.lang.Object propertyList,
                                                                                     NSArray<? extends UICommandAlternate> alternates)
      • image

        public UIImage image()
        Image that can appear next to this command.
        Overrides:
        image in class UICommand
      • propertyList

        public java.lang.Object propertyList()
        Property list object to distinguish commands, if needed.
        Overrides:
        propertyList in class UICommand
      • setAttributes

        public void setAttributes​(long value)
        Command attributes.
        Overrides:
        setAttributes in class UICommand
      • setImage

        public void setImage​(UIImage value)
        Image that can appear next to this command.
        Overrides:
        setImage in class UICommand
      • setState

        public void setState​(long value)
        State that can appear next to this command.
        Overrides:
        setState in class UICommand
      • setTitle

        public void setTitle​(java.lang.String value)
        Short display title.
        Overrides:
        setTitle in class UICommand
      • state

        public long state()
        State that can appear next to this command.
        Overrides:
        state in class UICommand
      • title

        public java.lang.String title()
        Short display title.
        Overrides:
        title in class UICommand