T - the type of data that the ListObjectDataProvider created by this builder will deliverpublic final class ListDataProviderBuilder<T>
extends java.lang.Object
ListDataProvider.| Modifier and Type | Method and Description |
|---|---|
ListDataProviderBuilder |
addEntryHandler(WriteBackHandler<T> handler)
Provide a handler that will be called when a new entry is added to the
ObservableList instance passed via the
resultList method by
means of a local call (i.e. |
ListDataProvider |
build()
Construct the ListDataProvider that will provide the data.
|
static <T> ListDataProviderBuilder |
create()
Creates the initial builder.
|
ListDataProviderBuilder |
dataReader(DataReader<T> dataReader)
Provides the
DataReader that contains the data |
ListDataProviderBuilder |
resultList(javafx.collections.ObservableList<T> result)
Pass an ObservableList that should be filled with the retrieved values.
|
ListDataProviderBuilder |
writeBackHandler(WriteBackHandler<T> handler)
Provide a handler that will be called when an entry of the retrieved data is changed
locally.
|
public static <T> ListDataProviderBuilder create()
T - the type of the data that is expected to be returnedpublic ListDataProviderBuilder dataReader(DataReader<T> dataReader)
DataReader that contains the datadataReader - the DataReader instance that contains the datapublic ListDataProviderBuilder resultList(javafx.collections.ObservableList<T> result)
result - the ObservableList that we want to filled with the retrieved valuespublic ListDataProviderBuilder writeBackHandler(WriteBackHandler<T> handler)
handler - the WriteBackHandler instancepublic ListDataProviderBuilder addEntryHandler(WriteBackHandler<T> handler)
resultList method by
means of a local call (i.e. not because new external data is available).handler - the WriteBackHandler instancepublic ListDataProvider build()
ListDataProvider for information on how to retrieve the data.ListDataProvider