@Override public void onRowCountChange(RowCountChangeEvent event) { if (AbstractPager.this.display != null) { handleRowCountChange(event.getNewRowCount(), event.isNewRowCountExact()); } } });
@Override public HandlerRegistration addRowCountChangeHandler(RowCountChangeEvent.Handler handler) { return view.addHandler(handler, RowCountChangeEvent.getType()); }
@Override public void setRowCount(int count, boolean isExact) { if (count == getRowCount() && isExact == isRowCountExact()) { return; } ensurePendingState().rowCount = count; ensurePendingState().rowCountIsExact = isExact; // Update the cached data. updateCachedData(); // Update the pager. RowCountChangeEvent.fire(display, count, isExact); }
@Override public String toDebugString() { return super.toDebugString() + getNewRowCount(); }
/** * Fires a {@link RowCountChangeEvent} on all registered handlers in the * handler manager. If no such handlers exist, this method will do nothing. * * @param source the source of the handlers * @param rowCount the new rowCount * @param isExact true if rowCount is an exact count */ public static void fire(HasRows source, int rowCount, boolean isExact) { if (TYPE != null) { RowCountChangeEvent event = new RowCountChangeEvent(rowCount, isExact); source.fireEvent(event); } }
public static void setupOnePageList(final AbstractHasData<?> cellTable) { cellTable.addRowCountChangeHandler(new RowCountChangeEvent.Handler() { @Override public void onRowCountChange(RowCountChangeEvent event) { cellTable.setVisibleRange(new Range(0, event.getNewRowCount())); } }); }
/** * Fires a {@link RowCountChangeEvent} on all registered handlers in the * handler manager. If no such handlers exist, this method will do nothing. * * @param source the source of the handlers * @param rowCount the new rowCount * @param isExact true if rowCount is an exact count */ public static void fire(HasRows source, int rowCount, boolean isExact) { if (TYPE != null) { RowCountChangeEvent event = new RowCountChangeEvent(rowCount, isExact); source.fireEvent(event); } }
@Override public void onRowCountChange(RowCountChangeEvent event) { int rowCount = event.getNewRowCount(); boolean isExact = event.isNewRowCountExact(); int pageSize = getVisibleRange().getLength(); showOrHide(nodeView.showMoreElem, isExact && rowCount > pageSize); } });
@Override public String toDebugString() { return super.toDebugString() + getNewRowCount(); }
@Override public HandlerRegistration addRowCountChangeHandler(RowCountChangeEvent.Handler handler) { return view.addHandler(handler, RowCountChangeEvent.getType()); }
@Override public void setRowCount(final int count, final boolean isExact) { rowCount = count; rowCountExact = isExact; // Update the pager. RowCountChangeEvent.fire(this, count, isExact); }
/** * Fires a {@link RowCountChangeEvent} on all registered handlers in the * handler manager. If no such handlers exist, this method will do nothing. * * @param source the source of the handlers * @param rowCount the new rowCount * @param isExact true if rowCount is an exact count */ public static void fire(HasRows source, int rowCount, boolean isExact) { if (TYPE != null) { RowCountChangeEvent event = new RowCountChangeEvent(rowCount, isExact); source.fireEvent(event); } }
@Override public void onRowCountChange(RowCountChangeEvent event) { if (AbstractPager.this.display != null) { handleRowCountChange(event.getNewRowCount(), event.isNewRowCountExact()); } } });
@Override public String toDebugString() { return super.toDebugString() + getNewRowCount(); }
@Override public HandlerRegistration addRowCountChangeHandler(RowCountChangeEvent.Handler handler) { return handlers.addHandler(RowCountChangeEvent.getType(), handler); }
@Override public void setRowCount(int count, boolean isExact) { if (count == getRowCount() && isExact == isRowCountExact()) { return; } ensurePendingState().rowCount = count; ensurePendingState().rowCountIsExact = isExact; // Update the cached data. updateCachedData(); // Update the pager. RowCountChangeEvent.fire(display, count, isExact); }
@Override public void onRowCountChange(RowCountChangeEvent event) { if (AbstractPager.this.display != null) { handleRowCountChange(event.getNewRowCount(), event.isNewRowCountExact()); } } });
public void onRowCountChange( RowCountChangeEvent event ) { moduleView.setPageSize( event.getNewRowCount() ); } });
@Override public HandlerRegistration addRowCountChangeHandler(RowCountChangeEvent.Handler handler) { return view.addHandler(handler, RowCountChangeEvent.getType()); }
@Override public void setRowCount(int count, boolean isExact) { if (count == getRowCount() && isExact == isRowCountExact()) { return; } ensurePendingState().rowCount = count; ensurePendingState().rowCountIsExact = isExact; // Update the cached data. updateCachedData(); // Update the pager. RowCountChangeEvent.fire(display, count, isExact); }