Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 889:2c9c3448e499
Fixed some minor problems and strings in projectlist.
(Issue285)
flys-client/trunk@2729 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 14 Sep 2011 09:10:58 +0000 |
parents | 6a27949c7022 |
children | 9acbd3f98262 |
comparison
equal
deleted
inserted
replaced
888:d6b88f8f88dd | 889:2c9c3448e499 |
---|---|
570 * | 570 * |
571 * @param c Collections to set to the data source. | 571 * @param c Collections to set to the data source. |
572 */ | 572 */ |
573 protected void updateGridDataSource (Collection[] c) { | 573 protected void updateGridDataSource (Collection[] c) { |
574 collections.clear(); | 574 collections.clear(); |
575 if(c == null) { | |
576 clearGrid(); | |
577 return; | |
578 } | |
575 for (Collection coll : c) { | 579 for (Collection coll : c) { |
576 this.collections.add(coll); | 580 this.collections.add(coll); |
577 } | 581 } |
578 filterCollections(""); | 582 filterCollections(""); |
579 } | 583 } |
617 } | 621 } |
618 else { | 622 else { |
619 name = collections.get(i).getName(); | 623 name = collections.get(i).getName(); |
620 } | 624 } |
621 | 625 |
626 name = name.toLowerCase(); | |
622 // Add a collection to the filtered list if the search string | 627 // Add a collection to the filtered list if the search string |
623 // matches. | 628 // matches. |
624 if (name.contains(search)) { | 629 if (name.contains(search.toLowerCase())) { |
625 filteredCollections.add(collections.get(i)); | 630 filteredCollections.add(collections.get(i)); |
626 j++; | 631 j++; |
627 } | 632 } |
628 } | 633 } |
629 updateGrid(); | 634 updateGrid(); |
821 String name = cloneCollection.getName(); | 826 String name = cloneCollection.getName(); |
822 if(name == null || name.equals("")) { | 827 if(name == null || name.equals("")) { |
823 name = cloneCollection.identifier(); | 828 name = cloneCollection.identifier(); |
824 } | 829 } |
825 | 830 |
826 newColl.setName("(" + messages.copy_of() + ")" + name); | 831 newColl.setName(messages.copy_of() + ": " + name); |
827 | 832 |
828 updateCollectionName(newColl); | 833 updateCollectionName(newColl); |
829 if(cloneCollection.getTTL() == 0) { | 834 if(cloneCollection.getTTL() == 0) { |
830 newColl.setTTL(0); | 835 newColl.setTTL(0); |
831 updateCollectionTTL(newColl); | 836 updateCollectionTTL(newColl); |