public interface UIEditor
| Modifier and Type | Field and Description |
|---|---|
static String |
INITIAL_EDIT_STRING |
| 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. |
String |
getEditorType() |
Object |
getValue()
Returns the value held by this editor.
|
boolean |
isEditable()
Returns whether this editor is editable or not
|
boolean |
isInline()
Returns whether this editor is an inline editor or not.
|
boolean |
isOptional() |
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. |
static final String INITIAL_EDIT_STRING
HtmlBasedComponent createViewComponent(Object initialValue, Map<String,? extends Object> parameters, EditorListener listener)
Page 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 changedboolean isInline()
String getEditorType()
void setValue(Object value)
value.
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.value - the value to setObject getValue()
void setEditable(boolean editable)
editable - whether this editor is editable or notboolean isEditable()
void setFocus(HtmlBasedComponent rootEditorComponent,
boolean selectAll)
rootEditorComponent - 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.boolean isOptional()
void setOptional(boolean optional)
Copyright © 2017 SAP SE. All Rights Reserved.