|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zkmax.zul.Tbeditor
public class Tbeditor
A component which is similar to ckeditor but is lightweight and efficient.
Default getZclass(): z-tbeditor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
HtmlBasedComponent.ExtraCtrl |
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
AbstractComponent.Children |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
_zclass |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
|---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
| Constructor Summary | |
|---|---|
Tbeditor()
|
|
| Method Summary | |
|---|---|
java.util.Map |
getConfig()
Returns the current configuration |
java.lang.String |
getValue()
Returns editor's content with html format |
java.lang.String |
getZclass()
The default zclass is "z-tbeditor" |
protected boolean |
isChildable()
Not support child added |
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing tags and children. |
void |
service(AuRequest request,
boolean everError)
Processes an AU request. |
void |
setConfig(java.util.Map<java.lang.String,java.lang.Object> config)
Sets the editor's configuration, For more detail, please refer to official document (not support localization for now). |
void |
setValue(java.lang.String value)
Sets the editor's content, and one can specify html tags to decorate the content |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
clone, getContext, getCtrlKeys, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tbeditor()
| Method Detail |
|---|
public java.lang.String getValue()
public void setValue(java.lang.String value)
value - editor's contentpublic java.util.Map getConfig()
public void setConfig(java.util.Map<java.lang.String,java.lang.Object> config)
For more detail, please refer to official document (not support localization for now).
We have to pass a Map as parameter that key is option name, value is option's possible value.
If the option value is not string, please apply "new JavaScriptValue(value)" first.
Because this functionality only works before widget bind, it will invalidate component every time we change the config rather than smart update.
config -
protected void renderProperties(ContentRenderer renderer)
throws java.io.IOException
HtmlBasedComponentSee also ZK Client-side Reference: Property Rendering
renderProperties in class XulElementjava.io.IOException
public void service(AuRequest request,
boolean everError)
HtmlBasedComponentDefault: it handles onClick, onDoubleClick, onRightClick onMove, onSize, onZIndex.
service in interface ComponentCtrlservice in class HtmlBasedComponenteverError - whether any error ever occurred before
processing this request.AbstractComponent.setAuService(org.zkoss.zk.au.AuService)protected boolean isChildable()
isChildable in class AbstractComponentpublic java.lang.String getZclass()
getZclass in class HtmlBasedComponentHtmlBasedComponent.getSclass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||