RichText.@Deprecated public class RichTextBuilder extends Object
The effective text style used by the builder is iteratively updated by the merging (adding) a new text style or reverting (deleting) the most recently added one. The newly input text will apply the effective text style.
| 构造器 | 说明 |
|---|---|
RichTextBuilder() |
已过时。
|
RichTextBuilder(TextForm defaultForm) |
已过时。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
RichTextBuilder |
addText(String text) |
已过时。
|
RichText |
build() |
已过时。
|
RichTextBuilder |
mergeForm(TextForm form) |
已过时。
|
RichTextBuilder |
revertForm() |
已过时。
|
@Deprecated public RichTextBuilder()
RichTextBuilder instance.@Deprecated public RichTextBuilder(TextForm defaultForm)
RichTextBuilder instance with specified default text form.defaultForm - Indicates the default form specified for the RichTextBuilder instance.@Deprecated public RichTextBuilder addText(String text)
text - text Indicates the text segment to add.@Deprecated public RichTextBuilder mergeForm(TextForm form)
form - Indicates the text form to add.@Deprecated public RichTextBuilder revertForm()
@Deprecated public RichText build()
Calling this method will clear the previous configurations.