* @param loadingIndicator the widget to use as a loading indicator, or null
* to disable
*/
public DataGrid(int pageSize, Resources resources, ProvidesKey<T> keyProvider,
Widget loadingIndicator) {
super(new HeaderPanel(), pageSize, new ResourcesAdapter(resources), keyProvider);
headerPanel = (HeaderPanel) getWidget();
// Inject the stylesheet.
this.style = resources.dataGridStyle();
this.style.ensureInjected();