org.apache.click.dataprovider
Interface DataProvider<T>
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- PagingDataProvider<T>
public interface DataProvider<T>
- extends Serializable
An interface to provide data on demand to controls.
Example usage:
public class MyPage extends Page {
private Table table = new Table("table");
public MyPage() {
...
table.setDataProvider(new DataProvider() {
// Return a list of customers
public List getData() {
return getCustomerService().getCustomers();
}
});
}
}
Method Summary |
Iterable<T> |
getData()
Return the iterable collection of data items supplied by the data provider. |
getData
Iterable<T> getData()
- Return the iterable collection of data items supplied by the data provider.
- Returns:
- the iterable collection of data items supplied by the data provider.