D - - the type of the editor dataM - - the type of the modelpublic interface DataHandler<D extends AbstractEditorData,M extends ItemModel>
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(M model)
Adds a new reference to the data handler.
|
void |
deleteReference(D data)
Deletes a reference from the data handler.
|
java.lang.Class<?> |
getAttributeType(D data,
java.lang.String attributeName)
Extracts an attribute class from a specific editor data object.
|
java.lang.Object |
getAttributeValue(D data,
java.lang.String attributeName)
Extracts an attribute value from a specific editor data object.
|
java.lang.String |
getTypeCode()
Returns the type code for the model.
|
java.util.List<M> |
getValue()
Returns the current value.
|
<any> |
loadData(java.util.List<M> initialValue,
SearchResultData searchResult,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Initializes the data handler with new data.
|
void |
moveReference(D data,
int index)
Move the reference from it's current location to the new index location.
|
void |
setAttributeValue(D data,
java.lang.String attributeName,
java.lang.Object value)
Sets an attribute value to a specific data object.
|
java.lang.String getTypeCode()
<any> loadData(java.util.List<M> initialValue, SearchResultData searchResult, java.util.Map<java.lang.String,java.lang.Object> parameters)
initialValue - - the initial valuesearchResult - - the search resultparameters - - the data handler parametersjava.util.List<M> getValue()
java.lang.Object getAttributeValue(D data, java.lang.String attributeName)
data - - the editor data object.attributeName - - the attribute namejava.lang.Class<?> getAttributeType(D data, java.lang.String attributeName)
data - - the editor data object.attributeName - - the attribute namevoid moveReference(D data, int index)
data - - the data objectindex - - the index to be inserted atvoid setAttributeValue(D data, java.lang.String attributeName, java.lang.Object value)
data - - the data object.attributeName - - the attribute namevalue - - new attribute valuevoid addReference(M model)
model - - the model objectvoid deleteReference(D data)
data - - the editor data objectCopyright © 2017 SAP SE. All Rights Reserved.