Ejemplo n.º 1
0
 /** @return "y" in "Showing x to y of z" */
 public long getTo() {
   if (table.getTotalRowCount() == 0) {
     return 0;
   } else {
     long count = getFrom() + table.getCurrentPageItemCount() - 1;
     return count;
   }
 }
Ejemplo n.º 2
0
 /** @return "x" in "Showing x to y of z" */
 public long getFrom() {
   if (table.getTotalRowCount() == 0) {
     return 0;
   }
   return table.getCurrentPage() * table.getRowsPerPage() + 1;
 }
Ejemplo n.º 3
0
 /** @return "z" in "Showing x to y of z" */
 public String getOf() {
   long total = table.getTotalRowCount();
   return total != -1 ? "" + total : getString("unknown", null, "unknown");
 }