Package org.robovm.apple.uikit
Class UISegmentedControl
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIResponder
-
- org.robovm.apple.uikit.UIView
-
- org.robovm.apple.uikit.UIControl
-
- org.robovm.apple.uikit.UISegmentedControl
-
- All Implemented Interfaces:
CALayerDelegate
,NSCoding
,NSObjectProtocol
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UISpringLoadedInteractionSupporting
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
public class UISegmentedControl extends UIControl implements NSCoding, UISpringLoadedInteractionSupporting
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UISegmentedControl.UISegmentedControlPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIControl
UIControl.Listener, UIControl.OnEditingChangedListener, UIControl.OnEditingDidBeginListener, UIControl.OnEditingDidEndListener, UIControl.OnEditingDidEndOnExitListener, UIControl.OnPrimaryActionTriggeredListener, UIControl.OnTouchCancelListener, UIControl.OnTouchDownListener, UIControl.OnTouchDownRepeatListener, UIControl.OnTouchDragEnterListener, UIControl.OnTouchDragExitListener, UIControl.OnTouchDragInsideListener, UIControl.OnTouchDragOutsideListener, UIControl.OnTouchUpInsideListener, UIControl.OnTouchUpOutsideListener, UIControl.OnValueChangedListener, UIControl.UIControlPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
Fields Modifier and Type Field Description static int
NoSegment
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UISegmentedControl()
UISegmentedControl(java.lang.String... items)
UISegmentedControl(CGRect frame)
UISegmentedControl(NSArray<?> items)
UISegmentedControl(NSCoder decoder)
protected
UISegmentedControl(NSObject.Handle h, long handle)
protected
UISegmentedControl(NSObject.SkipInit skipInit)
UISegmentedControl(UIImage... items)
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIControl
addOnEditingChangedListener, addOnEditingDidBegin, addOnEditingDidEndListener, addOnEditingDidEndOnExitListener, addOnPrimaryActionTriggeredListener, addOnTouchCancelListener, addOnTouchDownListener, addOnTouchDownRepeatListener, addOnTouchDragEnterListener, addOnTouchDragExitListener, addOnTouchDragInsideListener, addOnTouchDragOutsideListener, addOnTouchUpInsideListener, addOnTouchUpOutsideListener, addOnValueChangedListener, addTarget, beginTracking, cancelTracking, continueTracking, endTracking, getActions, getAllControlEvents, getAllTargets, getContentHorizontalAlignment, getContentVerticalAlignment, getEffectiveContentHorizontalAlignment, getState, isEnabled, isHighlighted, isSelected, isTouchInside, isTracking, removeListener, removeTarget, sendAction, sendControlEventsActions, setContentHorizontalAlignment, setContentVerticalAlignment, setEnabled, setHighlighted, setSelected
-
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getLastBaselineAnchor, getLayer, getLayerClass, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMotionEffects, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getUserInterfaceLayoutDirection, getUserInterfaceLayoutDirection, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, init, init, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setSemanticContentAttribute, setTag, setTintAdjustmentMode, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubview
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Field Detail
-
NoSegment
public static final int NoSegment
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UISegmentedControl
public UISegmentedControl()
-
UISegmentedControl
protected UISegmentedControl(NSObject.Handle h, long handle)
-
UISegmentedControl
protected UISegmentedControl(NSObject.SkipInit skipInit)
-
UISegmentedControl
public UISegmentedControl(NSArray<?> items)
-
UISegmentedControl
public UISegmentedControl(CGRect frame)
-
UISegmentedControl
public UISegmentedControl(NSCoder decoder)
-
UISegmentedControl
public UISegmentedControl(java.lang.String... items)
-
UISegmentedControl
public UISegmentedControl(UIImage... items)
-
-
Method Detail
-
getControlStyle
@Deprecated public UISegmentedControlStyle getControlStyle()
Deprecated.Deprecated in iOS 7.0. The segmentedControlStyle property no longer has any effect- Since:
- Available in iOS 2.0 and later.
-
setControlStyle
@Deprecated public void setControlStyle(UISegmentedControlStyle v)
Deprecated.Deprecated in iOS 7.0. The segmentedControlStyle property no longer has any effect- Since:
- Available in iOS 2.0 and later.
-
isMomentary
public boolean isMomentary()
-
setMomentary
public void setMomentary(boolean v)
-
getNumberOfSegments
public long getNumberOfSegments()
-
apportionsSegmentWidthsByContent
public boolean apportionsSegmentWidthsByContent()
- Since:
- Available in iOS 5.0 and later.
-
setApportionsSegmentWidthsByContent
public void setApportionsSegmentWidthsByContent(boolean v)
- Since:
- Available in iOS 5.0 and later.
-
getSelectedSegment
public long getSelectedSegment()
-
setSelectedSegment
public void setSelectedSegment(long v)
-
getTintColor
public UIColor getTintColor()
- Overrides:
getTintColor
in classUIView
-
setTintColor
public void setTintColor(UIColor v)
- Overrides:
setTintColor
in classUIView
-
isSpringLoaded
public boolean isSpringLoaded()
- Specified by:
isSpringLoaded
in interfaceUISpringLoadedInteractionSupporting
- Since:
- Available in iOS 11.0 and later.
-
setSpringLoaded
public void setSpringLoaded(boolean v)
- Specified by:
setSpringLoaded
in interfaceUISpringLoadedInteractionSupporting
- Since:
- Available in iOS 11.0 and later.
-
setTitleTextAttributes
public void setTitleTextAttributes(NSAttributedStringAttributes attributes, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setTitleTextMarkupAttributes
public void setTitleTextMarkupAttributes(CMTextMarkupAttributes attributes, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setTitleCoreTextAttributes
public void setTitleCoreTextAttributes(CTAttributedStringAttributes attributes, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getTitleTextAttributes
public NSAttributedStringAttributes getTitleTextAttributes(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getTitleTextMarkupAttributes
public CMTextMarkupAttributes getTitleTextMarkupAttributes(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getTitleCoreTextAttributes
public CTAttributedStringAttributes getTitleCoreTextAttributes(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
init
protected long init(NSArray<?> items)
-
insertSegment
public void insertSegment(java.lang.String title, long segment, boolean animated)
-
insertSegment
public void insertSegment(UIImage image, long segment, boolean animated)
-
removeSegment
public void removeSegment(long segment, boolean animated)
-
removeAllSegments
public void removeAllSegments()
-
setTitle
public void setTitle(java.lang.String title, long segment)
-
getTitle
public java.lang.String getTitle(long segment)
-
setImage
public void setImage(UIImage image, long segment)
-
getImage
public UIImage getImage(long segment)
-
setWidth
public void setWidth(double width, long segment)
-
getWidth
public double getWidth(long segment)
-
setContentOffset
public void setContentOffset(CGSize offset, long segment)
-
getContentOffset
public CGSize getContentOffset(long segment)
-
setEnabled
public void setEnabled(boolean enabled, long segment)
-
isEnabled
public boolean isEnabled(long segment)
-
setBackgroundImage
public void setBackgroundImage(UIImage backgroundImage, UIControlState state, UIBarMetrics barMetrics)
- Since:
- Available in iOS 5.0 and later.
-
getBackgroundImage
public UIImage getBackgroundImage(UIControlState state, UIBarMetrics barMetrics)
- Since:
- Available in iOS 5.0 and later.
-
setDividerImage
public void setDividerImage(UIImage dividerImage, UIControlState leftState, UIControlState rightState, UIBarMetrics barMetrics)
- Since:
- Available in iOS 5.0 and later.
-
getDividerImage
public UIImage getDividerImage(UIControlState leftState, UIControlState rightState, UIBarMetrics barMetrics)
- Since:
- Available in iOS 5.0 and later.
-
setTitleTextAttributesDictionary
public void setTitleTextAttributesDictionary(NSDictionary<NSString,?> attributes, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getTitleTextAttributesDictionary
public NSDictionary<NSString,?> getTitleTextAttributesDictionary(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setContentPositionAdjustment
public void setContentPositionAdjustment(UIOffset adjustment, UISegmentedControlSegment leftCenterRightOrAlone, UIBarMetrics barMetrics)
- Since:
- Available in iOS 5.0 and later.
-
getContentPositionAdjustment
public UIOffset getContentPositionAdjustment(UISegmentedControlSegment leftCenterRightOrAlone, UIBarMetrics barMetrics)
- Since:
- Available in iOS 5.0 and later.
-
-