use of com.vaadin.server.communication.data.RpcDataProviderExtension in project cuba by cuba-platform.
the class ComponentGridDecorator method refresh.
/**
* Refreshes the grid preserving its current cell focus.
*
* @return the decorator for method chaining
*/
public ComponentGridDecorator<T> refresh() {
focusPreserveExtension.saveFocus();
// https://github.com/viritin/viritin/blob/viritin-1.44/src/main/java/org/vaadin/viritin/grid/MGrid.java#L218
for (Extension extension : grid.getExtensions()) {
if (extension instanceof RpcDataProviderExtension) {
((RpcDataProviderExtension) extension).refreshCache();
break;
}
}
focusPreserveExtension.restoreFocus();
return this;
}
Aggregations