com.google.gwt.user.client.ui.impl
Class RichTextAreaImplStandard

java.lang.Object
  extended by com.google.gwt.user.client.ui.impl.RichTextAreaImpl
      extended by com.google.gwt.user.client.ui.impl.RichTextAreaImplStandard
All Implemented Interfaces:
RichTextArea.BasicFormatter, RichTextArea.ExtendedFormatter, RichTextArea.Formatter
Direct Known Subclasses:
RichTextAreaImplIE6, RichTextAreaImplMozilla, RichTextAreaImplOpera, RichTextAreaImplSafari

public abstract class RichTextAreaImplStandard
extends RichTextAreaImpl
implements RichTextArea.BasicFormatter, RichTextArea.ExtendedFormatter, RichTextArea.Formatter

Basic rich text platform implementation.


Constructor Summary
RichTextAreaImplStandard()
           
 
Method Summary
 Element createElement()
           
 void createLink(java.lang.String url)
          Creates a link to the supplied URL.
 java.lang.String getBackColor()
          Gets the background color.
 java.lang.String getForeColor()
          Gets the foreground color.
 java.lang.String getHTML()
           
 java.lang.String getText()
           
 void initElement()
           
 void insertHorizontalRule()
          Inserts a horizontal rule.
 void insertHTML(java.lang.String html)
          Inserts generic html.
 void insertImage(java.lang.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(java.lang.String color)
          Sets the background color.
 void setEnabled(boolean enabled)
           
 void setFocus(boolean focused)
           
 void setFontName(java.lang.String name)
          Sets the font name.
 void setFontSize(RichTextArea.FontSize fontSize)
          Sets the font size.
 void setForeColor(java.lang.String color)
          Sets the foreground color.
 void setHTML(java.lang.String html)
           
 void setJustification(RichTextArea.Justification justification)
          Sets the justification.
 void setText(java.lang.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()
           
 
Methods inherited from class com.google.gwt.user.client.ui.impl.RichTextAreaImpl
getElement, setOwner, setWidget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RichTextAreaImplStandard

public RichTextAreaImplStandard()
Method Detail

createElement

public Element createElement()

createLink

public void createLink(java.lang.String url)
Description copied from interface: RichTextArea.ExtendedFormatter
Creates a link to the supplied URL.

Specified by:
createLink in interface RichTextArea.ExtendedFormatter
Specified by:
createLink in interface RichTextArea.Formatter
Parameters:
url - the URL to be linked to

getBackColor

public java.lang.String getBackColor()
Description copied from interface: RichTextArea.BasicFormatter
Gets the background color.

Specified by:
getBackColor in interface RichTextArea.BasicFormatter
Specified by:
getBackColor in interface RichTextArea.Formatter
Returns:
the background color

getForeColor

public java.lang.String getForeColor()
Description copied from interface: RichTextArea.BasicFormatter
Gets the foreground color.

Specified by:
getForeColor in interface RichTextArea.BasicFormatter
Specified by:
getForeColor in interface RichTextArea.Formatter
Returns:
the foreground color

getHTML

public final java.lang.String getHTML()
Overrides:
getHTML in class RichTextAreaImpl

getText

public final java.lang.String getText()
Overrides:
getText in class RichTextAreaImpl

initElement

public void initElement()
Overrides:
initElement in class RichTextAreaImpl

insertHorizontalRule

public void insertHorizontalRule()
Description copied from interface: RichTextArea.ExtendedFormatter
Inserts a horizontal rule.

Specified by:
insertHorizontalRule in interface RichTextArea.ExtendedFormatter
Specified by:
insertHorizontalRule in interface RichTextArea.Formatter

insertHTML

public void insertHTML(java.lang.String html)
Description copied from interface: RichTextArea.Formatter
Inserts generic html.

Specified by:
insertHTML in interface RichTextArea.Formatter
Parameters:
html - the HTML to insert

insertImage

public void insertImage(java.lang.String url)
Description copied from interface: RichTextArea.ExtendedFormatter
Inserts an image element.

Specified by:
insertImage in interface RichTextArea.ExtendedFormatter
Specified by:
insertImage in interface RichTextArea.Formatter
Parameters:
url - the url of the image to be inserted

insertOrderedList

public void insertOrderedList()
Description copied from interface: RichTextArea.ExtendedFormatter
Starts an numbered list. Indentation will create nested items.

Specified by:
insertOrderedList in interface RichTextArea.ExtendedFormatter
Specified by:
insertOrderedList in interface RichTextArea.Formatter

insertUnorderedList

public void insertUnorderedList()
Description copied from interface: RichTextArea.ExtendedFormatter
Starts an bulleted list. Indentation will create nested items.

Specified by:
insertUnorderedList in interface RichTextArea.ExtendedFormatter
Specified by:
insertUnorderedList in interface RichTextArea.Formatter

isBold

public boolean isBold()
Description copied from interface: RichTextArea.BasicFormatter
Is the current region bold?

Specified by:
isBold in interface RichTextArea.BasicFormatter
Specified by:
isBold in interface RichTextArea.Formatter
Returns:
true if the current region is bold

isEnabled

public boolean isEnabled()
Overrides:
isEnabled in class RichTextAreaImpl

isItalic

public boolean isItalic()
Description copied from interface: RichTextArea.BasicFormatter
Is the current region italic?

Specified by:
isItalic in interface RichTextArea.BasicFormatter
Specified by:
isItalic in interface RichTextArea.Formatter
Returns:
true if the current region is italic

isStrikethrough

public boolean isStrikethrough()
Description copied from interface: RichTextArea.ExtendedFormatter
Is the current region strikethrough?

Specified by:
isStrikethrough in interface RichTextArea.ExtendedFormatter
Specified by:
isStrikethrough in interface RichTextArea.Formatter
Returns:
true if the current region is strikethrough

isSubscript

public boolean isSubscript()
Description copied from interface: RichTextArea.BasicFormatter
Is the current region subscript?

Specified by:
isSubscript in interface RichTextArea.BasicFormatter
Specified by:
isSubscript in interface RichTextArea.Formatter
Returns:
true if the current region is subscript

isSuperscript

public boolean isSuperscript()
Description copied from interface: RichTextArea.BasicFormatter
Is the current region superscript?

Specified by:
isSuperscript in interface RichTextArea.BasicFormatter
Specified by:
isSuperscript in interface RichTextArea.Formatter
Returns:
true if the current region is superscript

isUnderlined

public boolean isUnderlined()
Description copied from interface: RichTextArea.BasicFormatter
Is the current region underlined?

Specified by:
isUnderlined in interface RichTextArea.BasicFormatter
Specified by:
isUnderlined in interface RichTextArea.Formatter
Returns:
true if the current region is underlined

leftIndent

public void leftIndent()
Description copied from interface: RichTextArea.ExtendedFormatter
Left indent.

Specified by:
leftIndent in interface RichTextArea.ExtendedFormatter
Specified by:
leftIndent in interface RichTextArea.Formatter

redo

public void redo()
Description copied from interface: RichTextArea.Formatter
Redo an action that was just undone.

Specified by:
redo in interface RichTextArea.Formatter

removeFormat

public void removeFormat()
Description copied from interface: RichTextArea.ExtendedFormatter
Removes all formatting on the selected text.

Specified by:
removeFormat in interface RichTextArea.ExtendedFormatter
Specified by:
removeFormat in interface RichTextArea.Formatter

removeLink

public void removeLink()
Description copied from interface: RichTextArea.ExtendedFormatter
Removes any link from the selected text.

Specified by:
removeLink in interface RichTextArea.ExtendedFormatter
Specified by:
removeLink in interface RichTextArea.Formatter

rightIndent

public void rightIndent()
Description copied from interface: RichTextArea.ExtendedFormatter
Right indent.

Specified by:
rightIndent in interface RichTextArea.ExtendedFormatter
Specified by:
rightIndent in interface RichTextArea.Formatter

selectAll

public void selectAll()
Description copied from interface: RichTextArea.BasicFormatter
Selects all the text.

Specified by:
selectAll in interface RichTextArea.BasicFormatter
Specified by:
selectAll in interface RichTextArea.Formatter

setBackColor

public void setBackColor(java.lang.String color)
Description copied from interface: RichTextArea.BasicFormatter
Sets the background color.

Specified by:
setBackColor in interface RichTextArea.BasicFormatter
Specified by:
setBackColor in interface RichTextArea.Formatter
Parameters:
color - the new background color

setEnabled

public void setEnabled(boolean enabled)
Overrides:
setEnabled in class RichTextAreaImpl

setFocus

public void setFocus(boolean focused)
Overrides:
setFocus in class RichTextAreaImpl

setFontName

public void setFontName(java.lang.String name)
Description copied from interface: RichTextArea.BasicFormatter
Sets the font name.

Specified by:
setFontName in interface RichTextArea.BasicFormatter
Specified by:
setFontName in interface RichTextArea.Formatter
Parameters:
name - the new font name

setFontSize

public void setFontSize(RichTextArea.FontSize fontSize)
Description copied from interface: RichTextArea.BasicFormatter
Sets the font size.

Specified by:
setFontSize in interface RichTextArea.BasicFormatter
Specified by:
setFontSize in interface RichTextArea.Formatter
Parameters:
fontSize - the new font size

setForeColor

public void setForeColor(java.lang.String color)
Description copied from interface: RichTextArea.BasicFormatter
Sets the foreground color.

Specified by:
setForeColor in interface RichTextArea.BasicFormatter
Specified by:
setForeColor in interface RichTextArea.Formatter
Parameters:
color - the new foreground color

setHTML

public final void setHTML(java.lang.String html)
Overrides:
setHTML in class RichTextAreaImpl

setJustification

public void setJustification(RichTextArea.Justification justification)
Description copied from interface: RichTextArea.BasicFormatter
Sets the justification.

Specified by:
setJustification in interface RichTextArea.BasicFormatter
Specified by:
setJustification in interface RichTextArea.Formatter
Parameters:
justification - the new justification

setText

public final void setText(java.lang.String text)
Overrides:
setText in class RichTextAreaImpl

toggleBold

public void toggleBold()
Description copied from interface: RichTextArea.BasicFormatter
Toggles bold.

Specified by:
toggleBold in interface RichTextArea.BasicFormatter
Specified by:
toggleBold in interface RichTextArea.Formatter

toggleItalic

public void toggleItalic()
Description copied from interface: RichTextArea.BasicFormatter
Toggles italic.

Specified by:
toggleItalic in interface RichTextArea.BasicFormatter
Specified by:
toggleItalic in interface RichTextArea.Formatter

toggleStrikethrough

public void toggleStrikethrough()
Description copied from interface: RichTextArea.ExtendedFormatter
Toggles strikethrough.

Specified by:
toggleStrikethrough in interface RichTextArea.ExtendedFormatter
Specified by:
toggleStrikethrough in interface RichTextArea.Formatter

toggleSubscript

public void toggleSubscript()
Description copied from interface: RichTextArea.BasicFormatter
Toggles subscript.

Specified by:
toggleSubscript in interface RichTextArea.BasicFormatter
Specified by:
toggleSubscript in interface RichTextArea.Formatter

toggleSuperscript

public void toggleSuperscript()
Description copied from interface: RichTextArea.BasicFormatter
Toggles superscript.

Specified by:
toggleSuperscript in interface RichTextArea.BasicFormatter
Specified by:
toggleSuperscript in interface RichTextArea.Formatter

toggleUnderline

public void toggleUnderline()
Description copied from interface: RichTextArea.BasicFormatter
Toggles underline.

Specified by:
toggleUnderline in interface RichTextArea.BasicFormatter
Specified by:
toggleUnderline in interface RichTextArea.Formatter

undo

public void undo()
Description copied from interface: RichTextArea.Formatter
Undo the last action.

Specified by:
undo in interface RichTextArea.Formatter

uninitElement

public void uninitElement()
Overrides:
uninitElement in class RichTextAreaImpl