Class CelumSimpleMediaReferenceUIEditor
- java.lang.Object
-
- de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
-
- de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
-
- de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleReferenceUIEditor
-
- de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleMediaReferenceUIEditor
-
- de.hybris.platform.cockpit.model.referenceeditor.celum.impl.CelumSimpleMediaReferenceUIEditor
-
- All Implemented Interfaces:
ReferenceUIEditor,UIEditor
public class CelumSimpleMediaReferenceUIEditor extends DefaultSimpleMediaReferenceUIEditor
-
-
Nested Class Summary
-
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 static java.lang.StringCELUM_MEDIA_FORMAT_KEYDeprecated.since 6.3protected CockpitCelumServicecelumServiceprotected static java.lang.StringCONTEXT_PATHDeprecated.since 6.3protected static java.lang.StringEDITOR_CONTEXT_OBJECTDeprecated.since 6.3protected static java.lang.StringOPEN_CELUM_EDITOR_IMGDeprecated.since 6.3protected static java.lang.StringOPEN_CELUM_EDITOR_NOSYNC_IMGDeprecated.since 6.3-
Fields inherited from class de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleReferenceUIEditor
AUTOCOMPLETION_SEARCHTYPE, DISABLE_ON_BLUR_PARAMETER, model, PREDEFINED_PROPERTY_VALUES, selectorController, simpleSelector
-
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.ReferenceUIEditor
ALLOW_CREATE_PARAM_KEY
-
Fields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description CelumSimpleMediaReferenceUIEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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 TypedObjectgetAssociatedItem()Deprecated.since 6.3, useCelumMediaEditorBase.getAssociatedItem()insteadprotected java.lang.StringgetCatalogVersionPK()Deprecated.since 6.3, useCelumMediaEditorBase.getCatalogVersionPK()insteadprotected java.util.Map<java.lang.String,java.lang.String>getCelumParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)Deprecated.since 6.3, useCelumMediaEditorBase.getCelumParameters(Map)insteadprotected DefaultCockpitCelumDelegategetCockpitCelumDelegate()Deprecated.since 6.3protected java.lang.StringgetLink(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)Deprecated.since 6.3, useCelumMediaEditorBase.getLink(Map, boolean)insteadprotected booleanisSynchronized()Deprecated.since 6.3, useCelumMediaEditorBase.isSynchronized(Object)insteadprotected voidrenderEditorContent(org.zkoss.zk.ui.HtmlBasedComponent parent, java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)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.referenceeditor.simple.impl.DefaultSimpleReferenceUIEditor
getModel, getRootSearchType, getRootType, getTypeService, getValue, isInline, parseInitialParameters, setAutocompletionSearchType, setRootSearchType, setRootType, setValue
-
Methods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
findMaxAutocompleteSearchResults, getBooleanParameter, getEditorType, isAllowCreate, setAllowCreate
-
Methods inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setOptional
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
isEditable, isOptional, setEditable, setOptional
-
-
-
-
Field Detail
-
CELUM_MEDIA_FORMAT_KEY
@Deprecated public static final java.lang.String CELUM_MEDIA_FORMAT_KEY
Deprecated.since 6.3- See Also:
- Constant Field Values
-
CONTEXT_PATH
@Deprecated protected static final java.lang.String CONTEXT_PATH
Deprecated.since 6.3- See Also:
- Constant Field Values
-
EDITOR_CONTEXT_OBJECT
@Deprecated protected static final java.lang.String EDITOR_CONTEXT_OBJECT
Deprecated.since 6.3- See Also:
- Constant Field Values
-
OPEN_CELUM_EDITOR_IMG
@Deprecated protected static final java.lang.String OPEN_CELUM_EDITOR_IMG
Deprecated.since 6.3- See Also:
- Constant Field Values
-
OPEN_CELUM_EDITOR_NOSYNC_IMG
@Deprecated protected static final java.lang.String OPEN_CELUM_EDITOR_NOSYNC_IMG
Deprecated.since 6.3- See Also:
- Constant Field Values
-
celumService
protected CockpitCelumService celumService
-
-
Method Detail
-
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.- Specified by:
createViewComponentin interfaceUIEditor- Overrides:
createViewComponentin classDefaultSimpleMediaReferenceUIEditor- 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
-
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 classDefaultSimpleReferenceUIEditor- 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.
-
getAssociatedItem
@Deprecated protected TypedObject getAssociatedItem()
Deprecated.since 6.3, useCelumMediaEditorBase.getAssociatedItem()insteadGets the associated item.- Returns:
- the associated item
-
getCatalogVersionPK
@Deprecated protected java.lang.String getCatalogVersionPK()
Deprecated.since 6.3, useCelumMediaEditorBase.getCatalogVersionPK()insteadGets the catalog version PK.- Returns:
- the catalog version PK
-
getCelumParameters
@Deprecated protected java.util.Map<java.lang.String,java.lang.String> getCelumParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters) throws java.lang.IllegalStateException, CelumNotAvailableExceptionDeprecated.since 6.3, useCelumMediaEditorBase.getCelumParameters(Map)insteadGets the celum parameters.- Parameters:
parameters- the parameters- Returns:
- the celum parameters
- Throws:
java.lang.IllegalStateException- the illegal state exceptionCelumNotAvailableException- the celum not available exception
-
getCockpitCelumDelegate
@Deprecated protected DefaultCockpitCelumDelegate getCockpitCelumDelegate()
Deprecated.since 6.3Gets the cockpit celum delegate.- Returns:
- the cockpit celum delegate
-
getLink
@Deprecated protected java.lang.String getLink(java.util.Map<java.lang.String,? extends java.lang.Object> parameters) throws CelumNotAvailableException, java.lang.IllegalStateExceptionDeprecated.since 6.3, useCelumMediaEditorBase.getLink(Map, boolean)insteadGets the link.- Parameters:
parameters- the parameters- Returns:
- the link
- Throws:
CelumNotAvailableException- the celum not available exceptionjava.lang.IllegalStateException- the illegal state exception
-
isSynchronized
@Deprecated protected boolean isSynchronized() throws CelumNotAvailableExceptionDeprecated.since 6.3, useCelumMediaEditorBase.isSynchronized(Object)insteadChecks if is synchronized.- Returns:
- true, if is synchronized
- Throws:
CelumNotAvailableException- the celum not available exception
-
renderEditorContent
protected void renderEditorContent(org.zkoss.zk.ui.HtmlBasedComponent parent, java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)
-
-