public class ListViewCollectionEditor extends AbstractReferenceUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv| Modifier and Type | Field and Description |
|---|---|
protected static String |
LIST_VIEW_CONFIG_CODE |
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMALLOW_CREATE_PARAM_KEYINITIAL_EDIT_STRING| Constructor and Description |
|---|
ListViewCollectionEditor() |
ListViewCollectionEditor(ObjectType rootType) |
| Modifier and Type | Method and Description |
|---|---|
protected ListSectionComponent |
createViewComponent(ListSectionModel model) |
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 ListSectionModel |
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.
|
boolean |
isInline()
Returns whether this editor is an inline editor or not.
|
void |
setAllowCreate(Boolean allowCreate)
Sets the flag that indicates whether reference selector can create new item.
|
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.
|
findMaxAutocompleteSearchResults, getEditorType, isAllowCreateapplyReferenceRelatedAttributes, 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, setValueprotected static final String LIST_VIEW_CONFIG_CODE
public ListViewCollectionEditor()
public ListViewCollectionEditor(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 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 ListSectionComponent createViewComponent(ListSectionModel model)
public void setAllowCreate(Boolean allowCreate)
ReferenceUIEditorsetAllowCreate in interface ReferenceUIEditorsetAllowCreate in class AbstractReferenceUIEditorpublic void setRootSearchType(ObjectType rootSearchType)
ReferenceUIEditorrootSearchType is null, the set root type will be
used.public void setRootType(ObjectType rootType)
ReferenceUIEditorrootType - the root typeprotected ListSectionModel getModel()
public boolean isInline()
UIEditorCopyright © 2017 SAP SE. All Rights Reserved.