Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/BunduFixPeriodPanel.java @ 9292:e6958f0e72fa
bundu.bezugswst details
author | gernotbelger |
---|---|
date | Tue, 24 Jul 2018 15:30:10 +0200 |
parents | 7337034eb5d5 |
children |
comparison
equal
deleted
inserted
replaced
9291:913bc7d1d2a8 | 9292:e6958f0e72fa |
---|---|
170 final List<String> errors = new ArrayList<String>(); | 170 final List<String> errors = new ArrayList<String>(); |
171 errors.addAll(ValidationHelper.checkForEmpty(this.inputItem, this.MSG)); | 171 errors.addAll(ValidationHelper.checkForEmpty(this.inputItem, this.MSG)); |
172 try { | 172 try { |
173 final int year = Integer.valueOf(this.inputItem.getValueAsString()); | 173 final int year = Integer.valueOf(this.inputItem.getValueAsString()); |
174 if (year < 1000 || year > 9999) { | 174 if (year < 1000 || year > 9999) { |
175 errors.add(this.MSG.wrongFormat() + "(" + this.MSG.common_input_hint_year() + ")"); | 175 final StringBuilder builder = new StringBuilder(); |
176 builder.append(this.MSG.wrongFormat())// | |
177 .append(" (") // | |
178 .append(this.MSG.common_input_hint_year())// | |
179 .append(")");// | |
180 errors.add(builder.toString()); | |
176 } | 181 } |
177 } | 182 } |
178 catch (final NumberFormatException e) { | 183 catch (final NumberFormatException e) { |
179 errors.add(this.MSG.error_invalid_integer()); | 184 errors.add(this.MSG.error_invalid_integer()); |
180 } | 185 } |