public abstract class

RichTextAreaImplStandard

extends RichTextAreaImpl
implements RichTextArea.BasicFormatter RichTextArea.ExtendedFormatter RichTextArea.Formatter
java.lang.Object
   ↳ com.google.gwt.user.client.ui.impl.RichTextAreaImpl
     ↳ com.google.gwt.user.client.ui.impl.RichTextAreaImplStandard
Known Direct Subclasses

Class Overview

Basic rich text platform implementation.

Summary

Fields
protected boolean initializing Set to true when the RichTextArea is attached to the page and initElement() is called.
[Expand]
Inherited Fields
From class com.google.gwt.user.client.ui.impl.RichTextAreaImpl
Public Constructors
RichTextAreaImplStandard()
Public Methods
Element createElement()
void createLink(String url)
Creates a link to the supplied URL.
String getBackColor()
Gets the background color.
String getForeColor()
Gets the foreground color.
final String getHTML()
final String getText()
void initElement()
void insertHTML(String html)
Inserts generic html.
void insertHorizontalRule()
Inserts a horizontal rule.
void insertImage(String url)
Inserts an image element.
void insertOrderedList()
Starts an numbered list.
void insertUnorderedList()
Starts an bulleted list.
boolean isBold()
Is the current region bold?
boolean isEnabled()
boolean isItalic()
Is the current region italic?
boolean isStrikethrough()
Is the current region strikethrough?
boolean isSubscript()
Is the current region subscript?
boolean isSuperscript()
Is the current region superscript?
boolean isUnderlined()
Is the current region underlined?
void leftIndent()
Left indent.
void redo()
Redo an action that was just undone.
void removeFormat()
Removes all formatting on the selected text.
void removeLink()
Removes any link from the selected text.
void rightIndent()
Right indent.
void selectAll()
Selects all the text.
void setBackColor(String color)
Sets the background color.
void setEnabled(boolean enabled)
void setFocus(boolean focused)
void setFontName(String name)
Sets the font name.
void setFontSize(RichTextArea.FontSize fontSize)
Sets the font size.
void setForeColor(String color)
Sets the foreground color.
final void setHTML(String html)
void setJustification(RichTextArea.Justification justification)
Sets the justification.
final void setText(String text)
void toggleBold()
Toggles bold.
void toggleItalic()
Toggles italic.
void toggleStrikethrough()
Toggles strikethrough.
void toggleSubscript()
Toggles subscript.
void toggleSuperscript()
Toggles superscript.
void toggleUnderline()
Toggles underline.
void undo()
Undo the last action.
void uninitElement()
Protected Methods
String getHTMLImpl()
String getTextImpl()
void hookEvents()
boolean isEnabledImpl()
void onElementInitialized()
void onElementInitializing()
void setEnabledImpl(boolean enabled)
void setFocusImpl(boolean focused)
void setHTMLImpl(String html)
void setTextImpl(String text)
void unhookEvents()
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.impl.RichTextAreaImpl
From class java.lang.Object
From interface com.google.gwt.user.client.ui.RichTextArea.BasicFormatter
From interface com.google.gwt.user.client.ui.RichTextArea.ExtendedFormatter
From interface com.google.gwt.user.client.ui.RichTextArea.Formatter

Fields

protected boolean initializing

Set to true when the RichTextArea is attached to the page and initElement() is called. If the RichTextArea is detached before onElementInitialized() is called, this will be set to false. See issue 1897 for details.

Public Constructors

public RichTextAreaImplStandard ()

Public Methods

public Element createElement ()

public void createLink (String url)

Creates a link to the supplied URL.

Parameters
url the URL to be linked to

public String getBackColor ()

Gets the background color.

Returns
  • the background color

public String getForeColor ()

Gets the foreground color.

Returns
  • the foreground color

public final String getHTML ()

public final String getText ()

public void initElement ()

public void insertHTML (String html)

Inserts generic html.

Parameters
html the HTML to insert

public void insertHorizontalRule ()

Inserts a horizontal rule.

public void insertImage (String url)

Inserts an image element.

Parameters
url the url of the image to be inserted

public void insertOrderedList ()

Starts an numbered list. Indentation will create nested items.

public void insertUnorderedList ()

Starts an bulleted list. Indentation will create nested items.

public boolean isBold ()

Is the current region bold?

Returns
  • true if the current region is bold

public boolean isEnabled ()

public boolean isItalic ()

Is the current region italic?

Returns
  • true if the current region is italic

public boolean isStrikethrough ()

Is the current region strikethrough?

Returns
  • true if the current region is strikethrough

public boolean isSubscript ()

Is the current region subscript?

Returns
  • true if the current region is subscript

public boolean isSuperscript ()

Is the current region superscript?

Returns
  • true if the current region is superscript

public boolean isUnderlined ()

Is the current region underlined?

Returns
  • true if the current region is underlined

public void leftIndent ()

Left indent.

public void redo ()

Redo an action that was just undone.

public void removeFormat ()

Removes all formatting on the selected text.

public void removeLink ()

Removes any link from the selected text.

public void rightIndent ()

Right indent.

public void selectAll ()

Selects all the text.

public void setBackColor (String color)

Sets the background color.

Parameters
color the new background color

public void setEnabled (boolean enabled)

public void setFocus (boolean focused)

public void setFontName (String name)

Sets the font name.

Parameters
name the new font name

public void setFontSize (RichTextArea.FontSize fontSize)

Sets the font size.

Parameters
fontSize the new font size

public void setForeColor (String color)

Sets the foreground color.

Parameters
color the new foreground color

public final void setHTML (String html)

public void setJustification (RichTextArea.Justification justification)

Sets the justification.

Parameters
justification the new justification

public final void setText (String text)

public void toggleBold ()

Toggles bold.

public void toggleItalic ()

Toggles italic.

public void toggleStrikethrough ()

Toggles strikethrough.

public void toggleSubscript ()

Toggles subscript.

public void toggleSuperscript ()

Toggles superscript.

public void toggleUnderline ()

Toggles underline.

public void undo ()

Undo the last action.

public void uninitElement ()

Protected Methods

protected String getHTMLImpl ()

protected String getTextImpl ()

protected void hookEvents ()

protected boolean isEnabledImpl ()

protected void onElementInitialized ()

protected void onElementInitializing ()

protected void setEnabledImpl (boolean enabled)

protected void setFocusImpl (boolean focused)

protected void setHTMLImpl (String html)

protected void setTextImpl (String text)

protected void unhookEvents ()