|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.container.Container
com.sencha.gxt.widget.core.client.container.ResizeContainer
com.sencha.gxt.widget.core.client.container.SimpleContainer
com.sencha.gxt.widget.core.client.form.AdapterField<java.lang.String>
com.sencha.gxt.widget.core.client.form.HtmlEditor
public class HtmlEditor
Provides an HTML-based rich text editor with a tool bar for selecting formatting options, including fonts, text justification, lists, hyperlinks and text color. Enables switching between formatted and HTML editing modes. Supports copy and paste from Web pages as well as text editing features provided by the browser (e.g. spell checking, text search).
By default, all formatting options are enabled and available via the tool bar. To disable one or more options, use the appropriate setter before adding the HTML editor to its container.
| Nested Class Summary | |
|---|---|
static interface |
HtmlEditor.HtmlEditorAppearance
The appearance of this class. |
static interface |
HtmlEditor.HtmlEditorMessages
The locale-sensitive messages used by this class. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor |
|---|
Editor.Ignore, Editor.Path |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
IndexedPanel.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
HtmlEditor()
Creates an HTML-based rich text editor with support for fonts, text justification, lists, hyperlinks and text color. |
|
HtmlEditor(HtmlEditor.HtmlEditorAppearance appearance)
Creates an HTML-based rich text editor with support for fonts, text justification, lists, hyperlinks and text color. |
|
| Method Summary | |
|---|---|
HtmlEditor.HtmlEditorMessages |
getMessages()
Returns the locale-sensitive messages used by this class. |
java.lang.String |
getValue()
|
boolean |
isEnableAlignments()
Returns true if text justification is enabled. |
boolean |
isEnableColors()
Returns true if setting text foreground and background colors is enabled. |
boolean |
isEnableFont()
Returns true if setting font family name is enabled. |
boolean |
isEnableFontSize()
Returns true if setting font size is enabled. |
boolean |
isEnableFormat()
Returns true if setting font style is enabled. |
boolean |
isEnableLinks()
Returns true if creating a hyperlink from selected text is enabled. |
boolean |
isEnableLists()
Returns true if creating lists is enabled. |
boolean |
isShowToolbar()
Returns true if the tool bar is displayed. |
boolean |
isSourceEditMode()
Returns true if the ability to switch to HTML source mode is enabled. |
void |
pushValue()
Copies the value of the HTML source editor to the rich text editor. |
void |
setEnableAlignments(boolean enableAlignments)
Sets whether text justification is enabled. |
void |
setEnableColors(boolean enableColors)
Sets whether setting text foreground and background colors is enabled. |
void |
setEnableFont(boolean enableFont)
Sets whether setting font family name is enabled. |
void |
setEnableFontSize(boolean enableFontSize)
Sets whether setting font size is enabled. |
void |
setEnableFormat(boolean enableFormat)
Sets whether setting font style is enabled. |
void |
setEnableLinks(boolean enableLinks)
Sets whether creating a hyperlink from selected text is enable. |
void |
setEnableLists(boolean enableLists)
Sets whether creating lists is enabled. |
void |
setMessages(HtmlEditor.HtmlEditorMessages messages)
Sets the local-sensitive messages used by this class. |
void |
setValue(java.lang.String value)
|
void |
syncValue()
Copies the value of the rich text editor to the HTML source editor. |
| Methods inherited from class com.sencha.gxt.widget.core.client.form.AdapterField |
|---|
addInvalidHandler, addValidator, addValidHandler, clear, clearInvalid, disable, enable, forceInvalid, getErrorSupport, getValidators, isValid, isValid, markInvalid, removeValidator, reset, setDelegate, setErrorSupport, showErrors, validate, validate |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.SimpleContainer |
|---|
add, add, getWidget, isResize, setResize, setWidget, setWidget |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer |
|---|
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.Container |
|---|
add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.user.client.ui.IsWidget |
|---|
asWidget |
| Constructor Detail |
|---|
public HtmlEditor()
public HtmlEditor(HtmlEditor.HtmlEditorAppearance appearance)
| Method Detail |
|---|
public HtmlEditor.HtmlEditorMessages getMessages()
public java.lang.String getValue()
public boolean isEnableAlignments()
public boolean isEnableColors()
public boolean isEnableFont()
public boolean isEnableFontSize()
public boolean isEnableFormat()
public boolean isEnableLinks()
public boolean isEnableLists()
public boolean isShowToolbar()
public boolean isSourceEditMode()
public void pushValue()
public void setEnableAlignments(boolean enableAlignments)
enableAlignments - true to enable text justificationpublic void setEnableColors(boolean enableColors)
enableColors - true to enable setting text foreground and background
colors.public void setEnableFont(boolean enableFont)
enableFont - true to enable setting font family namepublic void setEnableFontSize(boolean enableFontSize)
enableFontSize - true to enable setting font sizepublic void setEnableFormat(boolean enableFormat)
enableFormat - true to enable setting font stylepublic void setEnableLinks(boolean enableLinks)
enableLinks - true to enable creating a hyperlink from selected textpublic void setEnableLists(boolean enableLists)
enableLists - true to enable creating listspublic void setMessages(HtmlEditor.HtmlEditorMessages messages)
messages - the locale sensitive messages used by this class.public void setValue(java.lang.String value)
public void syncValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||