com.google.gwt.user.client.ui
Interface RichTextArea.ExtendedFormatter

All Superinterfaces:
RichTextArea.BasicFormatter
Enclosing interface:
RichTextArea

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.


Method Summary
 void createLink(java.lang.String url)
          Creates a link to the supplied URL.
 void insertHorizontalRule()
          Inserts a horizontal rule.
 void insertImage(java.lang.String url)
          Inserts an image element.
 void insertOrderedList()
          Starts an numbered list.
 void insertUnorderedList()
          Starts an bulleted list.
 boolean isStrikethrough()
          Is the current region strikethrough?
 void leftIndent()
          Left indent.
 void removeFormat()
          Removes all formatting on the selected text.
 void removeLink()
          Removes any link from the selected text.
 void rightIndent()
          Right indent.
 void toggleStrikethrough()
          Toggles strikethrough.
 
Methods inherited from interface com.google.gwt.user.client.ui.RichTextArea.BasicFormatter
getBackColor, getForeColor, isBold, isItalic, isSubscript, isSuperscript, isUnderlined, selectAll, setBackColor, setFontName, setFontSize, setForeColor, setJustification, toggleBold, toggleItalic, toggleSubscript, toggleSuperscript, toggleUnderline
 

Method Detail

createLink

public void createLink(java.lang.String url)
Creates a link to the supplied URL.

Parameters:
url - the URL to be linked to

insertHorizontalRule

public void insertHorizontalRule()
Inserts a horizontal rule.


insertImage

public void insertImage(java.lang.String url)
Inserts an image element.

Parameters:
url - the url of the image to be inserted

insertOrderedList

public void insertOrderedList()
Starts an numbered list. Indentation will create nested items.


insertUnorderedList

public void insertUnorderedList()
Starts an bulleted list. Indentation will create nested items.


isStrikethrough

public boolean isStrikethrough()
Is the current region strikethrough?

Returns:
true if the current region is strikethrough

leftIndent

public void leftIndent()
Left indent.


removeFormat

public void removeFormat()
Removes all formatting on the selected text.


removeLink

public void removeLink()
Removes any link from the selected text.


rightIndent

public void rightIndent()
Right indent.


toggleStrikethrough

public void toggleStrikethrough()
Toggles strikethrough.