public class UIKeyCommand extends UICommand
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UIKeyCommand(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
org.moe.natj.objc.SEL |
action()
Action to take on choosing this command.
|
static UIKeyCommand |
alloc() |
static UIKeyCommand |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsAutomaticLocalization()
Suppose the system detects a given key command that is not reachable in the current keyboard layout; it will localize the key command to something reachable.
|
boolean |
allowsAutomaticMirroring()
Suppose the system detects a given key command with the following input string [ ] { } ( ) < > ← → in a right-to-left user interface environment (UIUserInterfaceLayoutDirectionRightToLeft); in that case, the system will automatically mirror the key command.
|
NSArray<? extends UICommandAlternate> |
alternates()
Alternates that differ in modifier flags, if any.
|
long |
attributes()
Command attributes.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
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.
|
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.
|
static UIKeyCommand |
commandWithTitleImageActionPropertyList(java.lang.String title,
UIImage image,
org.moe.natj.objc.SEL action,
java.lang.Object propertyList) |
static UIKeyCommand |
commandWithTitleImageActionPropertyListAlternates(java.lang.String title,
UIImage image,
org.moe.natj.objc.SEL action,
java.lang.Object propertyList,
NSArray<? extends UICommandAlternate> alternates) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
java.lang.String |
discoverabilityTitle()
Elaborated title, if any.
|
static long |
hash_static() |
UIImage |
image()
Image that can appear next to this command.
|
UIKeyCommand |
init() |
UIKeyCommand |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
java.lang.String |
input() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
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.
|
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.
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
modifierFlags() |
static UIKeyCommand |
new_objc() |
java.lang.Object |
propertyList()
Property list object to distinguish commands, if needed.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAllowsAutomaticLocalization(boolean value)
Suppose the system detects a given key command that is not reachable in the current keyboard layout; it will localize the key command to something reachable.
|
void |
setAllowsAutomaticMirroring(boolean value)
Suppose the system detects a given key command with the following input string [ ] { } ( ) < > ← → in a right-to-left user interface environment (UIUserInterfaceLayoutDirectionRightToLeft); in that case, the system will automatically mirror the key command.
|
void |
setAttributes(long value)
Command attributes.
|
void |
setDiscoverabilityTitle(java.lang.String value)
Elaborated title, if any.
|
void |
setImage(UIImage value)
Image that can appear next to this command.
|
void |
setState(long value)
State that can appear next to this command.
|
void |
setTitle(java.lang.String value)
Short display title.
|
static void |
setVersion_static(long aVersion) |
void |
setWantsPriorityOverSystemBehavior(boolean value)
Indicates whether the key command should execute if it conflicts with focus or text-editing system commands, defaults to @c NO
|
long |
state()
State that can appear next to this command.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
java.lang.String |
title()
Short display title.
|
static long |
version_static() |
boolean |
wantsPriorityOverSystemBehavior()
Indicates whether the key command should execute if it conflicts with focus or text-editing system commands, defaults to @c NO
|
accessibilityIdentifier, copyWithZone, encodeWithCoder, setAccessibilityIdentifier, setSubtitle, subtitleaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static UIKeyCommand alloc()
public static UIKeyCommand allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static UIKeyCommand keyCommandWithInputModifierFlagsAction(java.lang.String input, long modifierFlags, org.moe.natj.objc.SEL action)
public static UIKeyCommand keyCommandWithInputModifierFlagsActionDiscoverabilityTitle(java.lang.String input, long modifierFlags, org.moe.natj.objc.SEL action, java.lang.String discoverabilityTitle)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UIKeyCommand new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public java.lang.String discoverabilityTitle()
discoverabilityTitle in class UICommandpublic UIKeyCommand init()
public UIKeyCommand initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class UICommandpublic java.lang.String input()
public long modifierFlags()
public void setDiscoverabilityTitle(java.lang.String value)
setDiscoverabilityTitle in class UICommandpublic boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class UICommandpublic org.moe.natj.objc.SEL action()
public NSArray<? extends UICommandAlternate> alternates()
alternates in class UICommandpublic long attributes()
attributes in class UICommandpublic 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)
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.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)
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.public static UIKeyCommand commandWithTitleImageActionPropertyList(java.lang.String title, UIImage image, org.moe.natj.objc.SEL action, java.lang.Object propertyList)
public static UIKeyCommand commandWithTitleImageActionPropertyListAlternates(java.lang.String title, UIImage image, org.moe.natj.objc.SEL action, java.lang.Object propertyList, NSArray<? extends UICommandAlternate> alternates)
public UIImage image()
public java.lang.Object propertyList()
propertyList in class UICommandpublic void setAttributes(long value)
setAttributes in class UICommandpublic void setImage(UIImage value)
public void setState(long value)
public void setTitle(java.lang.String value)
public long state()
public boolean allowsAutomaticLocalization()
public boolean allowsAutomaticMirroring()
public void setAllowsAutomaticLocalization(boolean value)
public void setAllowsAutomaticMirroring(boolean value)
public void setWantsPriorityOverSystemBehavior(boolean value)
public boolean wantsPriorityOverSystemBehavior()