Package apple.uikit

Class UITableViewCell

    • Constructor Detail

      • UITableViewCell

        protected UITableViewCell​(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)
      • appearance

        public static java.lang.Object appearance()
      • appearanceForTraitCollection

        public static java.lang.Object appearanceForTraitCollection​(UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @Deprecated
        public static java.lang.Object appearanceForTraitCollectionWhenContainedIn​(UITraitCollection trait,
                                                                                   UIAppearanceContainer ContainerClass,
                                                                                   java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(UITraitCollection trait,
                                                                                                     NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @Deprecated
        public static java.lang.Object appearanceWhenContainedIn​(UIAppearanceContainer ContainerClass,
                                                                 java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        public static java.lang.Object appearanceWhenContainedInInstancesOfClasses​(NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

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

        public static void beginAnimationsContext​(java.lang.String animationID,
                                                  org.moe.natj.general.ptr.VoidPtr context)
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • commitAnimations

        public static void commitAnimations()
      • 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()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • 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)
      • layerClass

        public static org.moe.natj.objc.Class layerClass()
      • new_objc

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

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

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

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

        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
      • setAnimationCurve

        public static void setAnimationCurve​(long curve)
      • setAnimationDelay

        public static void setAnimationDelay​(double delay)
      • setAnimationDelegate

        public static void setAnimationDelegate​(java.lang.Object delegate)
      • setAnimationDidStopSelector

        public static void setAnimationDidStopSelector​(org.moe.natj.objc.SEL selector)
      • setAnimationDuration_static

        public static void setAnimationDuration_static​(double duration)
      • setAnimationRepeatAutoreverses

        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
      • setAnimationRepeatCount_static

        public static void setAnimationRepeatCount_static​(float repeatCount)
      • setAnimationStartDate

        public static void setAnimationStartDate​(NSDate startDate)
      • setAnimationTransitionForViewCache

        public static void setAnimationTransitionForViewCache​(long transition,
                                                              UIView view,
                                                              boolean cache)
      • setAnimationWillStartSelector

        public static void setAnimationWillStartSelector​(org.moe.natj.objc.SEL selector)
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • accessoryAction

        @Deprecated
        public org.moe.natj.objc.SEL accessoryAction()
        Deprecated.
        action to call on accessory view clicked. set by UITableView
      • accessoryType

        public long accessoryType()
        default is UITableViewCellAccessoryNone. use to set standard type
      • accessoryView

        public UIView accessoryView()
        if set, use custom view. ignore accessoryType. tracks if enabled can calls accessory action
      • _appearance

        public java.lang.Object _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIView
      • _appearanceWhenContainedIn

        @Deprecated
        public java.lang.Object _appearanceWhenContainedIn​(UIAppearanceContainer ContainerClass,
                                                           java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down.
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • backgroundView

        public UIView backgroundView()
        Always nil when a non-nil `backgroundConfiguration` is set. The 'backgroundView' will be added as a subview behind all other views.
      • contentView

        public UIView contentView()
        Custom subviews should be added to the content view.
      • detailTextLabel

        public UILabel detailTextLabel()
        default is nil. label will be created if necessary (and the current style supports a detail label).
      • didTransitionToState

        public void didTransitionToState​(long state)
      • editAction

        @Deprecated
        public org.moe.natj.objc.SEL editAction()
        Deprecated.
        action to call on insert/delete call. set by UITableView
      • editingAccessoryType

        public long editingAccessoryType()
        default is UITableViewCellAccessoryNone. use to set standard type
      • editingAccessoryView

        public UIView editingAccessoryView()
        if set, use custom view. ignore editingAccessoryType. tracks if enabled can calls accessory action
      • editingStyle

        public long editingStyle()
        default is UITableViewCellEditingStyleNone. This is set by UITableView using the delegate's value for cells who customize their appearance accordingly.
      • focusStyle

        public long focusStyle()
      • font

        @Deprecated
        public UIFont font()
        Deprecated.
        default is nil (Use default font)
      • gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer

        public boolean gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer​(UIGestureRecognizer gestureRecognizer,
                                                                                           UIGestureRecognizer otherGestureRecognizer)
        Description copied from interface: UIGestureRecognizerDelegate
        called when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other return YES to allow both to recognize simultaneously. the default implementation returns NO (by default no two gestures can be recognized simultaneously) note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture's delegate may return YES
        Specified by:
        gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer in interface UIGestureRecognizerDelegate
      • gestureRecognizerShouldRequireFailureOfGestureRecognizer

        public boolean gestureRecognizerShouldRequireFailureOfGestureRecognizer​(UIGestureRecognizer gestureRecognizer,
                                                                                UIGestureRecognizer otherGestureRecognizer)
        Description copied from interface: UIGestureRecognizerDelegate
        called once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YES
        Specified by:
        gestureRecognizerShouldRequireFailureOfGestureRecognizer in interface UIGestureRecognizerDelegate
      • gestureRecognizerShouldBegin

        public boolean gestureRecognizerShouldBegin​(UIGestureRecognizer gestureRecognizer)
        Description copied from class: UIView
        called when the recognizer attempts to transition out of UIGestureRecognizerStatePossible if a touch hit-tested to this view will be cancelled as a result of gesture recognition returns YES by default. return NO to cause the gesture recognizer to transition to UIGestureRecognizerStateFailed subclasses may override to prevent recognition of particular gestures. for example, UISlider prevents swipes parallel to the slider that start in the thumb
        Specified by:
        gestureRecognizerShouldBegin in interface UIGestureRecognizerDelegate
        Overrides:
        gestureRecognizerShouldBegin in class UIView
      • hidesAccessoryWhenEditing

        @Deprecated
        public boolean hidesAccessoryWhenEditing()
        Deprecated.
        default is YES
      • image

        @Deprecated
        public UIImage image()
        Deprecated.
        default is nil. appears on left next to title.
      • imageView

        public UIImageView imageView()
        default is nil. image view will be created if necessary.
      • indentationLevel

        public long indentationLevel()
        adjust content indent. default is 0
      • indentationWidth

        public double indentationWidth()
        width for each level. default is 10.0
      • initWithFrameReuseIdentifier

        @Deprecated
        public UITableViewCell initWithFrameReuseIdentifier​(CGRect frame,
                                                            java.lang.String reuseIdentifier)
        Deprecated.
        Frame is ignored. The size will be specified by the table view width and row height.
      • initWithStyleReuseIdentifier

        public UITableViewCell initWithStyleReuseIdentifier​(long style,
                                                            java.lang.String reuseIdentifier)
        Designated initializer. If the cell can be reused, you must pass in a reuse identifier. You should use the same reuse identifier for all cells of the same form.
      • isEditing

        public boolean isEditing()
        show appropriate edit controls (+/- & reorder). By default -setEditing: calls setEditing:animated: with NO for animated.
      • setEditing

        public void setEditing​(boolean value)
        show appropriate edit controls (+/- & reorder). By default -setEditing: calls setEditing:animated: with NO for animated.
      • isHighlighted

        public boolean isHighlighted()
        set highlighted state (title, image, background). default is NO. animated is NO
      • setHighlighted

        public void setHighlighted​(boolean value)
        set highlighted state (title, image, background). default is NO. animated is NO
      • isSelected

        public boolean isSelected()
        set selected state (title, image, background). default is NO. animated is NO
      • setSelected

        public void setSelected​(boolean value)
        set selected state (title, image, background). default is NO. animated is NO
      • lineBreakMode

        @Deprecated
        public long lineBreakMode()
        Deprecated.
        default is UILineBreakModeTailTruncation
      • multipleSelectionBackgroundView

        public UIView multipleSelectionBackgroundView()
        Always nil when a non-nil `backgroundConfiguration` is set. If not nil, takes the place of the selectedBackgroundView when using multiple selection.
      • prepareForReuse

        public void prepareForReuse()
        if the cell is reusable (has a reuse identifier), this is called just before the cell is returned from the table view method dequeueReusableCellWithIdentifier:. If you override, you MUST call super.
      • reuseIdentifier

        public java.lang.String reuseIdentifier()
      • selectedBackgroundView

        public UIView selectedBackgroundView()
        Always nil when a non-nil `backgroundConfiguration` is set. The 'selectedBackgroundView' will be added as a subview directly above the backgroundView if not nil, or behind all other views. It is added as a subview only when the cell is selected. Calling -setSelected:animated: will cause the 'selectedBackgroundView' to animate in and out with an alpha fade.
      • selectedImage

        @Deprecated
        public UIImage selectedImage()
        Deprecated.
        default is nil
      • selectedTextColor

        @Deprecated
        public UIColor selectedTextColor()
        Deprecated.
        default is nil (text draws white)
      • selectionStyle

        public long selectionStyle()
        default is UITableViewCellSelectionStyleDefault.
      • separatorInset

        public UIEdgeInsets separatorInset()
        allows customization of the separator frame
      • setAccessoryAction

        @Deprecated
        public void setAccessoryAction​(org.moe.natj.objc.SEL value)
        Deprecated.
        action to call on accessory view clicked. set by UITableView
      • setAccessoryType

        public void setAccessoryType​(long value)
        default is UITableViewCellAccessoryNone. use to set standard type
      • setAccessoryView

        public void setAccessoryView​(UIView value)
        if set, use custom view. ignore accessoryType. tracks if enabled can calls accessory action
      • setBackgroundView

        public void setBackgroundView​(UIView value)
        Always nil when a non-nil `backgroundConfiguration` is set. The 'backgroundView' will be added as a subview behind all other views.
      • setEditAction

        @Deprecated
        public void setEditAction​(org.moe.natj.objc.SEL value)
        Deprecated.
        action to call on insert/delete call. set by UITableView
      • setEditingAnimated

        public void setEditingAnimated​(boolean editing,
                                       boolean animated)
      • setEditingAccessoryType

        public void setEditingAccessoryType​(long value)
        default is UITableViewCellAccessoryNone. use to set standard type
      • setEditingAccessoryView

        public void setEditingAccessoryView​(UIView value)
        if set, use custom view. ignore editingAccessoryType. tracks if enabled can calls accessory action
      • setFocusStyle

        public void setFocusStyle​(long value)
      • setFont

        @Deprecated
        public void setFont​(UIFont value)
        Deprecated.
        default is nil (Use default font)
      • setHidesAccessoryWhenEditing

        @Deprecated
        public void setHidesAccessoryWhenEditing​(boolean value)
        Deprecated.
        default is YES
      • setHighlightedAnimated

        public void setHighlightedAnimated​(boolean highlighted,
                                           boolean animated)
        animate between regular and highlighted state
      • setImage

        @Deprecated
        public void setImage​(UIImage value)
        Deprecated.
        default is nil. appears on left next to title.
      • setIndentationLevel

        public void setIndentationLevel​(long value)
        adjust content indent. default is 0
      • setIndentationWidth

        public void setIndentationWidth​(double value)
        width for each level. default is 10.0
      • setLineBreakMode

        @Deprecated
        public void setLineBreakMode​(long value)
        Deprecated.
        default is UILineBreakModeTailTruncation
      • setMultipleSelectionBackgroundView

        public void setMultipleSelectionBackgroundView​(UIView value)
        Always nil when a non-nil `backgroundConfiguration` is set. If not nil, takes the place of the selectedBackgroundView when using multiple selection.
      • setSelectedAnimated

        public void setSelectedAnimated​(boolean selected,
                                        boolean animated)
        animate between regular and selected state
      • setSelectedBackgroundView

        public void setSelectedBackgroundView​(UIView value)
        Always nil when a non-nil `backgroundConfiguration` is set. The 'selectedBackgroundView' will be added as a subview directly above the backgroundView if not nil, or behind all other views. It is added as a subview only when the cell is selected. Calling -setSelected:animated: will cause the 'selectedBackgroundView' to animate in and out with an alpha fade.
      • setSelectedImage

        @Deprecated
        public void setSelectedImage​(UIImage value)
        Deprecated.
        default is nil
      • setSelectedTextColor

        @Deprecated
        public void setSelectedTextColor​(UIColor value)
        Deprecated.
        default is nil (text draws white)
      • setSelectionStyle

        public void setSelectionStyle​(long value)
        default is UITableViewCellSelectionStyleDefault.
      • setSeparatorInset

        public void setSeparatorInset​(UIEdgeInsets value)
        allows customization of the separator frame
      • setShouldIndentWhileEditing

        public void setShouldIndentWhileEditing​(boolean value)
        default is YES. This is unrelated to the indentation level below.
      • setShowsReorderControl

        public void setShowsReorderControl​(boolean value)
        default is NO
      • setTarget_unsafe

        @Deprecated
        public void setTarget_unsafe​(java.lang.Object value)
        Deprecated.
        target for insert/delete/accessory clicks. default is nil (i.e. go up responder chain). weak reference
      • setTarget

        @Deprecated
        public void setTarget​(java.lang.Object value)
        Deprecated.
        target for insert/delete/accessory clicks. default is nil (i.e. go up responder chain). weak reference
      • setText

        @Deprecated
        public void setText​(java.lang.String value)
        Deprecated.
        default is nil
      • setTextAlignment

        @Deprecated
        public void setTextAlignment​(long value)
        Deprecated.
        default is UITextAlignmentLeft
      • setTextColor

        @Deprecated
        public void setTextColor​(UIColor value)
        Deprecated.
        default is nil (text draws black)
      • shouldIndentWhileEditing

        public boolean shouldIndentWhileEditing()
        default is YES. This is unrelated to the indentation level below.
      • showingDeleteConfirmation

        public boolean showingDeleteConfirmation()
        currently showing "Delete" button
      • showsReorderControl

        public boolean showsReorderControl()
        default is NO
      • target

        @Deprecated
        public java.lang.Object target()
        Deprecated.
        target for insert/delete/accessory clicks. default is nil (i.e. go up responder chain). weak reference
      • text

        @Deprecated
        public java.lang.String text()
        Deprecated.
        default is nil
      • textAlignment

        @Deprecated
        public long textAlignment()
        Deprecated.
        default is UITextAlignmentLeft
      • textColor

        @Deprecated
        public UIColor textColor()
        Deprecated.
        default is nil (text draws black)
      • textLabel

        public UILabel textLabel()
        default is nil. label will be created if necessary.
      • willTransitionToState

        public void willTransitionToState​(long state)
        These methods can be used by subclasses to animate additional changes to the cell when the cell is changing state Note that when the cell is swiped, the cell will be transitioned into the UITableViewCellStateShowingDeleteConfirmationMask state, but the UITableViewCellStateShowingEditControlMask will not be set.
      • dragStateDidChange

        public void dragStateDidChange​(long dragState)
        Override this method to receive notifications that the cell's drag state has changed. Call super if you want to apply the default appearance.
      • setUserInteractionEnabledWhileDragging

        public void setUserInteractionEnabledWhileDragging​(boolean value)
        Controls whether the cell in the table view allows user interaction once it is part of a drag (UITableViewCellDragStateDragging). Default is NO.
      • userInteractionEnabledWhileDragging

        public boolean userInteractionEnabledWhileDragging()
        Controls whether the cell in the table view allows user interaction once it is part of a drag (UITableViewCellDragStateDragging). Default is NO.
      • automaticallyUpdatesBackgroundConfiguration

        public boolean automaticallyUpdatesBackgroundConfiguration()
        When YES, the cell will automatically call -updatedConfigurationForState: on its `backgroundConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES.
      • automaticallyUpdatesContentConfiguration

        public boolean automaticallyUpdatesContentConfiguration()
        When YES, the cell will automatically call -updatedConfigurationForState: on its `contentConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES.
      • backgroundConfiguration

        public UIBackgroundConfiguration backgroundConfiguration()
        Setting a background configuration supersedes the cell's backgroundView, selectedBackgroundView, and multipleSelectionBackgroundView. The default value is nil.
      • configurationState

        public UICellConfigurationState configurationState()
        Returns the current configuration state for the cell. To add your own custom state(s), override the getter and call super to obtain an instance with the system properties set, then set your own custom states as desired.
      • contentConfiguration

        public UIContentConfiguration contentConfiguration()
        Setting a content configuration replaces the existing contentView of the cell with a new content view instance from the configuration, or directly applies the configuration to the existing content view if the configuration is compatible with the existing content view type. The default value is nil. After a configuration has been set, setting this property to nil will replace the current content view with a new content view.
      • defaultContentConfiguration

        public UIListContentConfiguration defaultContentConfiguration()
        Returns a default list content configuration for the cell's style.
      • setAutomaticallyUpdatesBackgroundConfiguration

        public void setAutomaticallyUpdatesBackgroundConfiguration​(boolean value)
        When YES, the cell will automatically call -updatedConfigurationForState: on its `backgroundConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES.
      • setAutomaticallyUpdatesContentConfiguration

        public void setAutomaticallyUpdatesContentConfiguration​(boolean value)
        When YES, the cell will automatically call -updatedConfigurationForState: on its `contentConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES.
      • setBackgroundConfiguration

        public void setBackgroundConfiguration​(UIBackgroundConfiguration value)
        Setting a background configuration supersedes the cell's backgroundView, selectedBackgroundView, and multipleSelectionBackgroundView. The default value is nil.
      • setContentConfiguration

        public void setContentConfiguration​(UIContentConfiguration value)
        Setting a content configuration replaces the existing contentView of the cell with a new content view instance from the configuration, or directly applies the configuration to the existing content view if the configuration is compatible with the existing content view type. The default value is nil. After a configuration has been set, setting this property to nil will replace the current content view with a new content view.
      • setNeedsUpdateConfiguration

        public void setNeedsUpdateConfiguration()
        Requests the cell update its configuration for its current state. This method is called automatically when the cell's `configurationState` may have changed, as well as in other circumstances where an update may be required. Multiple requests may be coalesced into a single update at the appropriate time.
      • updateConfigurationUsingState

        public void updateConfigurationUsingState​(UICellConfigurationState state)
        Subclasses should override this method and update the cell's configuration using the state provided. This method should not be called directly, use `setNeedsUpdateConfiguration` to request an update.