|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.form.Field<java.lang.String>
com.extjs.gxt.ui.client.widget.form.HtmlEditor
public class HtmlEditor
Provides a lightweight HTML Editor component.
Note: The focus/blur and validation marking functionality inherited fromField is NOT supported by this editor.
An Editor is a sensitive component that can't be used in all spots standard
fields can be used. Putting an Editor within any element that has display set
to 'none' can cause problems in Safari and Firefox due to their default
iframe reloading bugs.
| Nested Class Summary | |
|---|---|
class |
HtmlEditor.HtmlEditorImages
|
class |
HtmlEditor.HtmlEditorMessages
|
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
Field.FieldImages, Field.FieldMessages |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
HtmlEditor()
|
|
| Method Summary | |
|---|---|
void |
blur()
Tries to remove focus from the component. |
void |
focus()
Try to focus this component. |
com.google.gwt.user.client.ui.RichTextArea.BasicFormatter |
getBasicFormatter()
Gets the basic rich text formatting interface. |
com.google.gwt.user.client.ui.RichTextArea.ExtendedFormatter |
getExtendedFormatter()
Gets the full rich text formatting interface. |
HtmlEditor.HtmlEditorImages |
getImages()
|
HtmlEditor.HtmlEditorMessages |
getMessages()
Returns the field's messages. |
java.lang.String |
getRawValue()
Returns the raw data value which may or may not be a valid, defined value. |
java.lang.String |
getValue()
Returns the typed value of the field. |
boolean |
isEnableAlignments()
|
boolean |
isEnableColors()
|
boolean |
isEnableFont()
|
boolean |
isEnableFontSize()
|
boolean |
isEnableFormat()
|
boolean |
isEnableLinks()
|
boolean |
isEnableLists()
|
boolean |
isShowToolbar()
|
boolean |
isSourceEditMode()
|
void |
pushValue()
|
void |
setEnableAlignments(boolean enableAlignments)
|
void |
setEnableColors(boolean enableColors)
|
void |
setEnableFont(boolean enableFont)
|
void |
setEnableFontSize(boolean enableFontSize)
|
void |
setEnableFormat(boolean enableFormat)
|
void |
setEnableLinks(boolean enableLinks)
|
void |
setEnableLists(boolean enableLists)
|
void |
setRawValue(java.lang.String value)
Sets the underlying DOM field's value directly, bypassing validation. |
void |
setShowToolbar(boolean showToolbar)
|
void |
setSourceEditMode(boolean mode)
|
void |
setValue(java.lang.String value)
Sets a data value into the field and validates it. |
void |
syncValue()
|
boolean |
validate(boolean silent)
Validates the field value. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlEditor()
| Method Detail |
|---|
public void blur()
Component
public void focus()
Component
focus in class Field<java.lang.String>public com.google.gwt.user.client.ui.RichTextArea.BasicFormatter getBasicFormatter()
null if basic formatting is not supportedpublic com.google.gwt.user.client.ui.RichTextArea.ExtendedFormatter getExtendedFormatter()
null if full formatting is not supportedpublic HtmlEditor.HtmlEditorMessages getMessages()
Field
getMessages in class Field<java.lang.String>public java.lang.String getRawValue()
FieldField.getValue().
getRawValue in class Field<java.lang.String>public java.lang.String getValue()
Field
getValue in class Field<java.lang.String>public HtmlEditor.HtmlEditorImages getImages()
getImages in class Field<java.lang.String>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)
public void setEnableColors(boolean enableColors)
public void setEnableFont(boolean enableFont)
public void setEnableFontSize(boolean enableFontSize)
public void setEnableFormat(boolean enableFormat)
public void setEnableLinks(boolean enableLinks)
public void setEnableLists(boolean enableLists)
public void setRawValue(java.lang.String value)
FieldField.setValue(D).
setRawValue in class Field<java.lang.String>value - the raw valuepublic void setShowToolbar(boolean showToolbar)
public void setSourceEditMode(boolean mode)
public void setValue(java.lang.String value)
FieldField.setRawValue(java.lang.String).
setValue in class Field<java.lang.String>value - the value to setpublic void syncValue()
public boolean validate(boolean silent)
Field
validate in class Field<java.lang.String>silent - true to not mark the field valid and fire invalid event
when invalid
true if valid, otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||