public class HTMLTextEditor extends HTMLTextArea
disabledFg, readOnlyFgSTYLE_STS_FIELD, STYLE_STS_FIELD_IN_TABLE, STYLE_STS_FIELD_PRINTOUTalignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX| Constructor and Description |
|---|
HTMLTextEditor(java.lang.String name,
int rows,
int cols)
Creates a new HTML editor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(java.lang.String text,
int row,
int majorVersion)
add button and row values
|
void |
addPlugin(java.lang.String text)
add plugin
|
void |
clearButtons()
Clear all buttons.
|
protected void |
compile(ClientBrowser browser)
This is the spot to put all your generation
of the HTML components.
|
protected void |
compile4(ClientBrowser browser) |
int |
getTinymceMajorVersion()
get the major of the tinyMCE
|
void |
setCharCountURL(java.lang.String url) |
void |
setContentCSS(java.lang.String URLs)
The content CSS
|
void |
setCustomFormats(JSONArray customFormats) |
void |
setDocumentBaseURL(java.lang.String documentBaseURL) |
void |
setHeight(java.lang.String height)
Sets the height of the textEditor.
|
void |
setHost(java.lang.String host) |
void |
setIsInline(boolean isInline)
textarea can not use inline, tinyMCE will break replace the textarea with
div once type anything in the textarea.
|
void |
setMenuBar(java.lang.String menubar) |
void |
setRelativeURLs(boolean flag)
relative URLs
|
void |
setRemoveScriptHost(boolean flag)
remove the host
|
void |
setShowContextPath(boolean flag)
Sets whether the context path is displayed at the bottom of
the component
|
void |
setShowExtCharCount(boolean fg)
Sets whether a count of characters entered will be displayed to
the user
|
void |
setTinymceVersion(java.lang.String version)
Set Tinymce Version
|
addOnChangeEvent, addOnChangeEvent, cancelClickBubble, getName, getPlaceHolder, getRows, getValue, iGenerate, isDisabled, isReadOnly, setDisabled, setPlaceHolder, setReadOnly, setValueaddJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getId, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touchpublic HTMLTextEditor(java.lang.String name,
int rows,
int cols)
name - the name of the componentrows - number of rowscols - number of columnspublic void setCharCountURL(java.lang.String url)
public void setHost(java.lang.String host)
public void setRemoveScriptHost(boolean flag)
flag - public void setRelativeURLs(boolean flag)
flag - public void setContentCSS(java.lang.String URLs)
URLs - the URLs comma separated.public void setDocumentBaseURL(java.lang.String documentBaseURL)
documentBaseURL - the base URLpublic void clearButtons()
public void addButton(java.lang.String text,
int row,
int majorVersion)
text - The Button valuerow - The Row valuemajorVersion - public void addPlugin(java.lang.String text)
text - pluginpublic void setHeight(java.lang.String height)
height - - new height of text editorpublic void setShowExtCharCount(boolean fg)
fg - true to showpublic void setShowContextPath(boolean flag)
flag - true to showprotected void compile(ClientBrowser browser)
compile in class HTMLComponentbrowser - the browser to compile forprotected void compile4(ClientBrowser browser)
public void setCustomFormats(@Nullable
JSONArray customFormats)
public void setMenuBar(java.lang.String menubar)
public void setTinymceVersion(java.lang.String version)
version - public int getTinymceMajorVersion()
public void setIsInline(boolean isInline)
isInline - stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.