Revision 1801 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.swing/org.gvsig.raster.swing.impl/src/main/java/org/gvsig/raster/swing/impl/pagedtable/Pager.java
Pager.java | ||
---|---|---|
212 | 212 |
return false; |
213 | 213 |
} |
214 | 214 |
|
215 |
/** |
|
216 |
* Gets the number of entries in this pager |
|
217 |
* @return |
|
218 |
*/ |
|
215 | 219 |
public int getEntriesCount() { |
216 | 220 |
return entries.size(); |
217 | 221 |
} |
218 | 222 |
|
223 |
/** |
|
224 |
* Gets the number of row from the row in the current page |
|
225 |
* @param pageRow |
|
226 |
* @return |
|
227 |
*/ |
|
228 |
public int getRowFromPageRow(int pageRow) { |
|
229 |
return getSelectedPageNumber() * getEntriesPerPage() + pageRow; |
|
230 |
} |
|
231 |
|
|
219 | 232 |
public Object[] getLastEntry() { |
220 | 233 |
return (Object[])entries.get(entries.size() - 1); |
221 | 234 |
} |
Also available in: Unified diff