public class UrlRichStyle extends RichStyle
RichText instance.RichText.setRichStyle(RichStyle, int, int, RangedRichStyle.Flag)RichStyle.Capability, RichStyle.TypeId| 构造器 | 说明 |
|---|---|
UrlRichStyle(String url) |
A constructor used to create a
UrlRichStyle instance with the specified url. |
UrlRichStyle(String url,
Color color) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Color |
getColor() |
Obtains the color of the hyperlink text and underline.
|
String |
getUrl() |
Obtains the target URL.
|
void |
setColor(Color color) |
Sets the color for the hyperlink text and underline.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapability, getRichStyleTypeIdpublic UrlRichStyle(String url)
UrlRichStyle instance with the specified url. By default, the
hyperlink color set in Text is used.url - Indicates the target URL to be redirected to.IllegalArgumentException - Throws this exception if the specified url is null.public UrlRichStyle(String url, Color color)
url - Indicates the target URL to be redirected to.color - Indicates the color of the hyperlink text and underline.IllegalArgumentException - Throws this exception if the specified url or color is null.public void setColor(Color color)
color - Indicates the color of the hyperlink text and underline.IllegalArgumentException - Throws this exception if the specified color is null.public Color getColor()
public String getUrl()