*/
public PagingOptions(PagingScrollTable<?> table, PagingOptionsImages images) {
this.table = table;
// Create the main widget
HorizontalPanel hPanel = new HorizontalPanel();
initWidget(hPanel);
hPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
setStyleName(DEFAULT_STYLENAME);
// Create the paging image buttons
createPageButtons(images);
// Create the current page box
createCurPageBox();
// Create the page count label
numPagesLabel = new HTML();
// Create the loading image
loadingImage = new Image("scrollTableLoading.gif");
loadingImage.setVisible(false);
// Create the error label
errorLabel = new HTML();
errorLabel.setStylePrimaryName("errorMessage");
// Add the widgets to the panel
hPanel.add(createSpacer());
hPanel.add(firstImage);
hPanel.add(createSpacer());
hPanel.add(prevImage);
hPanel.add(createSpacer());
hPanel.add(curPageBox);
hPanel.add(createSpacer());
hPanel.add(numPagesLabel);
hPanel.add(createSpacer());
hPanel.add(nextImage);
hPanel.add(createSpacer());
hPanel.add(lastImage);
hPanel.add(createSpacer());
hPanel.add(loadingImage);
hPanel.add(errorLabel);
// Add a listener to the table
RowPagingListener rowPagingListener = new RowPagingListener() {
public void onNumPagesChanges(int numPages) {
if (numPages < 0) {