comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultCollection.java @ 4689:79f11188da21

Add a Collection method to return a string to be displayed in the gui
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 17 Dec 2012 16:10:47 +0100
parents bb9ce9aece70
children
comparison
equal deleted inserted replaced
4688:1e23998aa4db 4689:79f11188da21
295 295
296 @Override 296 @Override
297 public boolean hasItems() { 297 public boolean hasItems() {
298 return items.isEmpty(); 298 return items.isEmpty();
299 } 299 }
300
301 /**
302 * Returns the name of the collection or uuid if no name is set
303 */
304 @Override
305 public String getDisplayName() {
306 if (this.name != null) {
307 return this.name;
308 }
309 return this.uuid;
310 }
300 } 311 }
301 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 312 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org