public abstract class AbstractEnumUIEditorNotifier extends AbstractUIEditor implements EnumUIEditor
ENUM and SHORTLIST cockpit editors.
Note: ENUM and SHORTLIST editors is fact that print
editors support additional validation and are able to display some validation messages.AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDivATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMINITIAL_EDIT_STRING| Constructor and Description |
|---|
AbstractEnumUIEditorNotifier() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addObjectToCombo(Object value,
Combobox box)
Adds given value to combobox.
|
protected void |
afterChangeValue(Map<String,? extends Object> parameters,
EditorListener listener)
A method that performs additional validation for printcocpit in terms of data lost.
|
List<? extends Object> |
getAvailableValues() |
CockpitCommentService |
getCockpitCommentService() |
protected Combobox |
getEditorView() |
protected ModelService |
getModelService() |
protected PagePlannerHandler |
getPagePlannerEditorValidator(String qualifier) |
protected int |
getPosition(Object item)
Gets an item position.
|
TypeService |
getTypeService() |
ValueService |
getValueService() |
boolean |
isInline()
Returns whether this editor is an inline editor or not.
|
void |
setAvailableValues(List<? extends Object> availableValues) |
void |
setInline(boolean inline) |
protected void |
setValue(Combobox combo,
Object value)
Sets given value in combobox.
|
protected void |
validateAndFireEvent(EditorListener listener)
Validates and fires a value changed event that notifies about changes.
|
applyReferenceRelatedAttributes, 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, waitcreateViewComponent, getEditorType, getValue, isEditable, isOptional, setEditable, setFocus, setOptional, setValuepublic boolean isInline()
UIEditorpublic void setInline(boolean inline)
public List<? extends Object> getAvailableValues()
getAvailableValues in interface ListUIEditorpublic void setAvailableValues(List<? extends Object> availableValues)
setAvailableValues in interface ListUIEditorprotected void afterChangeValue(Map<String,? extends Object> parameters, EditorListener listener) throws ValueHandlerException, InterruptedException
parameters - editor parameterslistener - editor listener associated with editorValueHandlerExceptionInterruptedExceptionprotected void validateAndFireEvent(EditorListener listener)
listener - editor listener associated with editorprotected void setValue(Combobox combo,
Object value)
combo - given comboboxvalue - given valueprotected int getPosition(Object item)
item - given itemprotected void addObjectToCombo(Object value, Combobox box)
value - given valuebox - given comboboxprotected Combobox getEditorView()
protected ModelService getModelService()
protected PagePlannerHandler getPagePlannerEditorValidator(String qualifier)
public ValueService getValueService()
public TypeService getTypeService()
public CockpitCommentService getCockpitCommentService()
Copyright © 2017 SAP SE. All Rights Reserved.