public abstract class AbstractUIEditor extends Object implements UIEditor
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractUIEditor.CancelButtonContainer |
protected static interface |
AbstractUIEditor.CancelListener |
protected class |
AbstractUIEditor.ErrorDiv |
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_QUALIFIER_PARAM |
static String |
CANCEL_BTN |
static String |
EVENT_SOURCE
Deprecated.
|
protected boolean |
inEditMode |
protected Object |
initialEditValue |
protected String |
initialInputString |
static String |
PROPERTY_DESCRIPTOR_PARAM |
static String |
SEARCH_MODE_PARAM |
INITIAL_EDIT_STRING| Constructor and Description |
|---|
AbstractUIEditor() |
| Modifier and Type | Method and Description |
|---|---|
static CreateContext |
applyReferenceRelatedAttributes(ReferenceUIEditor referenceEditor,
PropertyDescriptor propertyDescriptor,
Map<String,? extends Object> parameters,
TypedObject currentObject,
Object currentValue,
String isoCode,
UICockpitArea cockpitArea,
UISession session)
Deprecated.
|
static void |
createEditor(TypedObject item,
PropertyDescriptor propDescr,
HtmlBasedComponent parent,
ObjectValueContainer valueContainer,
boolean autoPersist)
Deprecated.
|
static void |
createEditor(TypedObject item,
PropertyDescriptor propDescr,
HtmlBasedComponent parent,
ObjectValueContainer valueContainer,
boolean autoPersist,
String editorCode)
Deprecated.
|
static void |
createEditor(TypedObject item,
PropertyDescriptor propDescr,
HtmlBasedComponent parent,
ObjectValueContainer valueContainer,
boolean autoPersist,
String editorCode,
Map<String,? extends Object> params)
Deprecated.
|
static void |
createEditor(TypedObject item,
PropertyDescriptor propDescr,
HtmlBasedComponent parent,
ObjectValueContainer valueContainer,
boolean autoPersist,
String editorCode,
Map<String,? extends Object> params,
boolean focus)
Deprecated.
|
static <T> List<? extends T> |
filterValues(PropertyDescriptor propDescr,
List<? extends T> values)
Deprecated.
|
protected void |
fireValueChanged(EditorListener listener) |
static SearchType |
getRootSearchType(PropertyDescriptor propDescr,
UISession session)
Deprecated.
|
static UIEditor |
getUIEditor(PropertyDescriptor propDescr,
String editorCode)
Deprecated.
|
Object |
getValue()
Returns the value held by this editor.
|
boolean |
isEditable()
Returns whether this editor is editable or not
|
static boolean |
isEditable(PropertyDescriptor propDescr,
boolean creationMode)
Deprecated.
Use
UIAccessRightService's isWritable methods instead. |
boolean |
isOptional() |
protected boolean |
isSearchMode(Map<String,? extends Object> parameters) |
protected void |
parseInitialInputString(Map<String,? extends Object> parameters) |
static Set<ObjectType> |
parseTemplateCodes(String input,
TypeService typeService)
Deprecated.
|
static void |
persistValues(TypedObject item,
ObjectValueContainer valueContainer)
Deprecated.
|
static void |
persistValues(TypedObject item,
ObjectValueContainer valueContainer,
Map<String,? extends Object> params)
Deprecated.
|
void |
setEditable(boolean editable)
Defines whether this editor shall be editable.
|
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 |
setOptional(boolean optional) |
void |
setValue(Object value)
Sets the value of this editor to
value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateViewComponent, getEditorType, isInline@Deprecated public static final String EVENT_SOURCE
public static final String CANCEL_BTN
public static final String ATTRIBUTE_QUALIFIER_PARAM
public static final String PROPERTY_DESCRIPTOR_PARAM
public static final String SEARCH_MODE_PARAM
protected Object initialEditValue
protected boolean inEditMode
protected String initialInputString
@Deprecated public static void createEditor(TypedObject item, PropertyDescriptor propDescr, HtmlBasedComponent parent, ObjectValueContainer valueContainer, boolean autoPersist) throws IllegalArgumentException
IllegalArgumentException@Deprecated public static void createEditor(TypedObject item, PropertyDescriptor propDescr, HtmlBasedComponent parent, ObjectValueContainer valueContainer, boolean autoPersist, String editorCode) throws IllegalArgumentException
IllegalArgumentException@Deprecated public static void createEditor(TypedObject item, PropertyDescriptor propDescr, HtmlBasedComponent parent, ObjectValueContainer valueContainer, boolean autoPersist, String editorCode, Map<String,? extends Object> params) throws IllegalArgumentException
IllegalArgumentException@Deprecated public static void createEditor(TypedObject item, PropertyDescriptor propDescr, HtmlBasedComponent parent, ObjectValueContainer valueContainer, boolean autoPersist, String editorCode, Map<String,? extends Object> params, boolean focus) throws IllegalArgumentException
IllegalArgumentException@Deprecated public static CreateContext applyReferenceRelatedAttributes(ReferenceUIEditor referenceEditor, PropertyDescriptor propertyDescriptor, Map<String,? extends Object> parameters, TypedObject currentObject, Object currentValue, String isoCode, UICockpitArea cockpitArea, UISession session)
@Deprecated public static <T> List<? extends T> filterValues(PropertyDescriptor propDescr, List<? extends T> values)
@Deprecated public static SearchType getRootSearchType(PropertyDescriptor propDescr, UISession session)
@Deprecated public static UIEditor getUIEditor(PropertyDescriptor propDescr, String editorCode) throws IllegalArgumentException
UIEditor.
Note: If no editor variant is found with the code editorCode, the default editor for the
specified property is returned. This method was moved to
EditorHelper.getUIEditor(PropertyDescriptor, String)propDescr - the property descriptor for which a corresponding editor is to be retrievededitorCode - the editor variant to be usedUIEditor instance for the specified property and - if available - for the specified editor
variantIllegalArgumentException - if the property descriptor is invalid@Deprecated public static boolean isEditable(PropertyDescriptor propDescr, boolean creationMode)
UIAccessRightService's isWritable methods instead.propDescr - the property descriptortrue if the property is editable, false otherwise@Deprecated public static final Set<ObjectType> parseTemplateCodes(String input, TypeService typeService)
@Deprecated public static void persistValues(TypedObject item, ObjectValueContainer valueContainer) throws ValueHandlerException
ValueHandlerException@Deprecated public static void persistValues(TypedObject item, ObjectValueContainer valueContainer, Map<String,? extends Object> params) throws ValueHandlerException
valueContainer object
item - current typed object itemvalueContainer - current value containerparams - creation parametersValueHandlerExceptionprotected void fireValueChanged(EditorListener listener)
public Object getValue()
UIEditorpublic boolean isEditable()
UIEditorisEditable in interface UIEditorpublic boolean isOptional()
isOptional in interface UIEditorprotected void parseInitialInputString(Map<String,? extends Object> parameters)
public void setEditable(boolean editable)
UIEditorsetEditable in interface UIEditoreditable - whether this editor is editable or notpublic void setFocus(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
UIEditorpublic void setOptional(boolean optional)
setOptional in interface 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.Copyright © 2017 SAP SE. All Rights Reserved.