DataType - The type of the data, which is bound to viewsKeyType - The type of the keys, which allow to uniquely identify already loaded dataViewType - The type of the views, which are used to display dataParamType - The type of parameters, which can be passed when loading datapublic static interface AbstractDataBinder.Listener<DataType,KeyType,ViewType,ParamType>
AbstractDataBinder must implement.| Modifier and Type | Method and Description |
|---|---|
void |
onCanceled(AbstractDataBinder<DataType,KeyType,ViewType,ParamType> dataBinder)
The method, which is invoked, when the data binder has been canceled.
|
void |
onFinished(AbstractDataBinder<DataType,KeyType,ViewType,ParamType> dataBinder,
KeyType key,
DataType data,
ViewType view,
ParamType... params)
The method, which is invoked, when the data binder shows data, which has been loaded
either asynchronously or from cache.
|
boolean |
onLoadData(AbstractDataBinder<DataType,KeyType,ViewType,ParamType> dataBinder,
KeyType key,
ParamType... params)
The method, which is invoked, when the data binder starts to load data asynchronously.
|
boolean onLoadData(AbstractDataBinder<DataType,KeyType,ViewType,ParamType> dataBinder, KeyType key, ParamType... params)
dataBinder - The observed data binder as an instance of the class AbstractDataBinder.
The data binder may not be nullkey - The key of the data, which should be loaded, as an instance of the generic type
KeyType. The key may not be nullparams - An array, which contains optional parameters, as an array of the type ParamType
or an empty array, if no parameters should be usedvoid onFinished(AbstractDataBinder<DataType,KeyType,ViewType,ParamType> dataBinder, KeyType key, DataType data, ViewType view, ParamType... params)
dataBinder - The observed data binder as an instance of the class AbstractDataBinder.
The data binder may not be nullkey - The key of the data, which has be loaded, as an instance of the generic type
KeyType. The key may not be nulldata - The data, which has been loaded, as an instance of the generic type DataType or
null, if no data has been loadedview - The view, which is used to display the data, as an instance of the generic type
ViewType. The view may not be nullparams - An array, which contains optional parameters, as an array of the type ParamType
or an empty array, if no parameters should be usedvoid onCanceled(AbstractDataBinder<DataType,KeyType,ViewType,ParamType> dataBinder)
dataBinder - The observed data binder as an instance of the class AbstractDataBinder.
The data binder may not be null