diff flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 4660:bb9ce9aece70

Add new method hasItems to Collection class
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 11 Dec 2012 16:24:57 +0100
parents 518d60dfe6bf
children 5025acdb3815
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Dec 11 16:23:29 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Tue Dec 11 16:24:57 2012 +0100
@@ -336,7 +336,7 @@
      * @return true, if the Collection is new.
      */
     public boolean isNew() {
-        return collection.getItemLength() == 0;
+        return collection.hasItems();
     }
 
 

http://dive4elements.wald.intevation.org