RichTextArea.Formatter
instead@Deprecated public static interface RichTextArea.ExtendedFormatter extends RichTextArea.BasicFormatter
This interface is used to access full formatting options, when available.
If the implementation supports full formatting, then
RichTextArea.getExtendedFormatter()
will return an instance of this
class.
The formatter will format the user selected text in the
RichTextArea
. As a result, it will only work reliably if the
RichTextArea
is attached, visible to on the page, and has been
focused at least once. If you just want to initialize the content of the
RichTextArea
, use RichTextArea.setHTML(String)
instead.
Modifier and Type | Method and Description |
---|---|
void |
createLink(String url)
Deprecated.
Creates a link to the supplied URL.
|
void |
insertHorizontalRule()
Deprecated.
Inserts a horizontal rule.
|
void |
insertImage(String url)
Deprecated.
Inserts an image element.
|
void |
insertOrderedList()
Deprecated.
Starts an numbered list.
|
void |
insertUnorderedList()
Deprecated.
Starts an bulleted list.
|
boolean |
isStrikethrough()
Deprecated.
Is the current region strikethrough?
|
void |
leftIndent()
Deprecated.
Left indent.
|
void |
removeFormat()
Deprecated.
Removes all formatting on the selected text.
|
void |
removeLink()
Deprecated.
Removes any link from the selected text.
|
void |
rightIndent()
Deprecated.
Right indent.
|
void |
toggleStrikethrough()
Deprecated.
Toggles strikethrough.
|
getBackColor, getForeColor, isBold, isItalic, isSubscript, isSuperscript, isUnderlined, selectAll, setBackColor, setFontName, setFontSize, setForeColor, setJustification, toggleBold, toggleItalic, toggleSubscript, toggleSuperscript, toggleUnderline
void createLink(String url)
url
- the URL to be linked tovoid insertHorizontalRule()
void insertImage(String url)
url
- the url of the image to be insertedvoid insertOrderedList()
void insertUnorderedList()
boolean isStrikethrough()
void leftIndent()
void removeFormat()
void removeLink()
void rightIndent()
void toggleStrikethrough()
Copyright © 2018. All rights reserved.