public class DefaultSelectUIEditor extends AbstractUIEditor implements ListUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv| Modifier and Type | Field and Description |
|---|---|
static String |
PARAMETER_SORT_ATTRIBUTE |
static String |
PARAMETER_SORT_DIRECTION |
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMINITIAL_EDIT_STRING| Constructor and Description |
|---|
DefaultSelectUIEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addObjectToCombo(Object value,
Combobox box) |
HtmlBasedComponent |
createViewComponent(Object initialValue,
Map<String,? extends Object> parameters,
EditorListener listener)
Creates a new editor component and attaches it to the specified
Page page. |
List<? extends Object> |
getAvailableValues() |
String |
getEditorType() |
protected Combobox |
getEditorView() |
protected int |
getPosition(Object item) |
boolean |
isInline()
Returns whether this editor is an inline editor or not.
|
protected void |
onSavingEvent(EditorListener listener) |
protected void |
processEditorBehaviourParameters(Map<String,? extends Object> parameters) |
void |
setAvailableValues(List<? extends Object> availableValues) |
void |
setFocus(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
Sets the focus on the given input component which can be the rootEditorComponent or a child of it
|
protected void |
setValue(Combobox combo,
Object value) |
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, getValue, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setOptional, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValue, isEditable, isOptional, setEditable, setOptional, setValuepublic static final String PARAMETER_SORT_ATTRIBUTE
public static final String PARAMETER_SORT_DIRECTION
protected void addObjectToCombo(Object value, Combobox box)
protected int getPosition(Object item)
protected void setValue(Combobox combo,
Object value)
public HtmlBasedComponent createViewComponent(Object initialValue, Map<String,? extends Object> parameters, EditorListener listener)
UIEditorPage page.createViewComponent in interface UIEditorinitialValue - 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 onSavingEvent(EditorListener listener)
protected void processEditorBehaviourParameters(Map<String,? extends Object> parameters)
public boolean isInline()
UIEditorpublic String getEditorType()
getEditorType in interface UIEditorpublic List<? extends Object> getAvailableValues()
getAvailableValues in interface ListUIEditorpublic void setAvailableValues(List<? extends Object> availableValues)
setAvailableValues in interface ListUIEditorpublic 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.protected Combobox getEditorView()
Copyright © 2017 SAP SE. All Rights Reserved.