}
}, ClickEvent.getType());
Tooltip lastPageTooltip = new Tooltip( GoogleDisplayerConstants.INSTANCE.googleTableDisplayer_gotoLastPage() );
lastPageTooltip.add(lastPageIcon);
Label totalPages = null;
if ( showTotalPagesHint ) {
totalPages = new Label(
GoogleDisplayerConstants.INSTANCE.googleTableDisplayer_pages(
Integer.toString( getLeftMostPageNumber() ),
Integer.toString( getRightMostPageNumber() ),
Integer.toString( numberOfPages ) )
);
}
Label totalRows = null;
if ( numberOfRows == 0) {
totalRows = new Label( GoogleDisplayerConstants.INSTANCE.googleTableDisplayer_noData() );
} else if ( showTotalRowsHint ) {
int currentRowsShown = currentPage * pageSize > numberOfRows ? numberOfRows : currentPage * pageSize;
totalRows = new Label(
GoogleDisplayerConstants.INSTANCE.googleTableDisplayer_rows(
Integer.toString( ( ( currentPage - 1 ) * pageSize) + 1 ),
Integer.toString( currentRowsShown ),
Integer.toString( numberOfRows ) )
);