Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.java @ 1465:d0bcf5ba7adf
Create the properties dialog content dynamically based on the properties read
from describe collection document.
flys-client/trunk@3505 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 21 Dec 2011 10:53:02 +0000 |
parents | 14ce1c2a9f6c |
children | 3304608baf35 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.java Tue Dec 20 15:32:08 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.java Wed Dec 21 10:53:02 2011 +0000 @@ -40,4 +40,13 @@ public void setProperties(List<Property> properties) { this.properties = properties; } + + public Property getPropertyByName(String name) { + for (int i = 0; i < properties.size(); i++) { + if (properties.get(i).getName().equals(name)) { + return properties.get(i); + } + } + return null; + } }