/** * Refresh all of the displays listening to this adapter. * * <p> * Use {@link #refresh()} to push mutations to the underlying data items * contained within the list. The data provider cannot detect changes to data * objects within the list, so you must call this method if you modify items. * * <p> * This is a shortcut for calling {@link List#set(int, Object)} on every item * that you modify, but note that calling {@link List#set(int, Object)} * performs better because the data provider knows which rows were modified * and can push only the modified rows the displays. */ public void refresh() { updateRowData(0, listWrapper); }
@Override protected void onRangeChanged(HasData<T> display) { int size = listWrapper.size(); if (size > 0) { // Do not push data if the data set is empty. updateRowData(display, 0, listWrapper); } } }
/** * Refresh all of the displays listening to this adapter. * * <p> * Use {@link #refresh()} to push mutations to the underlying data items * contained within the list. The data provider cannot detect changes to data * objects within the list, so you must call this method if you modify items. * * <p> * This is a shortcut for calling {@link List#set(int, Object)} on every item * that you modify, but note that calling {@link List#set(int, Object)} * performs better because the data provider knows which rows were modified * and can push only the modified rows the displays. */ public void refresh() { updateRowData(0, listWrapper); }
/** * Refresh all of the displays listening to this adapter. * * <p> * Use {@link #refresh()} to push mutations to the underlying data items * contained within the list. The data provider cannot detect changes to data * objects within the list, so you must call this method if you modify items. * * <p> * This is a shortcut for calling {@link List#set(int, Object)} on every item * that you modify, but note that calling {@link List#set(int, Object)} * performs better because the data provider knows which rows were modified * and can push only the modified rows the displays. */ public void refresh() { updateRowData(0, listWrapper); }
@Override protected void onRangeChanged(HasData<T> display) { int size = listWrapper.size(); if (size > 0) { // Do not push data if the data set is empty. updateRowData(display, 0, listWrapper); } } }
@Override protected void onRangeChanged(HasData<T> display) { int size = listWrapper.size(); if (size > 0) { // Do not push data if the data set is empty. updateRowData(display, 0, listWrapper); } } }