Package apple.foundation
Class NSUndoManager
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSUndoManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSUndoManager.Block_registerUndoWithTargetHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSUndoManager(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static NSUndoManageralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)voidbeginUndoGrouping()Begin/End Groupingstatic voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanRedo()booleancanUndo()Undoes a nested grouping without first trying to close a top level undo group.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddisableUndoRegistration()Enable/Disable registrationvoidenableUndoRegistration()voidendUndoGrouping()longgroupingLevel()These nest.booleangroupsByEvent()Groups By Eventstatic longhash_static()NSUndoManagerinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisRedoing()static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisUndoing()returns whether or not the UndoManager has anything to undo or redobooleanisUndoRegistrationEnabled()static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longlevelsOfUndo()Undo levelsstatic java.lang.Objectnew_objc()java.lang.ObjectprepareWithInvocationTarget(java.lang.Object target)Invocation based undovoidredo()Undo until a matching begin.booleanredoActionIsDiscardable()java.lang.StringredoActionName()java.lang.StringredoMenuItemTitle()java.lang.StringredoMenuTitleForUndoActionName(java.lang.String actionName)voidregisterUndoWithTargetHandler(java.lang.Object target, NSUndoManager.Block_registerUndoWithTargetHandler undoHandler)records single undo operation for the specified target As with other undo operations, this does not strongly retain target.voidregisterUndoWithTargetSelectorObject(java.lang.Object target, org.moe.natj.objc.SEL selector, java.lang.Object anObject)Object based UndovoidremoveAllActions()removevoidremoveAllActionsWithTarget(java.lang.Object target)static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)NSArray<java.lang.String>runLoopModes()Run Loop ModesvoidsetActionIsDiscardable(boolean discardable)voidsetActionName(java.lang.String actionName)Call undoActionName or redoActionName to get the name of the next action to be undone or redone.voidsetGroupsByEvent(boolean value)Groups By EventvoidsetLevelsOfUndo(long value)Undo levelsvoidsetRunLoopModes(NSArray<java.lang.String> value)Run Loop Modesstatic voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()voidundo()Undo/RedobooleanundoActionIsDiscardable()java.lang.StringundoActionName()Undo/Redo action namejava.lang.StringundoMenuItemTitle()Undo/Redo menu item titlejava.lang.StringundoMenuTitleForUndoActionName(java.lang.String actionName)localization hooksvoidundoNestedGroup()Will redo last top-level undo.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSUndoManager alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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()
-
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()
-
version_static
public static long version_static()
-
beginUndoGrouping
public void beginUndoGrouping()
Begin/End Grouping
-
canRedo
public boolean canRedo()
-
canUndo
public boolean canUndo()
Undoes a nested grouping without first trying to close a top level undo group.
-
disableUndoRegistration
public void disableUndoRegistration()
Enable/Disable registration
-
enableUndoRegistration
public void enableUndoRegistration()
-
endUndoGrouping
public void endUndoGrouping()
-
groupingLevel
public long groupingLevel()
These nest.
-
groupsByEvent
public boolean groupsByEvent()
Groups By Event
-
init
public NSUndoManager init()
-
isRedoing
public boolean isRedoing()
-
isUndoRegistrationEnabled
public boolean isUndoRegistrationEnabled()
-
isUndoing
public boolean isUndoing()
returns whether or not the UndoManager has anything to undo or redo
-
levelsOfUndo
public long levelsOfUndo()
Undo levels
-
prepareWithInvocationTarget
public java.lang.Object prepareWithInvocationTarget(java.lang.Object target)
Invocation based undo
-
redo
public void redo()
Undo until a matching begin. It terminates a top level undo if necesary. Useful for undoing when groupByEvents is on (default is on)
-
redoActionIsDiscardable
public boolean redoActionIsDiscardable()
-
redoActionName
public java.lang.String redoActionName()
-
redoMenuItemTitle
public java.lang.String redoMenuItemTitle()
-
redoMenuTitleForUndoActionName
public java.lang.String redoMenuTitleForUndoActionName(java.lang.String actionName)
-
registerUndoWithTargetHandler
public void registerUndoWithTargetHandler(java.lang.Object target, NSUndoManager.Block_registerUndoWithTargetHandler undoHandler)records single undo operation for the specified target As with other undo operations, this does not strongly retain target. Care should be taken to avoid introducing retain cycles by other references captured by the block.- Parameters:
target- non-nil target of the undo operationundoHandler- non-nil block to be executed for the undo operation
-
registerUndoWithTargetSelectorObject
public void registerUndoWithTargetSelectorObject(java.lang.Object target, org.moe.natj.objc.SEL selector, java.lang.Object anObject)Object based Undo
-
removeAllActions
public void removeAllActions()
remove
-
removeAllActionsWithTarget
public void removeAllActionsWithTarget(java.lang.Object target)
-
runLoopModes
public NSArray<java.lang.String> runLoopModes()
Run Loop Modes
-
setActionIsDiscardable
public void setActionIsDiscardable(boolean discardable)
-
setActionName
public void setActionName(java.lang.String actionName)
Call undoActionName or redoActionName to get the name of the next action to be undone or redone. Returns @"" if there is nothing to undo/redo or no action names were registered.
-
setGroupsByEvent
public void setGroupsByEvent(boolean value)
Groups By Event
-
setLevelsOfUndo
public void setLevelsOfUndo(long value)
Undo levels
-
setRunLoopModes
public void setRunLoopModes(NSArray<java.lang.String> value)
Run Loop Modes
-
undo
public void undo()
Undo/Redo
-
undoActionIsDiscardable
public boolean undoActionIsDiscardable()
-
undoActionName
public java.lang.String undoActionName()
Undo/Redo action name
-
undoMenuItemTitle
public java.lang.String undoMenuItemTitle()
Undo/Redo menu item title
-
undoMenuTitleForUndoActionName
public java.lang.String undoMenuTitleForUndoActionName(java.lang.String actionName)
localization hooks
-
undoNestedGroup
public void undoNestedGroup()
Will redo last top-level undo.
-
-