com.google.gwt.user.client.ui.RichTextArea.Formatter |
Known Indirect Subclasses |
This interface is used to access full formatting options, when available.
If the implementation supports full formatting, then
getFormatter()
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 setHTML(String)
instead.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a link to the supplied URL.
| |||||||||||
Gets the background color.
| |||||||||||
Gets the foreground color.
| |||||||||||
Inserts generic html.
| |||||||||||
Inserts a horizontal rule.
| |||||||||||
Inserts an image element.
| |||||||||||
Starts an numbered list.
| |||||||||||
Starts an bulleted list.
| |||||||||||
Is the current region bold?
| |||||||||||
Is the current region italic?
| |||||||||||
Is the current region strikethrough?
| |||||||||||
Is the current region subscript?
| |||||||||||
Is the current region superscript?
| |||||||||||
Is the current region underlined?
| |||||||||||
Left indent.
| |||||||||||
Redo an action that was just undone.
| |||||||||||
Removes all formatting on the selected text.
| |||||||||||
Removes any link from the selected text.
| |||||||||||
Right indent.
| |||||||||||
Selects all the text.
| |||||||||||
Sets the background color.
| |||||||||||
Sets the font name.
| |||||||||||
Sets the font size.
| |||||||||||
Sets the foreground color.
| |||||||||||
Sets the justification.
| |||||||||||
Toggles bold.
| |||||||||||
Toggles italic.
| |||||||||||
Toggles strikethrough.
| |||||||||||
Toggles subscript.
| |||||||||||
Toggles superscript.
| |||||||||||
Toggles underline.
| |||||||||||
Undo the last action.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.user.client.ui.RichTextArea.BasicFormatter
| |||||||||||
From interface
com.google.gwt.user.client.ui.RichTextArea.ExtendedFormatter
|
Creates a link to the supplied URL.
url | the URL to be linked to |
---|
Inserts generic html.
html | the HTML to insert |
---|
Inserts a horizontal rule.
Inserts an image element.
url | the url of the image to be inserted |
---|
Starts an numbered list. Indentation will create nested items.
Starts an bulleted list. Indentation will create nested items.
Is the current region bold?
Is the current region italic?
Is the current region strikethrough?
Is the current region subscript?
Is the current region superscript?
Is the current region underlined?
Left indent.
Redo an action that was just undone.
Removes all formatting on the selected text.
Removes any link from the selected text.
Right indent.
Selects all the text.
Sets the background color.
color | the new background color |
---|
Sets the font name.
name | the new font name |
---|
Sets the font size.
fontSize | the new font size |
---|
Sets the foreground color.
color | the new foreground color |
---|
Sets the justification.
justification | the new justification |
---|
Toggles bold.
Toggles italic.
Toggles strikethrough.
Toggles subscript.
Toggles superscript.
Toggles underline.
Undo the last action.