CollectionUIEditorMedia instead. @Deprecated public class DefaultMediaReferenceCollectionUIEditor extends AbstractReferenceUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDivATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMALLOW_CREATE_PARAM_KEYINITIAL_EDIT_STRING| Constructor and Description |
|---|
DefaultMediaReferenceCollectionUIEditor()
Deprecated.
|
DefaultMediaReferenceCollectionUIEditor(ObjectType rootType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
HtmlBasedComponent |
createViewComponent(Object initialValue,
Map<String,? extends Object> parameters,
EditorListener listener)
Deprecated.
Creates a new editor component and attaches it to the specified
Page page. |
protected MediaReferenceCollectionEditor |
getCollectionEditor(EditorListener editorListener,
AdditionalReferenceEditorListener additionalListener)
Deprecated.
|
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.
|
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(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
Deprecated.
Sets the focus on the given input component which can be the rootEditorComponent or a child of it
|
void |
setMimeType(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(Object value)
Deprecated.
Sets the value of this editor to
value. |
findMaxAutocompleteSearchResults, getEditorType, isAllowCreate, setAllowCreateapplyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setOptionalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEditable, isOptional, setEditable, setOptionalpublic DefaultMediaReferenceCollectionUIEditor()
public DefaultMediaReferenceCollectionUIEditor(ObjectType rootType)
public HtmlBasedComponent createViewComponent(Object initialValue, Map<String,? extends Object> parameters, EditorListener listener)
UIEditorPage page.initialValue - editor's initial valueparameters - parameters passed via configuration for particular editorlistener - the EditorListener that will receive events when the editor's value is changedpublic String getMimeType()
public ObjectType getRootSearchType()
ReferenceUIEditorReferenceUIEditor.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.ReferenceUIEditor.getRootType()public ObjectType getRootType()
ReferenceUIEditorReferenceUIEditor.getRootSearchType(). In this case information about the root type is
generally needed for value handling.ReferenceUIEditor.getRootSearchType()public TypedObject getSourceItem()
public Object getValue()
UIEditorgetValue in interface UIEditorgetValue in class AbstractUIEditorpublic boolean isInline()
UIEditorpublic void setFocus(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
UIEditorsetFocus in interface UIEditorsetFocus in class AbstractUIEditorrootEditorComponent - 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.public void setMimeType(String mimeType)
mimeType - the mimeType to setpublic void setRootSearchType(ObjectType rootSearchType)
ReferenceUIEditorrootSearchType is null, the set root type will be
used.public void setRootType(ObjectType rootType)
ReferenceUIEditorrootType - the root typepublic void setSourceItem(TypedObject sourceItem)
public void setValue(Object value)
UIEditorvalue.
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 specified EditorListener the underlying view component might
generate an event which causes the EditorListener.valueChanged(Object) method to be called.setValue in interface UIEditorsetValue in class AbstractUIEditorvalue - the value to setprotected DefaultReferenceCollectionEditorModel getModel()
protected MediaReferenceCollectionEditor getCollectionEditor(EditorListener editorListener, AdditionalReferenceEditorListener additionalListener)
Copyright © 2017 SAP SE. All Rights Reserved.