comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelSelectState.java @ 1657:91d038c7aae5

Bugfix: #328 Improved datacage configuration and labels for selected waterlevels. flys-artifacts/trunk@2854 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 28 Sep 2011 14:01:00 +0000
parents d251e5929860
children 804c58c56422
comparison
equal deleted inserted replaced
1656:94732906b094 1657:91d038c7aae5
127 try { 127 try {
128 idx = Integer.parseInt(parts[2]); 128 idx = Integer.parseInt(parts[2]);
129 } 129 }
130 catch (NumberFormatException nfe) { /* do nothing */ } 130 catch (NumberFormatException nfe) { /* do nothing */ }
131 131
132 return new String[] { wqkms[idx].getName() }; 132 String name = wqkms[idx].getName();
133
134 if (name != null && name.indexOf("Q") >= 0) {
135 name = "W(" + name + ")";
136 }
137
138 return new String[] { name };
133 } 139 }
134 140
135 141
136 /** 142 /**
137 * Validates the given String. A valid string for this state requires the 143 * Validates the given String. A valid string for this state requires the

http://dive4elements.wald.intevation.org