
public abstract class RichTextAreaImplStandard extends RichTextAreaImpl implements RichTextArea.Formatter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initializing
Set to true when the
RichTextArea is attached to the page and
initElement() is called. |
elem, owner| Constructor and Description |
|---|
RichTextAreaImplStandard() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getHTML() |
protected String |
getHTMLImpl() |
String |
getText() |
protected String |
getTextImpl() |
protected void |
hookEvents() |
void |
initElement() |
void |
insertHorizontalRule()
Inserts a horizontal rule.
|
void |
insertHTML(String html)
Inserts generic html.
|
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() |
protected boolean |
isEnabledImpl() |
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.
|
protected void |
onElementInitialized() |
protected void |
onElementInitializing() |
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) |
protected void |
setEnabledImpl(boolean enabled) |
void |
setFocus(boolean focused) |
protected void |
setFocusImpl(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.
|
void |
setHTML(String html) |
protected void |
setHTMLImpl(String html) |
void |
setJustification(RichTextArea.Justification justification)
Sets the justification.
|
void |
setText(String text) |
protected void |
setTextImpl(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.
|
protected void |
unhookEvents() |
void |
uninitElement() |
getElement, setOwner, setWidgetprotected boolean initializing
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 Element createElement()
createElement in class RichTextAreaImplpublic void createLink(String url)
RichTextArea.FormattercreateLink in interface RichTextArea.ExtendedFormattercreateLink in interface RichTextArea.Formatterurl - the URL to be linked topublic String getBackColor()
RichTextArea.FormattergetBackColor in interface RichTextArea.BasicFormattergetBackColor in interface RichTextArea.Formatterpublic String getForeColor()
RichTextArea.FormattergetForeColor in interface RichTextArea.BasicFormattergetForeColor in interface RichTextArea.Formatterpublic final String getHTML()
getHTML in class RichTextAreaImplpublic final String getText()
getText in class RichTextAreaImplpublic void initElement()
initElement in class RichTextAreaImplpublic void insertHorizontalRule()
RichTextArea.FormatterinsertHorizontalRule in interface RichTextArea.ExtendedFormatterinsertHorizontalRule in interface RichTextArea.Formatterpublic void insertHTML(String html)
RichTextArea.FormatterinsertHTML in interface RichTextArea.Formatterhtml - the HTML to insertpublic void insertImage(String url)
RichTextArea.FormatterinsertImage in interface RichTextArea.ExtendedFormatterinsertImage in interface RichTextArea.Formatterurl - the url of the image to be insertedpublic void insertOrderedList()
RichTextArea.FormatterinsertOrderedList in interface RichTextArea.ExtendedFormatterinsertOrderedList in interface RichTextArea.Formatterpublic void insertUnorderedList()
RichTextArea.FormatterinsertUnorderedList in interface RichTextArea.ExtendedFormatterinsertUnorderedList in interface RichTextArea.Formatterpublic boolean isBold()
RichTextArea.FormatterisBold in interface RichTextArea.BasicFormatterisBold in interface RichTextArea.Formatterpublic boolean isEnabled()
isEnabled in class RichTextAreaImplpublic boolean isItalic()
RichTextArea.FormatterisItalic in interface RichTextArea.BasicFormatterisItalic in interface RichTextArea.Formatterpublic boolean isStrikethrough()
RichTextArea.FormatterisStrikethrough in interface RichTextArea.ExtendedFormatterisStrikethrough in interface RichTextArea.Formatterpublic boolean isSubscript()
RichTextArea.FormatterisSubscript in interface RichTextArea.BasicFormatterisSubscript in interface RichTextArea.Formatterpublic boolean isSuperscript()
RichTextArea.FormatterisSuperscript in interface RichTextArea.BasicFormatterisSuperscript in interface RichTextArea.Formatterpublic boolean isUnderlined()
RichTextArea.FormatterisUnderlined in interface RichTextArea.BasicFormatterisUnderlined in interface RichTextArea.Formatterpublic void leftIndent()
RichTextArea.FormatterleftIndent in interface RichTextArea.ExtendedFormatterleftIndent in interface RichTextArea.Formatterpublic void redo()
RichTextArea.Formatterredo in interface RichTextArea.Formatterpublic void removeFormat()
RichTextArea.FormatterremoveFormat in interface RichTextArea.ExtendedFormatterremoveFormat in interface RichTextArea.Formatterpublic void removeLink()
RichTextArea.FormatterremoveLink in interface RichTextArea.ExtendedFormatterremoveLink in interface RichTextArea.Formatterpublic void rightIndent()
RichTextArea.FormatterrightIndent in interface RichTextArea.ExtendedFormatterrightIndent in interface RichTextArea.Formatterpublic void selectAll()
RichTextArea.FormatterselectAll in interface RichTextArea.BasicFormatterselectAll in interface RichTextArea.Formatterpublic void setBackColor(String color)
RichTextArea.FormattersetBackColor in interface RichTextArea.BasicFormattersetBackColor in interface RichTextArea.Formattercolor - the new background colorpublic void setEnabled(boolean enabled)
setEnabled in class RichTextAreaImplpublic void setFocus(boolean focused)
setFocus in class RichTextAreaImplpublic void setFontName(String name)
RichTextArea.FormattersetFontName in interface RichTextArea.BasicFormattersetFontName in interface RichTextArea.Formattername - the new font namepublic void setFontSize(RichTextArea.FontSize fontSize)
RichTextArea.FormattersetFontSize in interface RichTextArea.BasicFormattersetFontSize in interface RichTextArea.FormatterfontSize - the new font sizepublic void setForeColor(String color)
RichTextArea.FormattersetForeColor in interface RichTextArea.BasicFormattersetForeColor in interface RichTextArea.Formattercolor - the new foreground colorpublic final void setHTML(String html)
setHTML in class RichTextAreaImplpublic void setJustification(RichTextArea.Justification justification)
RichTextArea.FormattersetJustification in interface RichTextArea.BasicFormattersetJustification in interface RichTextArea.Formatterjustification - the new justificationpublic final void setText(String text)
setText in class RichTextAreaImplpublic void toggleBold()
RichTextArea.FormattertoggleBold in interface RichTextArea.BasicFormattertoggleBold in interface RichTextArea.Formatterpublic void toggleItalic()
RichTextArea.FormattertoggleItalic in interface RichTextArea.BasicFormattertoggleItalic in interface RichTextArea.Formatterpublic void toggleStrikethrough()
RichTextArea.FormattertoggleStrikethrough in interface RichTextArea.ExtendedFormattertoggleStrikethrough in interface RichTextArea.Formatterpublic void toggleSubscript()
RichTextArea.FormattertoggleSubscript in interface RichTextArea.BasicFormattertoggleSubscript in interface RichTextArea.Formatterpublic void toggleSuperscript()
RichTextArea.FormattertoggleSuperscript in interface RichTextArea.BasicFormattertoggleSuperscript in interface RichTextArea.Formatterpublic void toggleUnderline()
RichTextArea.FormattertoggleUnderline in interface RichTextArea.BasicFormattertoggleUnderline in interface RichTextArea.Formatterpublic void undo()
RichTextArea.Formatterundo in interface RichTextArea.Formatterpublic void uninitElement()
uninitElement in class RichTextAreaImplprotected String getHTMLImpl()
protected String getTextImpl()
protected void hookEvents()
hookEvents in class RichTextAreaImplprotected boolean isEnabledImpl()
protected void onElementInitialized()
onElementInitialized in class RichTextAreaImplprotected 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()
Copyright © 2018. All rights reserved.