public class ContextAreaReferenceCollectionUIEditor extends DefaultReferenceCollectionUIEditor
| Modifier and Type | Class and Description |
|---|---|
class |
ContextAreaReferenceCollectionUIEditor.NewReferenceItemActionEventListener |
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv| Modifier and Type | Field and Description |
|---|---|
protected String |
componentShortLabel |
static String |
MAX_ENTRIES |
protected static String |
MAX_ROWS_IN_LIST |
protected static String |
MAX_VISIBLE_ROWS |
protected static String |
MIN_VISIBLE_ROWS |
static String |
NAME |
protected String |
propertyInfo |
protected TypedObject |
rootObject
The object to which we are collecting references.
|
protected Toolbarbutton |
showMoreButton |
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMALLOW_CREATE_PARAM_KEYINITIAL_EDIT_STRING| Constructor and Description |
|---|
ContextAreaReferenceCollectionUIEditor() |
| 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. |
void |
createViewElement(Div div)
Renders a Listbox inside the div with referenced elements.
|
protected String |
getCollapsedCombinedLabel(Collection items,
int maxEntries) |
protected int |
getMaxRowsInList() |
protected int |
getMaxVisibleRowsNumber() |
protected int |
getMinVisibleRowsNumber() |
protected String |
getSingleLabel(Object value) |
void |
setFocus(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
Sets the focus on the given input component which can be the rootEditorComponent or a child of it
|
getModel, getRootSearchType, getRootType, getValue, isInline, setRootSearchType, setRootType, setValuefindMaxAutocompleteSearchResults, 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 MAX_ENTRIES
public static final String NAME
protected String componentShortLabel
protected static final String MIN_VISIBLE_ROWS
protected static final String MAX_VISIBLE_ROWS
protected static final String MAX_ROWS_IN_LIST
protected Toolbarbutton showMoreButton
protected TypedObject rootObject
protected String propertyInfo
public ContextAreaReferenceCollectionUIEditor()
protected String getCollapsedCombinedLabel(Collection items, int maxEntries)
public HtmlBasedComponent createViewComponent(Object initialValue, Map<String,? extends Object> parameters, EditorListener listener)
UIEditorPage page.createViewComponent in interface UIEditorcreateViewComponent in class DefaultReferenceCollectionUIEditorinitialValue - editor's initial valueparameters - parameters passed via configuration for particular editorlistener - the EditorListener that will receive events when the editor's value is changedpublic void createViewElement(Div div)
div - the parent div inside which listbox will be renderedpublic void setFocus(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
UIEditorsetFocus in interface UIEditorsetFocus in class DefaultReferenceCollectionUIEditorrootEditorComponent - 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 int getMinVisibleRowsNumber()
protected int getMaxVisibleRowsNumber()
protected int getMaxRowsInList()
Copyright © 2017 SAP SE. All Rights Reserved.