Adds an attribute to the entire string.
@param attribute the attribute key
@param value the value of the attribute; may be null
@exception NullPointerException if attribute is null.
@exception IllegalArgumentException if the AttributedString has length 0(attributes cannot be applied to a 0-length range).
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.