Class WysiwygUIEditor
- java.lang.Object
-
- de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
-
- de.hybris.platform.cockpit.model.editor.WysiwygUIEditor
-
- All Implemented Interfaces:
UIEditor
public class WysiwygUIEditor extends AbstractUIEditor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classWysiwygUIEditor.WysiwygButtonContainer-
Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv
-
-
Field Summary
Fields Modifier and Type Field Description protected booleaninlineprotected static java.lang.StringQUESTION_MARK-
Fields inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAM
-
Fields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description WysiwygUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected CockpitFCKEditorcreateCockpitFCKEditor(java.util.Map<java.lang.String,? extends java.lang.Object> editorParameters)protected org.zkoss.zul.WindowcreatePopupWysiwyg(org.zkoss.zul.Textbox textbox, EditorListener listener)Deprecated.since 6.3protected org.zkoss.zul.WindowcreatePopupWysiwyg(org.zkoss.zul.Textbox textbox, EditorListener listener, java.util.Map<java.lang.String,? extends java.lang.Object> parameters)protected org.zkoss.zul.DivcreateReadonlyRepresentation(java.lang.String html, java.lang.String width, java.lang.String height)org.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)Creates a new editor component and attaches it to the specifiedPagepage.protected org.zkoss.zk.ui.HtmlBasedComponentcreateWysiwygInline(java.lang.String html, EditorListener listener, java.util.Map<java.lang.String,? extends java.lang.Object> parameters)java.lang.StringgetDefaultToolbarConfig()java.lang.StringgetEditorType()protected java.lang.StringgetSpellcheckerPath()Deprecated.since 6.7 Spellchecker was removed from WysiwygUIEditor due to security issuesbooleanisInline()Returns whether this editor is an inline editor or not.voidsetFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)Sets the focus on the given input component which can be the rootEditorComponent or a child of it-
Methods inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, getValue, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setOptional, setValue
-
-
-
-
Field Detail
-
QUESTION_MARK
protected static final java.lang.String QUESTION_MARK
- See Also:
- Constant Field Values
-
inline
protected boolean inline
-
-
Method Detail
-
getSpellcheckerPath
@Deprecated protected java.lang.String getSpellcheckerPath()
Deprecated.since 6.7 Spellchecker was removed from WysiwygUIEditor due to security issues
-
createCockpitFCKEditor
protected CockpitFCKEditor createCockpitFCKEditor(java.util.Map<java.lang.String,? extends java.lang.Object> editorParameters)
-
createWysiwygInline
protected org.zkoss.zk.ui.HtmlBasedComponent createWysiwygInline(java.lang.String html, EditorListener listener, java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
createReadonlyRepresentation
protected org.zkoss.zul.Div createReadonlyRepresentation(java.lang.String html, java.lang.String width, java.lang.String height)
-
createPopupWysiwyg
@Deprecated protected org.zkoss.zul.Window createPopupWysiwyg(org.zkoss.zul.Textbox textbox, EditorListener listener)Deprecated.since 6.3
-
createPopupWysiwyg
protected org.zkoss.zul.Window createPopupWysiwyg(org.zkoss.zul.Textbox textbox, EditorListener listener, java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)Description copied from interface:UIEditorCreates a new editor component and attaches it to the specifiedPagepage.- Parameters:
initialValue- editor's initial valueparameters- parameters passed via configuration for particular editorlistener- theEditorListenerthat will receive events when the editor's value is changed- Returns:
- the editor component
-
getEditorType
public java.lang.String getEditorType()
-
isInline
public boolean isInline()
Description copied from interface:UIEditorReturns whether this editor is an inline editor or not.- Returns:
- true, if inline
-
setFocus
public void setFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)Description copied from interface:UIEditorSets the focus on the given input component which can be the rootEditorComponent or a child of it- Specified by:
setFocusin interfaceUIEditor- Overrides:
setFocusin classAbstractUIEditor- Parameters:
rootEditorComponent- the rootEditorComponent which is returned on method createViewComponentselectAll- if true, select the whole input field after focus. It is not guaranteed that the editor supports selection.
-
getDefaultToolbarConfig
public java.lang.String getDefaultToolbarConfig()
-
-