public class CollectionUIEditor extends AbstractReferenceUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv| Modifier and Type | Field and Description |
|---|---|
protected CollectionUIEditorController |
collectionController |
protected CollectionEditor |
collectionEditor |
protected DefaultCollectionEditorModel |
model |
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMALLOW_CREATE_PARAM_KEYINITIAL_EDIT_STRING| Constructor and Description |
|---|
CollectionUIEditor() |
CollectionUIEditor(ObjectType rootType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assignedPassedValue(Object initialValue)
Assigns an
initialValue as a editor value. |
CollectionEditor |
createCollectionEditor(EditorListener listener,
AdditionalReferenceEditorListener additionalListener) |
HtmlBasedComponent |
createViewComponent(Object initialValue,
Map<String,? extends Object> parameters,
EditorListener listener)
Creates a new editor component and attaches it to the specified
Page page. |
protected DefaultCollectionEditorModel |
getModel() |
ObjectType |
getRootSearchType()
Returns the type for which this reference collection editor should search for.
|
ObjectType |
getRootType()
Returns the root type of this reference collection editor i.e.
|
Object |
getValue()
Returns the value held by this editor.
|
boolean |
isInline()
Returns whether this editor is an inline editor or not.
|
protected void |
registerEventListeners(AbstractUIEditor.CancelButtonContainer cancelButtonContainer)
Registers all necessary event listeners in order to correct serve selectors events.
|
void |
setRootSearchType(ObjectType rootSearchType)
Sets the type for which this reference selector should search for.
|
void |
setRootType(ObjectType rootType)
Sets the root type of this reference editor i.e.
|
void |
setValue(Object value)
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, setFocus, setOptionalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEditable, isOptional, setEditable, setFocus, setOptionalprotected DefaultCollectionEditorModel model
protected CollectionEditor collectionEditor
protected CollectionUIEditorController collectionController
public CollectionUIEditor()
public CollectionUIEditor(ObjectType rootType)
public void setRootType(ObjectType rootType)
ReferenceUIEditorrootType - the root typepublic void setRootSearchType(ObjectType rootSearchType)
ReferenceUIEditorrootSearchType is null, the set root type will be
used.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 changedprotected void registerEventListeners(AbstractUIEditor.CancelButtonContainer cancelButtonContainer)
cancelButtonContainer - wrapped editorpublic Object getValue()
UIEditorgetValue in interface UIEditorgetValue in class AbstractUIEditorpublic boolean isInline()
UIEditorpublic 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 setpublic 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()protected DefaultCollectionEditorModel getModel()
protected void assignedPassedValue(Object initialValue)
initialValue as a editor value.initialValue - editor's current initial valuepublic CollectionEditor createCollectionEditor(EditorListener listener, AdditionalReferenceEditorListener additionalListener)
Copyright © 2017 SAP SE. All Rights Reserved.