|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.NodeContainer
to.etc.domui.dom.html.InputNodeContainer
to.etc.domui.dom.html.TextArea
to.etc.domui.component.htmleditor.HtmlEditor
public class HtmlEditor
This is a small but very fast html editor. It shows way faster than the full Html editor but has a little less options. This uses a slightly adapter version of the wysigyg plugin.
One oddity in the code here is the handling of the "display" css property. The plugin adds a div just before the original textarea, then it makes the textarea display: none. The textarea is retained so the plugin can put it's content in there still. DomUI however will reset the display:none value after a value is entered because the changeAttribute call sent will clear it (the attribute is BLOCK in the DomUI DOM). To prevent this we set the attribute to BLOCK on a full render and reset it back no none as soon as a partial delta is to be rendered by listening for input on this control.
Constructor Summary | |
---|---|
HtmlEditor()
|
Method Summary | |
---|---|
boolean |
acceptRequestParameter(java.lang.String[] values)
|
void |
createContent()
|
java.lang.String |
getStyleSheet()
Contains the in-editor stylesheet to use, which determines the presentation\ of the document inside the editor. |
void |
onBeforeFullRender()
|
void |
setStyleSheet(java.lang.String styleSheet)
|
Methods inherited from class to.etc.domui.dom.html.TextArea |
---|
bind, getCols, getRawValue, getRows, getValue, getValueSafe, hasError, isBound, isDisabled, isModified, setCols, setDisabled, setModified, setRows, setValue, validate, visit |
Methods inherited from class to.etc.domui.dom.html.InputNodeContainer |
---|
callOnValueChanged, getOnValueChanged, isMandatory, isReadOnly, setMandatory, setOnValueChanged, setReadOnly |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, canContain, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface to.etc.domui.dom.html.IControl |
---|
getErrorLocation, isMandatory, isReadOnly, setErrorLocation, setMandatory, setReadOnly |
Methods inherited from interface to.etc.domui.dom.html.IDisplayControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.html.IActionControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.html.IHasChangeListener |
---|
getOnValueChanged, setOnValueChanged |
Methods inherited from interface to.etc.domui.dom.errors.INodeErrorDelegate |
---|
clearMessage, getMessage, setMessage |
Constructor Detail |
---|
public HtmlEditor()
Method Detail |
---|
public void createContent() throws java.lang.Exception
createContent
in class NodeBase
java.lang.Exception
public java.lang.String getStyleSheet() throws java.lang.Exception
java.lang.Exception
public void setStyleSheet(java.lang.String styleSheet)
public void onBeforeFullRender() throws java.lang.Exception
onBeforeFullRender
in class NodeBase
java.lang.Exception
public boolean acceptRequestParameter(java.lang.String[] values) throws java.lang.Exception
acceptRequestParameter
in class TextArea
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |