com.google.gwt.user.client.ui.RichTextArea.BasicFormatter |
![]() |
This interface is deprecated.
use RichTextArea.Formatter
instead
This interface is used to access basic formatting options, when available.
If the implementation supports basic formatting, then
getBasicFormatter()
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the background color.
| |||||||||||
Gets the foreground color.
| |||||||||||
Is the current region bold?
| |||||||||||
Is the current region italic?
| |||||||||||
Is the current region subscript?
| |||||||||||
Is the current region superscript?
| |||||||||||
Is the current region underlined?
| |||||||||||
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 subscript.
| |||||||||||
Toggles superscript.
| |||||||||||
Toggles underline.
|
Is the current region bold?
Is the current region italic?
Is the current region subscript?
Is the current region superscript?
Is the current region underlined?
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 subscript.
Toggles superscript.
Toggles underline.