Package org.robovm.apple.foundation
Class NSMutableAttributedString
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSAttributedString
-
- org.robovm.apple.foundation.NSMutableAttributedString
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
NSTextStorage
public class NSMutableAttributedString extends NSAttributedString
- Since:
- Available in iOS 3.2 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSMutableAttributedString.NSMutableAttributedStringPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSAttributedString
NSAttributedString.NSAttributedStringPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSMutableAttributedString()
NSMutableAttributedString(java.lang.String str)
NSMutableAttributedString(java.lang.String str, CMTextMarkupAttributes attrs)
NSMutableAttributedString(java.lang.String str, CTAttributedStringAttributes attrs)
NSMutableAttributedString(java.lang.String str, NSAttributedStringAttributes attrs)
NSMutableAttributedString(NSAttributedString attrStr)
protected
NSMutableAttributedString(NSObject.Handle h, long handle)
protected
NSMutableAttributedString(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSAttributedString
draw, draw, draw, encode, enumerateAttribute, enumerateAttribute, enumerateAttribute, enumerateAttribute, enumerateAttribute, enumerateAttributes, equals, equalsTo, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributes, getAttributesDictionary, getAttributesDictionary, getBoundingRect, getCoreTextAttributes, getCoreTextAttributes, getData, getFileWrapper, getSize, getString, getTextMarkupAttributes, getTextMarkupAttributes, init, init, init, init, length, substring, supportsSecureCoding
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, 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
-
-
-
-
Constructor Detail
-
NSMutableAttributedString
public NSMutableAttributedString()
-
NSMutableAttributedString
protected NSMutableAttributedString(NSObject.Handle h, long handle)
-
NSMutableAttributedString
protected NSMutableAttributedString(NSObject.SkipInit skipInit)
-
NSMutableAttributedString
public NSMutableAttributedString(NSAttributedString attrStr)
-
NSMutableAttributedString
public NSMutableAttributedString(java.lang.String str, NSAttributedStringAttributes attrs)
-
NSMutableAttributedString
public NSMutableAttributedString(java.lang.String str, CMTextMarkupAttributes attrs)
-
NSMutableAttributedString
public NSMutableAttributedString(java.lang.String str, CTAttributedStringAttributes attrs)
-
NSMutableAttributedString
public NSMutableAttributedString(java.lang.String str)
-
-
Method Detail
-
getMutableString
public NSMutableString getMutableString()
-
addAttribute
public void addAttribute(NSAttributedStringAttribute attribute, NSObject value, NSRange range)
-
addAttribute
public void addAttribute(CMTextMarkupAttribute attribute, NSObject value, NSRange range)
-
addAttribute
public void addAttribute(CTAttributedStringAttribute attribute, NSObject value, NSRange range)
-
addAttributes
public void addAttributes(NSAttributedStringAttributes attrs, NSRange range)
-
addAttributes
public void addAttributes(CMTextMarkupAttributes attrs, NSRange range)
-
addAttributes
public void addAttributes(CTAttributedStringAttributes attrs, NSRange range)
-
setAttributes
public void setAttributes(NSAttributedStringAttributes attrs, NSRange range)
-
setAttributes
public void setAttributes(CMTextMarkupAttributes attrs, NSRange range)
-
setAttributes
public void setAttributes(CTAttributedStringAttributes attrs, NSRange range)
-
removeAttribute
public void removeAttribute(java.lang.String name, NSRange range)
-
removeAttribute
public void removeAttribute(NSAttributedStringAttribute attribute, NSRange range)
-
removeAttribute
public void removeAttribute(CMTextMarkupAttribute attribute, NSRange range)
-
removeAttribute
public void removeAttribute(CTAttributedStringAttribute attribute, NSRange range)
-
read
public boolean read(NSURL url, NSAttributedStringDocumentAttributes opts) throws NSErrorException
- Parameters:
url
-opts
-- Returns:
- Throws:
NSErrorException
- Since:
- Available in iOS 9.0 and later.
-
read
public boolean read(NSData data, NSAttributedStringDocumentAttributes opts) throws NSErrorException
- Parameters:
data
-opts
-- Returns:
- Throws:
NSErrorException
- Since:
- Available in iOS 7.0 and later.
-
fixAttributes
public void fixAttributes(NSRange range)
- Since:
- Available in iOS 7.0 and later.
-
replace
public void replace(NSRange range, java.lang.String str)
- Overrides:
replace
in classNSAttributedString
-
setAttributes
public void setAttributes(NSDictionary<NSString,?> attrs, NSRange range)
- Overrides:
setAttributes
in classNSAttributedString
-
addAttribute
public void addAttribute(NSString name, NSObject value, NSRange range)
- Overrides:
addAttribute
in classNSAttributedString
-
addAttributes
public void addAttributes(NSDictionary<NSString,?> attrs, NSRange range)
- Overrides:
addAttributes
in classNSAttributedString
-
removeAttribute
public void removeAttribute(NSString name, NSRange range)
- Overrides:
removeAttribute
in classNSAttributedString
-
replace
public void replace(NSRange range, NSAttributedString attrString)
- Overrides:
replace
in classNSAttributedString
-
insert
public void insert(NSAttributedString attrString, long loc)
- Overrides:
insert
in classNSAttributedString
-
append
public void append(NSAttributedString attrString)
- Overrides:
append
in classNSAttributedString
-
delete
public void delete(NSRange range)
- Overrides:
delete
in classNSAttributedString
-
setAttributedString
public void setAttributedString(NSAttributedString attrString)
- Overrides:
setAttributedString
in classNSAttributedString
-
beginEditing
public void beginEditing()
- Overrides:
beginEditing
in classNSAttributedString
-
endEditing
public void endEditing()
- Overrides:
endEditing
in classNSAttributedString
-
-