|
|||||||||
| 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.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.form.Field
com.gwtext.client.widgets.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.
| Nested Class Summary |
|---|
| 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.gwtext.client.widgets.Component |
|---|
config, id |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
HtmlEditor()
|
|
HtmlEditor(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
HtmlEditor(java.lang.String fieldLabel)
|
|
HtmlEditor(java.lang.String fieldLabel,
java.lang.String name)
|
|
HtmlEditor(java.lang.String fieldLabel,
java.lang.String name,
int width)
|
|
| Method Summary | |
|---|---|
void |
addListener(HtmlEditorListener listener)
Adds a HtmlEditor listener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject jsObj)
|
void |
execCmd(java.lang.String cmd,
java.lang.String value)
Executes a Midas editor command directly on the editor document. |
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
Toolbar |
getToolbar()
Returns the editor's toolbar. |
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
void |
insertAtCursor(java.lang.String text)
Inserts the passed text at the current cursor position. |
void |
relayCmd(java.lang.String cmd,
java.lang.String value)
Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates. |
void |
setCreateLinkText(java.lang.String createLinkText)
The default text for the create link prompt. |
void |
setDefaultLinkValue(java.lang.String defaultLinkValue)
The default value for the create link prompt (defaults to http:/ /). |
void |
setEnableAlignments(boolean enableAlignments)
Enable the left, center, right alignment buttons (defaults to true). |
void |
setEnableColors(boolean enableColors)
Enable the fore/highlight color buttons (defaults to true). |
void |
setEnableFont(boolean enableFont)
Enable font selection. |
void |
setEnableFontSize(boolean enableFontSize)
Enable the increase/decrease font size buttons (defaults to true). |
void |
setEnableLinks(boolean enableLinks)
Enable the create link button. |
void |
setEnableLists(boolean enableLists)
Enable the bullet and numbered list buttons. |
void |
setEnableSourceEdit(boolean enableSourceEdit)
Enable the switch to source edit button. |
void |
setFontFamilies(java.lang.String[] fontFamilies)
An array of available font families. |
void |
setHeight(int height)
Set the height of the HtmlEditor. |
void |
toggleSourceEdit(boolean sourceEdit)
Toggles the editor between standard and source edit mode. |
| Methods inherited from class com.gwtext.client.widgets.form.Field |
|---|
addListener, applyTo, applyTo, clearInvalid, getClearCls, getCls, getFieldLabel, getFocusClass, getInputType, getInvalidClass, getInvalidText, getLabelSeparator, getLabelStyle, getName, getRawValue, getTabindex, getValidationDelay, getValueAsString, hide, isAutoCreate, isDirty, isHideLabel, isReadOnly, isValid, isValid, isValidateOnBlur, markInvalid, reset, setAutoCreate, setAutoCreate, setClearCls, setCls, setDisabled, setFieldClass, setFieldLabel, setFieldMsgTarget, setFocusClass, setHideLabel, setInputType, setInvalidClass, setInvalidText, setLabel, setLabelSeparator, setLabelStyle, setMsgFx, setMsgTarget, setName, setRawValue, setReadOnly, setTabIndex, setValidateOnBlur, setValidationDelay, setValidationEvent, setValidationEvent, setValue, show, validate |
| Methods inherited from class com.gwtext.client.widgets.BoxComponent |
|---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlEditor(com.google.gwt.core.client.JavaScriptObject jsObj)
public HtmlEditor()
public HtmlEditor(java.lang.String fieldLabel)
public HtmlEditor(java.lang.String fieldLabel,
java.lang.String name)
public HtmlEditor(java.lang.String fieldLabel,
java.lang.String name,
int width)
| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype in class BoxComponentpublic java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType in class Fieldprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject jsObj)
create in class Field
public void execCmd(java.lang.String cmd,
java.lang.String value)
cmd - the Midas commandvalue - the value to pass to the commandpublic Toolbar getToolbar()
public void insertAtCursor(java.lang.String text)
text - the text to insert
public void relayCmd(java.lang.String cmd,
java.lang.String value)
cmd - the Midas commandvalue - the value to pass to the commandpublic void toggleSourceEdit(boolean sourceEdit)
sourceEdit - true for source edit, false for standardpublic void addListener(HtmlEditorListener listener)
listener - the listener
public void setCreateLinkText(java.lang.String createLinkText)
throws java.lang.IllegalStateException
createLinkText - link text
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setDefaultLinkValue(java.lang.String defaultLinkValue)
throws java.lang.IllegalStateException
defaultLinkValue - link value
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setEnableAlignments(boolean enableAlignments)
throws java.lang.IllegalStateException
enableAlignments - true to enable alignments
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setEnableColors(boolean enableColors)
throws java.lang.IllegalStateException
enableColors - true to enable colors
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setEnableFont(boolean enableFont)
throws java.lang.IllegalStateException
enableFont - true to enable fonr selection
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setEnableFontSize(boolean enableFontSize)
throws java.lang.IllegalStateException
enableFontSize - true to enable font size buttons
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setEnableLinks(boolean enableLinks)
throws java.lang.IllegalStateException
enableLinks - true to enable links
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setEnableLists(boolean enableLists)
throws java.lang.IllegalStateException
enableLists - true to enable lists
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setEnableSourceEdit(boolean enableSourceEdit)
throws java.lang.IllegalStateException
enableSourceEdit - true to enable source edit
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setFontFamilies(java.lang.String[] fontFamilies)
throws java.lang.IllegalStateException
fontFamilies - the font families
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
public void setHeight(int height)
throws java.lang.IllegalStateException
setHeight in class BoxComponentheight - the feild height
java.lang.IllegalStateException - this property cannot be changed after the Component has been rendered
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||