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
-
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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.since 6.3protected CockpitCelumServiceprotected static final StringDeprecated.since 6.3protected static final StringDeprecated.since 6.3protected static final StringDeprecated.since 6.3protected static final StringDeprecated.since 6.3Fields inherited from class de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleReferenceUIEditor
AUTOCOMPLETION_SEARCHTYPE, DISABLE_ON_BLUR_PARAMETER, model, PREDEFINED_PROPERTY_VALUES, selectorController, simpleSelectorFields 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_PARAMFields inherited from interface de.hybris.platform.cockpit.model.editor.ReferenceUIEditor
ALLOW_CREATE_PARAM_KEYFields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Creates a new editor component and attaches it to the specifiedPagepage.protected TypedObjectDeprecated.since 6.3, useCelumMediaEditorBase.getAssociatedItem()insteadprotected StringDeprecated.since 6.3, useCelumMediaEditorBase.getCatalogVersionPK()insteadgetCelumParameters(Map<String, ? extends Object> parameters) Deprecated.since 6.3, useCelumMediaEditorBase.getCelumParameters(Map)insteadprotected DefaultCockpitCelumDelegateDeprecated.since 6.3protected StringDeprecated.since 6.3, useCelumMediaEditorBase.getLink(Map, boolean)insteadprotected booleanDeprecated.since 6.3, useCelumMediaEditorBase.isSynchronized(Object)insteadprotected voidrenderEditorContent(org.zkoss.zk.ui.HtmlBasedComponent parent, Object initialValue, Map<String, ? extends 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 itMethods inherited from class de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleReferenceUIEditor
getModel, getRootSearchType, getRootType, getTypeService, getValue, isInline, parseInitialParameters, setAutocompletionSearchType, setRootSearchType, setRootType, setValueMethods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
findMaxAutocompleteSearchResults, getBooleanParameter, getEditorType, isAllowCreate, setAllowCreateMethods 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, setOptionalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
isEditable, isOptional, setEditable, setOptional
-
Field Details
-
CELUM_MEDIA_FORMAT_KEY
Deprecated.since 6.3- See Also:
-
CONTEXT_PATH
Deprecated.since 6.3- See Also:
-
EDITOR_CONTEXT_OBJECT
Deprecated.since 6.3- See Also:
-
OPEN_CELUM_EDITOR_IMG
Deprecated.since 6.3- See Also:
-
OPEN_CELUM_EDITOR_NOSYNC_IMG
Deprecated.since 6.3- See Also:
-
celumService
-
-
Constructor Details
-
CelumSimpleMediaReferenceUIEditor
public CelumSimpleMediaReferenceUIEditor()
-
-
Method Details
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(Object initialValue, Map<String, ? extends 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.since 6.3, useCelumMediaEditorBase.getAssociatedItem()insteadGets the associated item.- Returns:
- the associated item
-
getCatalogVersionPK
Deprecated.since 6.3, useCelumMediaEditorBase.getCatalogVersionPK()insteadGets the catalog version PK.- Returns:
- the catalog version PK
-
getCelumParameters
@Deprecated protected Map<String,String> getCelumParameters(Map<String, ? extends Object> parameters) throws IllegalStateException, CelumNotAvailableExceptionDeprecated.since 6.3, useCelumMediaEditorBase.getCelumParameters(Map)insteadGets the celum parameters.- Parameters:
parameters- the parameters- Returns:
- the celum parameters
- Throws:
IllegalStateException- the illegal state exceptionCelumNotAvailableException- the celum not available exception
-
getCockpitCelumDelegate
Deprecated.since 6.3Gets the cockpit celum delegate.- Returns:
- the cockpit celum delegate
-
getLink
@Deprecated protected String getLink(Map<String, ? extends Object> parameters) throws CelumNotAvailableException, IllegalStateExceptionDeprecated.since 6.3, useCelumMediaEditorBase.getLink(Map, boolean)insteadGets the link.- Parameters:
parameters- the parameters- Returns:
- the link
- Throws:
CelumNotAvailableException- the celum not available exceptionIllegalStateException- the illegal state exception
-
isSynchronized
Deprecated.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, Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener)
-