public class RichTextEditor extends VLayout
The HTML generated from this component may vary by browser, and, as with any HTML value created on the client, we recommend values be sanitized on the server before storing and displaying to other users.
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
Constructor and Description |
---|
RichTextEditor() |
RichTextEditor(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
protected com.google.gwt.core.client.JavaScriptObject |
create() |
void |
doWarn()
Display a warning if Rich Text Editing is not fully supported in this browser.
|
java.lang.String |
getAlignCenterPrompt()
The prompt for the built-in
alignCenter control. |
java.lang.String |
getAlignLeftPrompt()
The prompt for the built-in
alignLeft control. |
java.lang.String |
getAlignRightPrompt()
The prompt for the built-in
alignRight control. |
java.lang.String |
getBackgroundColorPrompt()
The prompt for the built-in
backgroundColor control. |
java.lang.String |
getBoldSelectionPrompt()
The prompt for the built-in
boldSelection control. |
java.lang.String |
getColorPrompt()
The prompt for the built-in
color control. |
java.lang.String |
getCopySelectionPrompt()
The prompt for the built-in
copySelection control. |
java.lang.String |
getCutSelectionPrompt()
The prompt for the built-in
cutSelection control. |
Canvas |
getEditArea()
The edit canvas created automatically for this RichTextEditor.
|
java.lang.String |
getEditAreaBackgroundColor()
Background color for the
edit canvas . |
java.util.Map<java.lang.String,java.lang.String> |
getFontNames()
ValueMap of CSS fontName properties to font name titles to display in the font selector
for the
FONTSELECTOR control. |
SelectItem |
getFontSelectorItem()
The
com.smartgwt.client.types.AutoChild SelectItem used for
choosing the font to apply to the current selection. |
java.lang.String |
getFontSelectorPrompt()
The prompt for the built-in
font selector . |
java.util.Map<java.lang.String,java.lang.String> |
getFontSizes()
ValueMap of CSS font size property values to font size titles to display in the font size selector
for the
FONTSIZESELECTOR control. |
SelectItem |
getFontSizeSelectorItem()
The
com.smartgwt.client.types.AutoChild SelectItem used for
choosing the font-size to apply to the current selection. |
java.lang.String |
getFontSizeSelectorPrompt()
The prompt for the built-in
font-size
selector . |
java.lang.String |
getIndentPrompt()
The prompt for the built-in
indent control. |
java.lang.String |
getItalicSelectionPrompt()
The prompt for the built-in
italicSelection control. |
java.lang.String |
getJustifyPrompt()
The prompt for the built-in
justify control. |
ListPropertiesDialog |
getListPropertiesDialog()
Dialog shown when the
"listProperties" control is pressed. |
java.lang.String |
getListPropertiesPrompt()
The prompt for the built-in
listProperties control. |
java.lang.String |
getListPropertiesWarningText()
The warning message displayed in a dialog when a user tries to configure a list without first putting the cursor in an
appropriate place.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
Getter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
boolean |
getMoveFocusOnTab()
If the user presses the "Tab" key, should focus be taken from this editor? If set to
false a "Tab" keypress
will cause a Tab character to be inserted into the text, and focus will be left in the edit area. |
static RichTextEditor |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getOrderedListPrompt()
The prompt for the built-in
orderedList control. |
java.lang.String |
getOutdentPrompt()
The prompt for the built-in
outdent control. |
java.lang.String |
getPasteSelectionPrompt()
The prompt for the built-in
pasteSelection control. |
java.lang.String |
getStrikethroughSelectionPrompt()
The prompt for the built-in
strikethroughSelection control. |
java.lang.Boolean |
getStyleWithCSS()
When true, applies style attributes in markup instead of presentation elements.
|
Layout |
getToolArea()
Layout used to contain all of the
toolbar AutoChildren
that contain the controlGroups . |
Layout |
getToolbar()
Note : This API is non-functional (always returns null) and exists only to make
you aware that this MultiAutoChild exists.
|
java.lang.String |
getToolbarBackgroundColor()
The background color for the toolbar.
|
java.lang.String |
getUnderlineSelectionPrompt()
The prompt for the built-in
underlineSelection control. |
java.lang.String |
getUnorderedListPrompt()
The prompt for the built-in
unorderedList control. |
java.lang.Boolean |
getUseDesignMode()
Should this editor use a separate IFRAME with special cross-browser support for editing HTML content? By default, the
value is auto-detected according to browser details.
|
java.lang.String |
getValue()
Initial value for the edit area.
|
java.lang.Boolean |
richEditorSupported()
Does this browser support the full RichTextEditor feature set.
|
void |
setAlignCenterPrompt(java.lang.String alignCenterPrompt)
The prompt for the built-in
alignCenter control. |
void |
setAlignLeftPrompt(java.lang.String alignLeftPrompt)
The prompt for the built-in
alignLeft control. |
void |
setAlignRightPrompt(java.lang.String alignRightPrompt)
The prompt for the built-in
alignRight control. |
void |
setBackgroundColorPrompt(java.lang.String backgroundColorPrompt)
The prompt for the built-in
backgroundColor control. |
void |
setBoldSelectionPrompt(java.lang.String boldSelectionPrompt)
The prompt for the built-in
boldSelection control. |
void |
setBulletControls(ControlName... bulletControls)
Default HTML list control group.
|
void |
setBulletControls(java.lang.Object... bulletControls)
Use this signature if you plan to pass a mixture of standard ControlNames and custom
widgets (any subclass of Canvas is allowed):
{@link com.smartgwt.client.widgets.RichTextEditor#setBulletControls(com.smartgwt.client.types.ControlName...) setBulletControls(ControlName...
|
void |
setColorControls(ControlName... colorControls)
Control group for modifying text color / background color.
|
void |
setColorControls(java.lang.Object... colorControls)
Use this signature if you plan to pass a mixture of standard ControlNames and custom
widgets (any subclass of Canvas is allowed):
{@link com.smartgwt.client.widgets.RichTextEditor#setColorControls(com.smartgwt.client.types.ControlName...) setColorControls(ControlName...
|
void |
setColorPrompt(java.lang.String colorPrompt)
The prompt for the built-in
color control. |
void |
setControlGroups(java.lang.Object... controlGroups)
An array of control groups specifying which groups of controls should be included in the
editor tool area.
|
void |
setControlGroups(java.lang.String... controlGroups)
An array of control group names specifying which groups of controls should be included in the editor tool area.
|
void |
setCopySelectionPrompt(java.lang.String copySelectionPrompt)
The prompt for the built-in
copySelection control. |
void |
setCutSelectionPrompt(java.lang.String cutSelectionPrompt)
The prompt for the built-in
cutSelection control. |
static void |
setDefaultProperties(RichTextEditor richTextEditorProperties)
Class level method to set the default properties of this class.
|
void |
setEditAreaBackgroundColor(java.lang.String editAreaBackgroundColor)
Background color for the
edit canvas . |
void |
setFontControls(ControlName... fontControls)
Default font control group.
|
void |
setFontControls(java.lang.Object... fontControls)
Use this signature if you plan to pass a mixture of standard ControlNames and custom
widgets (any subclass of Canvas is allowed):
{@link com.smartgwt.client.widgets.RichTextEditor#setFontControls(com.smartgwt.client.types.ControlName...) setFontControls(ControlName...
|
void |
setFontNames(java.util.LinkedHashMap<java.lang.String,java.lang.String> fontNames)
ValueMap of CSS fontName properties to font name titles to display in the font selector
for the
FONTSELECTOR control. |
void |
setFontSelectorPrompt(java.lang.String fontSelectorPrompt)
The prompt for the built-in
font selector . |
void |
setFontSizes(java.util.LinkedHashMap<java.lang.String,java.lang.String> fontSizes)
ValueMap of CSS font size property values to font size titles to display in the font size selector
for the
FONTSIZESELECTOR control. |
void |
setFontSizeSelectorPrompt(java.lang.String fontSizeSelectorPrompt)
The prompt for the built-in
font-size
selector . |
void |
setFormatControls(ControlName... formatControls)
Default text formatting control group.
|
void |
setFormatControls(java.lang.Object... formatControls)
Use this signature if you plan to pass a mixture of standard ControlNames and custom
widgets (any subclass of Canvas is allowed):
{@link com.smartgwt.client.widgets.RichTextEditor#setFormatControls(com.smartgwt.client.types.ControlName...) setFormatControls(ControlName...
|
void |
setIndentPrompt(java.lang.String indentPrompt)
The prompt for the built-in
indent control. |
void |
setItalicSelectionPrompt(java.lang.String italicSelectionPrompt)
The prompt for the built-in
italicSelection control. |
void |
setJustifyPrompt(java.lang.String justifyPrompt)
The prompt for the built-in
justify control. |
void |
setListPropertiesPrompt(java.lang.String listPropertiesPrompt)
The prompt for the built-in
listProperties control. |
void |
setListPropertiesWarningText(java.lang.String listPropertiesWarningText)
The warning message displayed in a dialog when a user tries to configure a list without first putting the cursor in an
appropriate place.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.RichTextEditorLogicalStructure s)
Setter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
void |
setMoveFocusOnTab(boolean moveFocusOnTab)
If the user presses the "Tab" key, should focus be taken from this editor? If set to
false a "Tab" keypress
will cause a Tab character to be inserted into the text, and focus will be left in the edit area. |
void |
setOrderedListPrompt(java.lang.String orderedListPrompt)
The prompt for the built-in
orderedList control. |
void |
setOutdentPrompt(java.lang.String outdentPrompt)
The prompt for the built-in
outdent control. |
void |
setPasteSelectionPrompt(java.lang.String pasteSelectionPrompt)
The prompt for the built-in
pasteSelection control. |
void |
setStrikethroughSelectionPrompt(java.lang.String strikethroughSelectionPrompt)
The prompt for the built-in
strikethroughSelection control. |
void |
setStyleControls(ControlName... styleControls)
Default text styling control group.
|
void |
setStyleControls(java.lang.Object... styleControls)
Use this signature if you plan to pass a mixture of standard ControlNames and custom
widgets (any subclass of Canvas is allowed):
{@link com.smartgwt.client.widgets.RichTextEditor#setStyleControls(com.smartgwt.client.types.ControlName...) setStyleControls(ControlName...
|
void |
setStyleWithCSS(java.lang.Boolean styleWithCSS)
When true, applies style attributes in markup instead of presentation elements.
|
void |
setToolbarBackgroundColor(java.lang.String toolbarBackgroundColor)
The background color for the toolbar.
|
void |
setUnderlineSelectionPrompt(java.lang.String underlineSelectionPrompt)
The prompt for the built-in
underlineSelection control. |
void |
setUnorderedListPrompt(java.lang.String unorderedListPrompt)
The prompt for the built-in
unorderedList control. |
void |
setUseDesignMode(java.lang.Boolean useDesignMode)
Should this editor use a separate IFRAME with special cross-browser support for editing HTML content? By default, the
value is auto-detected according to browser details.
|
void |
setValue(java.lang.String value)
Initial value for the edit area.
|
setDefaultProperties, setLogicalStructure
addMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, addMembersChangedHandler, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getChildTabPosition, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEditProxyConstructor, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutEndMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutStartMargin, getLayoutTopMargin, getLeaveScrollbarGap, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOverlap, getMembers, getMembersLength, getMembersMargin, getMinMemberLength, getMinMemberSize, getOverflow, getPaddingAsLayoutMargin, getResizeBar, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getShowDropLines, getStackZIndex, getVertical, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, layoutIsDirty, onInit_Layout, onInit, reflow, reflow, reflowNow, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, revealChild, revealChild, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEditProxyConstructor, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutEndMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutStartMargin, setLayoutTopMargin, setLeaveScrollbarGap, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinBreadthMember, setMinBreadthMember, setMinBreadthMember, setMinMemberLength, setMinMemberSize, setOverflow, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setShowDropLines, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMember
addChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaRole, getAutoMaskComponents, getAutoParent, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCorrectZoomOverflow, getCursor, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragType, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFormItemAutoChild, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapOrigin, getHSnapOrigin, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPercentBox, getPercentSource, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSkinImgDir, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getStyleName, getTabIndex, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapOrigin, getVSnapOrigin, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeFonts, resizeFonts, resizeFonts, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCorrectZoomOverflow, setCursor, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragType, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeavePageSpace, setLeft, setLeft, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLogicalStructure, setMargin, setMatchElement, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setName, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSkinImgDir, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setStyleName, setTabIndex, setTitle, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint, willAcceptDrop
addDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
public RichTextEditor()
public RichTextEditor(com.google.gwt.core.client.JavaScriptObject jsObj)
public static RichTextEditor getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
protected com.google.gwt.core.client.JavaScriptObject create()
public void setAlignCenterPrompt(java.lang.String alignCenterPrompt)
alignCenter
control.alignCenterPrompt
- New alignCenterPrompt value. Default value is "Center selection"public java.lang.String getAlignCenterPrompt()
alignCenter
control.public void setAlignLeftPrompt(java.lang.String alignLeftPrompt)
alignLeft
control.alignLeftPrompt
- New alignLeftPrompt value. Default value is "Left align selection"public java.lang.String getAlignLeftPrompt()
alignLeft
control.public void setAlignRightPrompt(java.lang.String alignRightPrompt)
alignRight
control.alignRightPrompt
- New alignRightPrompt value. Default value is "Right align selection"public java.lang.String getAlignRightPrompt()
alignRight
control.public void setBackgroundColorPrompt(java.lang.String backgroundColorPrompt)
backgroundColor
control.backgroundColorPrompt
- New backgroundColorPrompt value. Default value is "Set selection background color"public java.lang.String getBackgroundColorPrompt()
backgroundColor
control.public void setBoldSelectionPrompt(java.lang.String boldSelectionPrompt)
boldSelection
control.boldSelectionPrompt
- New boldSelectionPrompt value. Default value is "Make selection bold"public java.lang.String getBoldSelectionPrompt()
boldSelection
control.public void setBulletControls(ControlName... bulletControls) throws java.lang.IllegalStateException
ControlName
s and/or Canvas
instances. To display this group of controls for some RichTextEditor, include
"bulletControls"
in the controlGroups
array.
Note : This is an advanced setting
bulletControls
- New bulletControls value. Default value is ["indent", "outdent", "orderedList", "unorderedList", "listProperties"]java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic void setColorControls(ControlName... colorControls) throws java.lang.IllegalStateException
ControlName
s and/or Canvas
instances. To display this
group of controls for some RichTextEditor, include "formatControls"
in the controlGroups
array.
Note : This is an advanced setting
colorControls
- New colorControls value. Default value is ["color", "backgroundColor"]java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic void setColorPrompt(java.lang.String colorPrompt)
color
control.colorPrompt
- New colorPrompt value. Default value is "Set selection text color"public java.lang.String getColorPrompt()
color
control.public void setCopySelectionPrompt(java.lang.String copySelectionPrompt)
copySelection
control.copySelectionPrompt
- New copySelectionPrompt value. Default value is "Copy Selection"public java.lang.String getCopySelectionPrompt()
copySelection
control.public void setCutSelectionPrompt(java.lang.String cutSelectionPrompt)
cutSelection
control.cutSelectionPrompt
- New cutSelectionPrompt value. Default value is "Cut Selection"public java.lang.String getCutSelectionPrompt()
cutSelection
control.public Canvas getEditArea() throws java.lang.IllegalStateException
This component is an AutoChild named "editArea". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setEditAreaBackgroundColor(java.lang.String editAreaBackgroundColor) throws java.lang.IllegalStateException
edit canvas
.editAreaBackgroundColor
- New editAreaBackgroundColor value. Default value is "white"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getEditAreaBackgroundColor()
edit canvas
.public void setFontControls(ControlName... fontControls) throws java.lang.IllegalStateException
ControlName
s and/or Canvas
instances. To display this group of controls for some RichTextEditor, include
"fontControls"
in the controlGroups
array.
Note : This is an advanced setting
fontControls
- New fontControls value. Default value is ["fontSelector", "fontSizeSelector"]java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic SelectItem getFontSelectorItem() throws java.lang.IllegalStateException
com.smartgwt.client.types.AutoChild
SelectItem
used for
choosing the font to apply to the current selection.
This component is an AutoChild named "fontSelectorItem". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setFontSelectorPrompt(java.lang.String fontSelectorPrompt)
font selector
.fontSelectorPrompt
- New fontSelectorPrompt value. Default value is "Set Font..."public java.lang.String getFontSelectorPrompt()
font selector
.public SelectItem getFontSizeSelectorItem() throws java.lang.IllegalStateException
com.smartgwt.client.types.AutoChild
SelectItem
used for
choosing the font-size to apply to the current selection.
This component is an AutoChild named "fontSizeSelectorItem". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setFontSizeSelectorPrompt(java.lang.String fontSizeSelectorPrompt)
font-size
selector
.fontSizeSelectorPrompt
- New fontSizeSelectorPrompt value. Default value is "Set Font Size..."public java.lang.String getFontSizeSelectorPrompt()
font-size
selector
.public void setFormatControls(ControlName... formatControls) throws java.lang.IllegalStateException
ControlName
s and/or
Canvas
instances. To display this group of controls for some RichTextEditor, include
"formatControls"
in the controlGroups
array.
Note : This is an advanced setting
formatControls
- New formatControls value. Default value is ["alignLeft", "alignRight", "alignCenter", "justify"]java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic void setIndentPrompt(java.lang.String indentPrompt)
indent
control.indentPrompt
- New indentPrompt value. Default value is "Increase Indent"public java.lang.String getIndentPrompt()
indent
control.public void setItalicSelectionPrompt(java.lang.String italicSelectionPrompt)
italicSelection
control.italicSelectionPrompt
- New italicSelectionPrompt value. Default value is "Make selection italic"public java.lang.String getItalicSelectionPrompt()
italicSelection
control.public void setJustifyPrompt(java.lang.String justifyPrompt)
justify
control.justifyPrompt
- New justifyPrompt value. Default value is "Full justify selection"public java.lang.String getJustifyPrompt()
justify
control.public ListPropertiesDialog getListPropertiesDialog() throws java.lang.IllegalStateException
"listProperties" control
is pressed. Provides
options for the user to control formatting of lists.
This component is an AutoChild named "listPropertiesDialog". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setListPropertiesPrompt(java.lang.String listPropertiesPrompt)
listProperties
control.listPropertiesPrompt
- New listPropertiesPrompt value. Default value is "Configure the list"public java.lang.String getListPropertiesPrompt()
listProperties
control.public void setListPropertiesWarningText(java.lang.String listPropertiesWarningText)
listPropertiesWarningText
- New listPropertiesWarningText value. Default value is "Place the cursor within a list to configure it"public java.lang.String getListPropertiesWarningText()
public void setMoveFocusOnTab(boolean moveFocusOnTab)
false
a "Tab" keypress
will cause a Tab character to be inserted into the text, and focus will be left in the edit area.
moveFocusOnTab
.moveFocusOnTab
- new value for moveFocusOnTab. Default value is truepublic boolean getMoveFocusOnTab()
false
a "Tab" keypress
will cause a Tab character to be inserted into the text, and focus will be left in the edit area.public void setOrderedListPrompt(java.lang.String orderedListPrompt)
orderedList
control.orderedListPrompt
- New orderedListPrompt value. Default value is "Convert to a numbered list"public java.lang.String getOrderedListPrompt()
orderedList
control.public void setOutdentPrompt(java.lang.String outdentPrompt)
outdent
control.outdentPrompt
- New outdentPrompt value. Default value is "Decrease Indent"public java.lang.String getOutdentPrompt()
outdent
control.public void setPasteSelectionPrompt(java.lang.String pasteSelectionPrompt)
pasteSelection
control.pasteSelectionPrompt
- New pasteSelectionPrompt value. Default value is "Paste"public java.lang.String getPasteSelectionPrompt()
pasteSelection
control.public void setStrikethroughSelectionPrompt(java.lang.String strikethroughSelectionPrompt)
strikethroughSelection
control.strikethroughSelectionPrompt
- New strikethroughSelectionPrompt value. Default value is "Strike through selection"public java.lang.String getStrikethroughSelectionPrompt()
strikethroughSelection
control.public void setStyleControls(ControlName... styleControls) throws java.lang.IllegalStateException
ControlName
s and/or Canvas
instances. To display this group of controls for some RichTextEditor, include
"styleControls"
in the controlGroups
array.
Note : This is an advanced setting
styleControls
- New styleControls value. Default value is ["boldSelection", "italicSelection", "underlineSelection"]java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic void setStyleWithCSS(java.lang.Boolean styleWithCSS) throws java.lang.IllegalStateException
Note : This is an advanced setting
styleWithCSS
- New styleWithCSS value. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getStyleWithCSS()
public Layout getToolArea() throws java.lang.IllegalStateException
toolbar
AutoChildren
that contain the controlGroups
.
This component is an AutoChild named "toolArea". For an overview of how to use and
configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public Layout getToolbar()
Using AutoChildren
for details.
Layout used to contain each of the controlGroups
.
public void setToolbarBackgroundColor(java.lang.String toolbarBackgroundColor) throws java.lang.IllegalStateException
toolbarBackgroundColor
- New toolbarBackgroundColor value. Default value is "#CCCCCC"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getToolbarBackgroundColor()
public void setUnderlineSelectionPrompt(java.lang.String underlineSelectionPrompt)
underlineSelection
control.underlineSelectionPrompt
- New underlineSelectionPrompt value. Default value is "Make selection underlined"public java.lang.String getUnderlineSelectionPrompt()
underlineSelection
control.public void setUnorderedListPrompt(java.lang.String unorderedListPrompt)
unorderedList
control.unorderedListPrompt
- New unorderedListPrompt value. Default value is "Convert to a bullet list"public java.lang.String getUnorderedListPrompt()
unorderedList
control.public void setUseDesignMode(java.lang.Boolean useDesignMode) throws java.lang.IllegalStateException
Note : This is an advanced setting
useDesignMode
- New useDesignMode value. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getUseDesignMode()
public void setValue(java.lang.String value)
getValue()
and setValue()
to update at runtime.
value
- New value value. Default value is ""public java.lang.String getValue()
getValue()
and setValue()
to update at runtime.public void doWarn()
public java.lang.Boolean richEditorSupported()
public static void setDefaultProperties(RichTextEditor richTextEditorProperties)
Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
richTextEditorProperties
- properties that should be used as new defaults when instances of this class are createdSGWTProperties
public void setControlGroups(java.lang.String... controlGroups)
controlGroups
- the control groups. Default is ["fontControls", "formatControls", "styleControls",
"colorControls"]java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic void setControlGroups(java.lang.Object... controlGroups) throws java.lang.IllegalStateException
StandardControlGroup
enum value,
the name of a control group (String), a Canvas
, or
the special string "break" which causes the subsequent control groups to continue onto
a new line.controlGroups
- the control groups. Default is [
FONTCONTROLS
,
FORMATCONTROLS
,
STYLECONTROLS
,
COLORCONTROLS
].java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic void setBulletControls(java.lang.Object... bulletControls) throws java.lang.IllegalStateException
setBulletControls(ControlName... bulletControls)
java.lang.IllegalStateException
public void setColorControls(java.lang.Object... colorControls) throws java.lang.IllegalStateException
setColorControls(ControlName... colorControls)
java.lang.IllegalStateException
public void setFontControls(java.lang.Object... fontControls) throws java.lang.IllegalStateException
setFontControls(ControlName... fontControls)
java.lang.IllegalStateException
public void setFormatControls(java.lang.Object... formatControls) throws java.lang.IllegalStateException
setFormatControls(ControlName... formatControls)
java.lang.IllegalStateException
public void setStyleControls(java.lang.Object... styleControls) throws java.lang.IllegalStateException
setStyleControls(ControlName... styleControls)
java.lang.IllegalStateException
public final java.util.Map<java.lang.String,java.lang.String> getFontNames()
FONTSELECTOR
control.public void setFontNames(java.util.LinkedHashMap<java.lang.String,java.lang.String> fontNames) throws java.lang.IllegalStateException
FONTSELECTOR
control.fontNames
- the new ValueMapjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic final java.util.Map<java.lang.String,java.lang.String> getFontSizes()
FONTSIZESELECTOR
control.public void setFontSizes(java.util.LinkedHashMap<java.lang.String,java.lang.String> fontSizes) throws java.lang.IllegalStateException
FONTSIZESELECTOR
control.fontSizes
- the new ValueMapjava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.RichTextEditorLogicalStructure s)
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class VLayout