Class DefaultMediaReferenceCollectionUIEditor
- 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.impl.DefaultMediaReferenceCollectionUIEditor
-
- All Implemented Interfaces:
ReferenceUIEditor
,UIEditor
- Direct Known Subclasses:
CelumMediaReferenceCollectionUIEditor
@Deprecated public class DefaultMediaReferenceCollectionUIEditor extends AbstractReferenceUIEditor
Deprecated.since 6.3, use:CollectionUIEditorMedia
instead.Default implementation of the reference selector editor.
-
-
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 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 DefaultMediaReferenceCollectionUIEditor()
Deprecated.DefaultMediaReferenceCollectionUIEditor(ObjectType rootType)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.zkoss.zk.ui.HtmlBasedComponent
createViewComponent(java.lang.Object initialValue, java.util.Map<java.lang.String,? extends java.lang.Object> parameters, EditorListener listener)
Deprecated.Creates a new editor component and attaches it to the specifiedPage
page
.protected MediaReferenceCollectionEditor
getCollectionEditor(EditorListener editorListener, AdditionalReferenceEditorListener additionalListener)
Deprecated.java.lang.String
getMimeType()
Deprecated.protected DefaultReferenceCollectionEditorModel
getModel()
Deprecated.ObjectType
getRootSearchType()
Deprecated.Returns the type for which this reference collection editor should search for.ObjectType
getRootType()
Deprecated.Returns the root type of this reference collection editor i.e.TypedObject
getSourceItem()
Deprecated.java.lang.Object
getValue()
Deprecated.Returns the value held by this editor.boolean
isInline()
Deprecated.Returns whether this editor is an inline editor or not.void
setFocus(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent, boolean selectAll)
Deprecated.Sets the focus on the given input component which can be the rootEditorComponent or a child of itvoid
setMimeType(java.lang.String mimeType)
Deprecated.void
setRootSearchType(ObjectType rootSearchType)
Deprecated.Sets the type for which this reference selector should search for.void
setRootType(ObjectType rootType)
Deprecated.Sets the root type of this reference editor i.e.void
setSourceItem(TypedObject sourceItem)
Deprecated.void
setValue(java.lang.Object value)
Deprecated.Sets the value of this editor tovalue
.-
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
-
-
-
-
Constructor Detail
-
DefaultMediaReferenceCollectionUIEditor
public DefaultMediaReferenceCollectionUIEditor()
Deprecated.
-
DefaultMediaReferenceCollectionUIEditor
public DefaultMediaReferenceCollectionUIEditor(ObjectType rootType)
Deprecated.
-
-
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)
Deprecated.Description copied from interface:UIEditor
Creates a new editor component and attaches it to the specifiedPage
page
.- Parameters:
initialValue
- editor's initial valueparameters
- parameters passed via configuration for particular editorlistener
- theEditorListener
that will receive events when the editor's value is changed- Returns:
- the editor component
-
getMimeType
public java.lang.String getMimeType()
Deprecated.- Returns:
- the mimeType
-
getRootSearchType
public ObjectType getRootSearchType()
Deprecated.Description copied from interface:ReferenceUIEditor
Returns the type for which this reference collection editor should search for. Generally, if no root search type has been explicitly set, this method returns the same type asReferenceUIEditor.getRootType()
. Note: The root search type is actually the type of the items held by this editor, whereas root type is the type which should be used for persisting values.- Returns:
- the type for which this reference collection editor should search for
- See Also:
ReferenceUIEditor.getRootType()
-
getRootType
public ObjectType getRootType()
Deprecated.Description copied from interface:ReferenceUIEditor
Returns the root type of this reference collection editor i.e. the type of the items which this editor should hold references to. Note: If the root search type differs from the root type, this editor will actually hold items of the type returned byReferenceUIEditor.getRootSearchType()
. In this case information about the root type is generally needed for value handling.- Returns:
- the root type of this editor
- See Also:
ReferenceUIEditor.getRootSearchType()
-
getSourceItem
public TypedObject getSourceItem()
Deprecated.
-
getValue
public java.lang.Object getValue()
Deprecated.Description copied from interface:UIEditor
Returns the value held by this editor.- Specified by:
getValue
in interfaceUIEditor
- Overrides:
getValue
in classAbstractUIEditor
- Returns:
- this editor's value
-
isInline
public boolean isInline()
Deprecated.Description copied from interface:UIEditor
Returns 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)
Deprecated.Description copied from interface:UIEditor
Sets the focus on the given input component which can be the rootEditorComponent or a child of it- Specified by:
setFocus
in interfaceUIEditor
- Overrides:
setFocus
in 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.
-
setMimeType
public void setMimeType(java.lang.String mimeType)
Deprecated.- Parameters:
mimeType
- the mimeType to set
-
setRootSearchType
public void setRootSearchType(ObjectType rootSearchType)
Deprecated.Description copied from interface:ReferenceUIEditor
Sets the type for which this reference selector should search for. Note: Generally, ifrootSearchType
isnull
, the set root type will be used.
-
setRootType
public void setRootType(ObjectType rootType)
Deprecated.Description copied from interface:ReferenceUIEditor
Sets the root type of this reference editor i.e. the root type of the references which this editor holds.- Parameters:
rootType
- the root type
-
setSourceItem
public void setSourceItem(TypedObject sourceItem)
Deprecated.
-
setValue
public void setValue(java.lang.Object value)
Deprecated.Description copied from interface:UIEditor
Sets the value of this editor tovalue
. Note: Does not have anything to do with value persistence, it is only for setting the value to be displayed. However, depending on the view component implementation and the specifiedEditorListener
the underlying view component might generate an event which causes theEditorListener.valueChanged(Object)
method to be called.- Specified by:
setValue
in interfaceUIEditor
- Overrides:
setValue
in classAbstractUIEditor
- Parameters:
value
- the value to set
-
getModel
protected DefaultReferenceCollectionEditorModel getModel()
Deprecated.
-
getCollectionEditor
protected MediaReferenceCollectionEditor getCollectionEditor(EditorListener editorListener, AdditionalReferenceEditorListener additionalListener)
Deprecated.- Returns:
- the collectionEditor
-
-