Revision 3646552f src/gr/grnet/pithos/web/client/FileList.java
b/src/gr/grnet/pithos/web/client/FileList.java | ||
---|---|---|
44 | 44 |
import java.util.Comparator; |
45 | 45 |
import java.util.Iterator; |
46 | 46 |
import java.util.List; |
47 |
import java.util.Set; |
|
47 | 48 |
|
48 | 49 |
import com.google.gwt.cell.client.Cell.Context; |
49 | 50 |
import com.google.gwt.cell.client.ImageResourceCell; |
... | ... | |
665 | 666 |
else if (callback != null) |
666 | 667 |
callback.execute(); |
667 | 668 |
} |
669 |
|
|
670 |
public void selectByUrl(List<String> selectedUrls) { |
|
671 |
Set<File> previous = selectionModel.getSelectedSet(); |
|
672 |
for (File f : previous) |
|
673 |
selectionModel.setSelected(f, false); |
|
674 |
|
|
675 |
int i = 0; |
|
676 |
for (File f : files) { |
|
677 |
if (selectedUrls.contains(app.getApiPath() + f.getOwner() + f.getUri())) { |
|
678 |
selectionModel.setSelected(f, true); |
|
679 |
celltable.getRowElement(i).scrollIntoView(); |
|
680 |
} |
|
681 |
i++; |
|
682 |
} |
|
683 |
} |
|
668 | 684 |
} |
Also available in: Unified diff