public static interface

RichTextArea.ExtendedFormatter

implements RichTextArea.BasicFormatter
com.google.gwt.user.client.ui.RichTextArea.ExtendedFormatter
Known Indirect Subclasses

This interface is deprecated.
use RichTextArea.Formatter instead

Class Overview

This interface is used to access full formatting options, when available. If the implementation supports full formatting, then 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 setHTML(String) instead.

Summary

Public Methods
abstract void createLink(String url)
Creates a link to the supplied URL.
abstract void insertHorizontalRule()
Inserts a horizontal rule.
abstract void insertImage(String url)
Inserts an image element.
abstract void insertOrderedList()
Starts an numbered list.
abstract void insertUnorderedList()
Starts an bulleted list.
abstract boolean isStrikethrough()
Is the current region strikethrough?
abstract void leftIndent()
Left indent.
abstract void removeFormat()
Removes all formatting on the selected text.
abstract void removeLink()
Removes any link from the selected text.
abstract void rightIndent()
Right indent.
abstract void toggleStrikethrough()
Toggles strikethrough.
[Expand]
Inherited Methods
From interface com.google.gwt.user.client.ui.RichTextArea.BasicFormatter

Public Methods

public abstract void createLink (String url)

Creates a link to the supplied URL.

Parameters
url the URL to be linked to

public abstract void insertHorizontalRule ()

Inserts a horizontal rule.

public abstract void insertImage (String url)

Inserts an image element.

Parameters
url the url of the image to be inserted

public abstract void insertOrderedList ()

Starts an numbered list. Indentation will create nested items.

public abstract void insertUnorderedList ()

Starts an bulleted list. Indentation will create nested items.

public abstract boolean isStrikethrough ()

Is the current region strikethrough?

Returns
  • true if the current region is strikethrough

public abstract void leftIndent ()

Left indent.

public abstract void removeFormat ()

Removes all formatting on the selected text.

public abstract void removeLink ()

Removes any link from the selected text.

public abstract void rightIndent ()

Right indent.

public abstract void toggleStrikethrough ()

Toggles strikethrough.