Revision 1672 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/TableEntryControllerPanel.java
TableEntryControllerPanel.java | ||
---|---|---|
434 | 434 |
Pager pager = (Pager)o; |
435 | 435 |
if(o instanceof Pager && arg instanceof Integer) { |
436 | 436 |
int option = ((Integer)arg).intValue(); |
437 |
if(option == Pager.CHANGE_SELECTED_ROWS ) {
|
|
437 |
if(option == Pager.EVENT_SELECTED_ROWS ) {
|
|
438 | 438 |
int[] selectedRows = pager.getSelectedRows(); |
439 | 439 |
if(selectedRows != null && selectedRows.length > 0) |
440 | 440 |
setSelectedIndex(selectedRows[0]); |
441 | 441 |
} |
442 | 442 |
|
443 |
if(option == Pager.CHANGE_ADD_ENTRY ) {
|
|
443 |
if(option == Pager.EVENT_ADD_ENTRY ) {
|
|
444 | 444 |
addPointToTable(pager.getEntriesCount()); |
445 | 445 |
} |
446 | 446 |
|
447 |
if(option == Pager.CHANGE_REMOVE_ENTRY ) {
|
|
447 |
if(option == Pager.EVENT_REMOVE_ENTRY ) {
|
|
448 | 448 |
setNItems(pager.getEntriesCount()); |
449 | 449 |
int[] selectedRows = pager.getSelectedRows(); |
450 | 450 |
if(selectedRows != null && selectedRows.length >= 1) { |
... | ... | |
452 | 452 |
} |
453 | 453 |
} |
454 | 454 |
|
455 |
if(option == Pager.CHANGE_REMOVE_ALL ) {
|
|
455 |
if(option == Pager.EVENT_REMOVE_ALL ) {
|
|
456 | 456 |
setNItems(0); |
457 | 457 |
} |
458 | 458 |
} |
Also available in: Unified diff