public class HtmlEditor extends com.extjs.gxt.ui.client.widget.form.Field<String>
Field
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.
Modifier and Type | Class and Description |
---|---|
protected class |
HtmlEditor.EventHandler |
class |
HtmlEditor.HtmlEditorImages |
class |
HtmlEditor.HtmlEditorMessages |
protected class |
HtmlEditor.rte |
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.user.client.ui.RichTextArea.FontSize |
activeFontSize |
protected com.extjs.gxt.ui.client.widget.button.Button |
backcolor |
protected com.extjs.gxt.ui.client.widget.button.ToggleButton |
bold |
protected com.extjs.gxt.ui.client.event.SelectionListener<com.extjs.gxt.ui.client.event.ButtonEvent> |
btnListener |
protected com.extjs.gxt.ui.client.widget.button.Button |
decreasefontsize |
protected List<com.google.gwt.user.client.ui.RichTextArea.FontSize> |
fontSizesConstants |
protected com.extjs.gxt.ui.client.widget.button.Button |
forecolor |
protected HtmlEditor.EventHandler |
handler |
protected com.google.gwt.user.client.ui.impl.RichTextAreaImpl |
impl |
protected com.extjs.gxt.ui.client.widget.button.Button |
increasefontsize |
protected com.extjs.gxt.ui.client.widget.button.ToggleButton |
italic |
protected com.extjs.gxt.ui.client.widget.button.Button |
justifyCenter |
protected com.extjs.gxt.ui.client.widget.button.Button |
justifyLeft |
protected com.extjs.gxt.ui.client.widget.button.Button |
justifyRight |
protected com.extjs.gxt.ui.client.widget.button.Button |
link |
protected com.extjs.gxt.ui.client.widget.button.Button |
ol |
protected HtmlEditor.rte |
rte |
protected com.extjs.gxt.ui.client.widget.button.ToggleButton |
sourceEdit |
protected com.extjs.gxt.ui.client.widget.toolbar.ToolBar |
tb |
protected El |
textarea |
protected com.extjs.gxt.ui.client.widget.button.Button |
ul |
protected com.extjs.gxt.ui.client.widget.button.ToggleButton |
underline |
autoValidate, emptyText, errorIcon, fieldStyle, focusStyle, focusValue, forceInvalidText, hasFocus, images, invalidStyle, messages, name, originalValue, preventMark, propertyEditor, readOnly, readOnlyFieldStyle, validationDelay, validationTask, value
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
HtmlEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterRender() |
protected com.extjs.gxt.ui.client.widget.button.Button |
createButton(com.google.gwt.user.client.ui.AbstractImagePrototype icon,
String tt,
String toolTipTitle) |
protected com.extjs.gxt.ui.client.widget.button.Button |
createColorButton(com.google.gwt.user.client.ui.AbstractImagePrototype icon,
String toolTip,
String toolTipTitle,
com.extjs.gxt.ui.client.event.Listener<com.extjs.gxt.ui.client.event.ComponentEvent> listener) |
protected com.extjs.gxt.ui.client.widget.button.ToggleButton |
createToggleButton(com.google.gwt.user.client.ui.AbstractImagePrototype icon,
String tt,
String toolTipTitle) |
protected void |
doAttachChildren() |
protected void |
doDetachChildren() |
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() |
protected El |
getInputEl() |
HtmlEditor.HtmlEditorMessages |
getMessages() |
String |
getRawValue() |
boolean |
isEnableAlignments() |
boolean |
isEnableColors() |
boolean |
isEnableFont() |
boolean |
isEnableFontSize() |
boolean |
isEnableFormat() |
boolean |
isEnableLinks() |
boolean |
isEnableLists() |
boolean |
isShowToolbar() |
boolean |
isSourceEditMode() |
protected void |
onAttach() |
protected void |
onBlur(com.extjs.gxt.ui.client.event.ComponentEvent ce) |
protected void |
onDisable() |
protected void |
onEditorKeyDown(com.google.gwt.event.dom.client.KeyDownEvent e) |
protected void |
onEnable() |
protected void |
onFocus(com.extjs.gxt.ui.client.event.ComponentEvent ce) |
protected void |
onRender(com.google.gwt.user.client.Element target,
int index) |
protected void |
onResize(int width,
int height) |
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) |
protected void |
setHighContrastImage(com.extjs.gxt.ui.client.widget.button.Button btn,
String image) |
void |
setRawValue(String value) |
void |
setShowToolbar(boolean showToolbar) |
void |
setSourceEditMode(boolean mode) |
protected void |
setupToolbar() |
void |
setValue(String value) |
void |
syncValue() |
protected void |
toggleSourceEditMode() |
protected void |
updateStatus() |
boolean |
validate(boolean silent) |
addInputStyleName, addKeyListener, alignErrorIcon, clear, clearInvalid, createComponentEvent, findLabelElement, fireChangeEvent, fireKey, focus, forceInvalid, getAutoValidate, getEmptyText, getErrorMessage, getFieldLabel, getLabelSeparator, getLabelStyle, getMessageTarget, getName, getOriginalValue, getPropertyEditor, getStyleEl, getValidateOnBlur, getValidationDelay, getValue, initValue, isDirty, isFireChangeEventOnSetValue, isHideLabel, isInEditor, isReadOnly, isValid, isValid, markInvalid, onClick, onComponentEvent, onDetach, onHide, onKeyDown, onKeyPress, onKeyUp, onShow, removeInputStyleName, removeKeyListener, reset, setAutoValidate, setEmptyText, setFieldLabel, setFireChangeEventOnSetValue, setHideLabel, setImages, setInEditor, setInputStyleAttribute, setLabelSeparator, setLabelStyle, setMessages, setMessageTarget, setName, setOriginalValue, setPropertyEditor, setReadOnly, setTabIndex, setValidateOnBlur, setValidationDelay, updateOriginalValue, validate, validateValue
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onPosition, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize
addAttachable, addListener, addPlugin, addStyleName, addStyleOnOver, addWidgetListener, applyState, assertAfterRender, assertPreRender, beforeRender, blur, clearState, createObservable, createStyles, disable, disableContextMenu, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, frame, getAriaSupport, getBaseStyle, getBorders, getContextMenu, getData, getElement, getFocusEl, getFocusSupport, getHideMode, getId, getItemId, getListeners, getModel, getObservable, getPlugins, getState, getStateId, getTabIndex, getTitle, getToolTip, getWindowResizeDelay, hasListeners, hasListeners, hide, hideToolTip, initState, isDisabledEvents, isDisableTextSelection, isEnabled, isMasked, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, mask, notifyHide, notifyShow, onBrowserEvent, onDetachHelper, onEnsureDebugId, onHideContextMenu, onLoad, onRightClick, onShowContextMenu, onWindowResize, previewEvent, recalculate, removeAllListeners, removeAttachagle, removeFromParent, removeListener, removeStyleName, removeStyleOnOver, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setAriaRole, setAriaState, setAriaSupport, setBorders, setContextMenu, setData, setEl, setElement, setElement, setEnabled, setFiresEvents, setHideMode, setId, setIntStyleAttribute, setItemId, setModel, setMonitorWindowResize, setParent, setStateful, setStateId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, setWindowResizeDelay, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unframe, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData, unsinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
protected com.google.gwt.user.client.ui.RichTextArea.FontSize activeFontSize
protected com.extjs.gxt.ui.client.widget.button.Button backcolor
protected com.extjs.gxt.ui.client.widget.button.ToggleButton bold
protected com.extjs.gxt.ui.client.event.SelectionListener<com.extjs.gxt.ui.client.event.ButtonEvent> btnListener
protected com.extjs.gxt.ui.client.widget.button.Button decreasefontsize
protected List<com.google.gwt.user.client.ui.RichTextArea.FontSize> fontSizesConstants
protected com.extjs.gxt.ui.client.widget.button.Button forecolor
protected HtmlEditor.EventHandler handler
protected com.google.gwt.user.client.ui.impl.RichTextAreaImpl impl
protected com.extjs.gxt.ui.client.widget.button.Button increasefontsize
protected com.extjs.gxt.ui.client.widget.button.ToggleButton italic
protected com.extjs.gxt.ui.client.widget.button.Button justifyCenter
protected com.extjs.gxt.ui.client.widget.button.Button justifyLeft
protected com.extjs.gxt.ui.client.widget.button.Button justifyRight
protected com.extjs.gxt.ui.client.widget.button.Button link
protected com.extjs.gxt.ui.client.widget.button.Button ol
protected HtmlEditor.rte rte
protected com.extjs.gxt.ui.client.widget.button.ToggleButton sourceEdit
protected com.extjs.gxt.ui.client.widget.toolbar.ToolBar tb
protected El textarea
protected com.extjs.gxt.ui.client.widget.button.Button ul
protected com.extjs.gxt.ui.client.widget.button.ToggleButton underline
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.HtmlEditorImages getImages()
getImages
in class com.extjs.gxt.ui.client.widget.form.Field<String>
public HtmlEditor.HtmlEditorMessages getMessages()
getMessages
in class com.extjs.gxt.ui.client.widget.form.Field<String>
public String getRawValue()
getRawValue
in class com.extjs.gxt.ui.client.widget.form.Field<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(String value)
setRawValue
in class com.extjs.gxt.ui.client.widget.form.Field<String>
public void setShowToolbar(boolean showToolbar)
public void setSourceEditMode(boolean mode)
public void setValue(String value)
setValue
in class com.extjs.gxt.ui.client.widget.form.Field<String>
public void syncValue()
public boolean validate(boolean silent)
validate
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void afterRender()
afterRender
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected com.extjs.gxt.ui.client.widget.button.Button createButton(com.google.gwt.user.client.ui.AbstractImagePrototype icon, String tt, String toolTipTitle)
protected com.extjs.gxt.ui.client.widget.button.Button createColorButton(com.google.gwt.user.client.ui.AbstractImagePrototype icon, String toolTip, String toolTipTitle, com.extjs.gxt.ui.client.event.Listener<com.extjs.gxt.ui.client.event.ComponentEvent> listener)
protected com.extjs.gxt.ui.client.widget.button.ToggleButton createToggleButton(com.google.gwt.user.client.ui.AbstractImagePrototype icon, String tt, String toolTipTitle)
protected void doAttachChildren()
doAttachChildren
in class com.extjs.gxt.ui.client.widget.Component
protected void doDetachChildren()
doDetachChildren
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected El getInputEl()
getInputEl
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void onAttach()
onAttach
in class com.extjs.gxt.ui.client.widget.Component
protected void onBlur(com.extjs.gxt.ui.client.event.ComponentEvent ce)
onBlur
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void onDisable()
onDisable
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void onEditorKeyDown(com.google.gwt.event.dom.client.KeyDownEvent e)
protected void onEnable()
onEnable
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void onFocus(com.extjs.gxt.ui.client.event.ComponentEvent ce)
onFocus
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void onRender(com.google.gwt.user.client.Element target, int index)
onRender
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void onResize(int width, int height)
onResize
in class com.extjs.gxt.ui.client.widget.form.Field<String>
protected void setHighContrastImage(com.extjs.gxt.ui.client.widget.button.Button btn, String image)
protected void setupToolbar()
protected void toggleSourceEditMode()
protected void updateStatus()
Copyright © 2018. All Rights Reserved.