public class DefaultSimpleReferenceUIEditor extends AbstractReferenceUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOCOMPLETION_SEARCHTYPE |
static String |
DISABLE_ON_BLUR_PARAMETER |
protected DefaultSimpleReferenceSelectorModel |
model |
static String |
PREDEFINED_PROPERTY_VALUES |
protected DefaultSimpleReferenceSelectorController |
selectorController |
protected SimpleReferenceSelector |
simpleSelector |
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMALLOW_CREATE_PARAM_KEYINITIAL_EDIT_STRING| Constructor and Description |
|---|
DefaultSimpleReferenceUIEditor() |
DefaultSimpleReferenceUIEditor(ObjectType rootType) |
| 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. |
DefaultSimpleReferenceSelectorModel |
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.
|
protected TypeService |
getTypeService() |
Object |
getValue()
Returns the value held by this editor.
|
boolean |
isInline()
Returns whether this editor is an inline editor or not.
|
protected void |
parseInitialParameters(Map<String,? extends Object> parameters) |
void |
setAutocompletionSearchType(ObjectType autocompletionSearchType) |
void |
setFocus(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
Sets the focus on the given input component which can be the rootEditorComponent or a child of it
|
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, setOptionalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEditable, isOptional, setEditable, setOptionalpublic static final String AUTOCOMPLETION_SEARCHTYPE
public static final String PREDEFINED_PROPERTY_VALUES
public static final String DISABLE_ON_BLUR_PARAMETER
protected DefaultSimpleReferenceSelectorModel model
protected SimpleReferenceSelector simpleSelector
protected DefaultSimpleReferenceSelectorController selectorController
public DefaultSimpleReferenceUIEditor()
public DefaultSimpleReferenceUIEditor(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 void setAutocompletionSearchType(ObjectType autocompletionSearchType)
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 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 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 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 DefaultSimpleReferenceSelectorModel getModel()
protected void parseInitialParameters(Map<String,? extends Object> parameters)
protected TypeService getTypeService()
Copyright © 2017 SAP SE. All Rights Reserved.