Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 4184:03de5c424f95
Fix warnings and minor TODOs in flys-client.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 19 Oct 2012 09:29:57 +0200 |
parents | a9bafa5445f9 |
children | 7f86ab48284c |
comparison
equal
deleted
inserted
replaced
4183:1755a1bfe5ce | 4184:03de5c424f95 |
---|---|
2 | 2 |
3 import com.google.gwt.core.client.GWT; | 3 import com.google.gwt.core.client.GWT; |
4 import com.google.gwt.i18n.client.DateTimeFormat; | 4 import com.google.gwt.i18n.client.DateTimeFormat; |
5 import com.google.gwt.user.client.Timer; | 5 import com.google.gwt.user.client.Timer; |
6 import com.google.gwt.user.client.rpc.AsyncCallback; | 6 import com.google.gwt.user.client.rpc.AsyncCallback; |
7 | |
7 import com.smartgwt.client.types.Alignment; | 8 import com.smartgwt.client.types.Alignment; |
8 import com.smartgwt.client.types.Autofit; | 9 import com.smartgwt.client.types.Autofit; |
9 import com.smartgwt.client.types.ListGridEditEvent; | 10 import com.smartgwt.client.types.ListGridEditEvent; |
10 import com.smartgwt.client.types.ListGridFieldType; | 11 import com.smartgwt.client.types.ListGridFieldType; |
11 import com.smartgwt.client.types.Overflow; | 12 import com.smartgwt.client.types.Overflow; |
655 * Filter for the user collections. | 656 * Filter for the user collections. |
656 * | 657 * |
657 * @param search String to search for in collection names. | 658 * @param search String to search for in collection names. |
658 */ | 659 */ |
659 protected void filterCollections(String search) { | 660 protected void filterCollections(String search) { |
660 int j = 0; | |
661 | |
662 // Clear the collection list. | 661 // Clear the collection list. |
663 filteredCollections.clear(); | 662 filteredCollections.clear(); |
664 | 663 |
665 // Filter the list. | 664 // Filter the list. |
666 for (int i = 0; i < collections.size(); i++) { | 665 for (int i = 0; i < collections.size(); i++) { |
678 name = name.toLowerCase(); | 677 name = name.toLowerCase(); |
679 // Add a collection to the filtered list if the search string | 678 // Add a collection to the filtered list if the search string |
680 // matches. | 679 // matches. |
681 if (name.contains(search.toLowerCase())) { | 680 if (name.contains(search.toLowerCase())) { |
682 filteredCollections.add(collections.get(i)); | 681 filteredCollections.add(collections.get(i)); |
683 j++; | |
684 } | 682 } |
685 } | 683 } |
686 updateGrid(); | 684 updateGrid(); |
687 } | 685 } |
688 | 686 |