/** * Create the default loading indicator using the loading image in the * specified {@link Resources}. * * @param resources the resources containing the loading image * @return a widget loading indicator */ private static Widget createDefaultLoadingIndicator(Resources resources) { ImageResource loadingImg = resources.dataGridLoading(); if (loadingImg == null) { return null; } Image image = new Image(loadingImg); image.getElement().getStyle().setMarginTop(30.0, Unit.PX); return image; }
this.style = resources.dataGridStyle(); this.style.ensureInjected();
this.style = resources.dataGridStyle(); this.style.ensureInjected();
/** * Create the default loading indicator using the loading image in the * specified {@link Resources}. * * @param resources the resources containing the loading image * @return a widget loading indicator */ private static Widget createDefaultLoadingIndicator(Resources resources) { ImageResource loadingImg = resources.dataGridLoading(); if (loadingImg == null) { return null; } Image image = new Image(loadingImg); image.getElement().getStyle().setMarginTop(30.0, Unit.PX); return image; }
@Override public ImageResource dataGridSortDescending() { return BASE_RESOURCES.dataGridSortDescending(); }
@Override public ImageResource dataGridSortAscending() { return BASE_RESOURCES.dataGridSortDescending(); }
@Override public ImageResource sortAscending() { return resources.dataGridSortAscending(); }
@Override public ImageResource sortDescending() { return resources.dataGridSortDescending(); }
@Override public ImageResource dataGridLoading() { return BASE_RESOURCES.dataGridLoading(); }
@Override public ImageResource dataGridSortDescending() { return resources.dataGridSortDescending(); }
@Override public ImageResource dataGridSortDescending() { return resources.dataGridSortDescending(); }
public ResourcesAdapter(DataGrid.Resources resources) { this.resources = resources; this.style = new StyleAdapter(resources.dataGridStyle()); }
public ResourcesAdapter(DataGrid.Resources resources) { this.resources = resources; this.style = new StyleAdapter(resources.dataGridStyle()); }
@Override public ImageResource sortDescending() { return resources.dataGridSortDescending(); }
@Override public ImageResource dataGridLoading() { return resources.dataGridLoading(); }
@Override public ImageResource dataGridSortAscending() { return resources.dataGridSortAscending(); }
@Override public ImageResource dataGridSortAscending() { return resources.dataGridSortAscending(); }
@Override public ImageResource dataGridLoading() { return resources.dataGridLoading(); }
protected static Widget createDefaultLoadingIndicator(Resources resources) { ImageResource loadingImg = resources.dataGridLoading(); Image image; if (loadingImg == null) { image = new Image(); } else { image = new Image(loadingImg); } image.getElement().getStyle().setMarginTop(30.0, Unit.PX); return image; } }
@Override public ImageResource sortAscending() { return resources.dataGridSortAscending(); }