public class UIStepper extends UIControl
NoIntrinsicMetric| Constructor and Description |
|---|
UIStepper()
Constructs a default UIStepper object located at (0,0) with 0 weight and
0 height.
|
UIStepper(CGRect frame)
Constructs a UIStepper object initialized with the dimensions and
position specified in the frame parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
autorepeat()
Returns a Boolean that shows what happens when the user presses and holds
the stepper.
|
UIImage |
backgroundImageForState(int UIControlState)
Returns the background image of the specified control state.
|
UIImage |
decrementImageForState(int UIControlState)
Returns the image used for the decrement of the specified control state.
|
UIImage |
dividerImageForLeftSegmentState(int UIControlStateLeftState,
int UIControlStateRightstate)
Returns the divider image used for the specified control states.
|
UIImage |
incrementImageForState(int UIControlState)
Returns the image that corresponds to the specified control state.
|
boolean |
isContinuous()
Determine whether the value is sent immediately after change.
|
double |
maximumValue()
Returns the maximum value of this stepper.
|
double |
minimumValue()
Returns the minimum value of this stepper.
|
void |
setAutorepeat(boolean autorepeat)
Sets a Boolean that defines what happens when the user presses and holds
the stepper.
|
void |
setBackgroundImage(UIImage image,
int UIControlState)
Sets the background for the specified control state.
|
void |
setContinuous(boolean continuous)
Sets whether the value is sent immediately after change.
|
void |
setDecrementImage(UIImage image,
int UIControlState)
Sets the image to use for the decrement of the specified control state.
|
void |
setDividerImage(UIImage image,
int UIControlStateLeftState,
int UIControlStateRightstate)
Sets the divider image used for the specified control states.
|
void |
setFrame(CGRect frame)
Sets view's dimensions and position according to the structure specified
as frame parameter.
|
void |
setIncrementImage(UIImage image,
int UIControlState)
Sets the specified image for the specified control state.
|
void |
setMaximumValue(double maximumValue)
Sets the maximum value for this stepper.
|
void |
setMinimumValue(double minimumValue)
Sets the minimum value for this stepper.
|
void |
setStepValue(double stepValue)
Sets the step value for this stepper.
|
void |
setTintColor(UIColor tintColor)
Sets the tint color of this view as defined by the specified parameter.
|
void |
setValue(double value)
Sets the numeric value of the stepper.
|
void |
setWraps(boolean wraps)
Sets a Boolean that defines what happens when the user tries to exceed
the maximum or minimum values.
|
double |
stepValue()
Returns the step value of this stepper.
|
UIColor |
tintColor()
Returns the non-default tint color value of the short distant view in the
view hierarchy.
|
double |
value()
Returns the current numeric value of this stepper.
|
boolean |
wraps()
Returns a Boolean that shows what happens when the user tries to exceed
the maximum or minimum values.
|
addTarget, allTargets, contentHorizontalAlignment, contentVerticalAlignment, hitTest, isEnabled, isHighlighted, isSelected, removeTarget, sendActionsForControlEvents, setContentHorizontalAlignment, setContentVerticalAlignment, setEnabled, setHighlighted, setSelected, state, touchesBegan, touchesCancelled, touchesEnded, touchesMovedaccessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, drawRect, frame, gestureRecognizers, heightAnchor, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSubviews, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, windowbecomeFirstResponder, isFirstResponder, resignFirstResponderaddObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeypublic UIStepper()
public UIStepper(CGRect frame)
frame - CGRect that defines dimension and position of UIStepper.public void setFrame(CGRect frame)
UIViewpublic boolean isContinuous()
public void setContinuous(boolean continuous)
continuous - A Boolean that defines whether the value is sent
immediately after change.public boolean autorepeat()
public void setAutorepeat(boolean autorepeat)
autorepeat - TRUE the value keeps changing when pressing and holding
the stepper.public boolean wraps()
public void setWraps(boolean wraps)
wraps - TRUE when the user tries to exceed the maximum or minimum
value, the stepper value is set to opposite threshold.FALSE nothing
happens.public double minimumValue()
public void setMinimumValue(double minimumValue)
minimumValue - The minimum value for this stepper.public double maximumValue()
public void setMaximumValue(double maximumValue)
maximumValue - The maximum value for this stepper.public double stepValue()
public void setStepValue(double stepValue)
stepValue - The step value of this stepper.public double value()
public void setValue(double value)
value - The numeric value of the stepper.public UIColor tintColor()
UIViewpublic void setTintColor(UIColor tintColor)
UIViewsetTintColor in class UIViewtintColor - The new tint color of this view.UIColorpublic UIImage backgroundImageForState(int UIControlState)
UIControlState - The control state for which the image is requested.public void setBackgroundImage(UIImage image, int UIControlState)
image - The image used for the background.UIControlState - The control state for which the image is selected.public UIImage decrementImageForState(int UIControlState)
UIControlState - The control state for which the image is returned.public void setDecrementImage(UIImage image, int UIControlState)
image - The image used for the decrement.UIControlState - The control state for which the image is selected.public UIImage dividerImageForLeftSegmentState(int UIControlStateLeftState, int UIControlStateRightstate)
UIControlStateLeftState - The left control state for which the image
is set.UIControlStateRightstate - The right control state for which the
image is set.public void setDividerImage(UIImage image, int UIControlStateLeftState, int UIControlStateRightstate)
image - The image used for the specified control states.UIControlStateLeftState - The left control state for which the image
is set.UIControlStateRightstate - The right control state for which the
image is set.public UIImage incrementImageForState(int UIControlState)
UIControlState - The control state for which the image is requested.public void setIncrementImage(UIImage image, int UIControlState)
image - The image for the specified control state.UIControlState - The control state for which the the image is set.Copyright © 2020. All rights reserved.