public class SimpleReferenceUIEditor 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 |
|---|
SimpleReferenceUIEditor() |
| Modifier and Type | Method and Description |
|---|---|
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 void |
fillComboBox(Combobox combobox,
TypedObject selected) |
protected List<TypedObject> |
getAvailableValues() |
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.
|
protected TypeService |
getTypeService() |
boolean |
isInline()
Returns whether this editor is an inline editor or not.
|
protected void |
parseParams(Map<String,? extends Object> parameters) |
void |
setAvailableValues(List<TypedObject> availableValues) |
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.
|
protected boolean |
updateAvailableValues()
Deprecated.
use
updateAvailableValues(Map) instead. |
protected boolean |
updateAvailableValues(Map<String,? extends Object> parameters) |
findMaxAutocompleteSearchResults, getEditorType, isAllowCreate, setAllowCreateapplyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, getValue, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setFocus, setOptional, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValue, isEditable, isOptional, setEditable, setFocus, setOptional, setValue@Deprecated protected boolean updateAvailableValues()
updateAvailableValues(Map) instead. protected boolean updateAvailableValues(Map<String,? extends Object> parameters)
public void setAvailableValues(List<TypedObject> availableValues)
protected List<TypedObject> getAvailableValues()
protected void fillComboBox(Combobox combobox,
TypedObject selected)
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 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 void setRootSearchType(ObjectType rootSearchType)
ReferenceUIEditorrootSearchType is null, the set root type will be
used.public void setRootType(ObjectType rootType)
ReferenceUIEditorrootType - the root typepublic boolean isInline()
UIEditorprotected TypeService getTypeService()
Copyright © 2017 SAP SE. All Rights Reserved.