comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java @ 9243:da0bdbcd6f09

salix.supraRegional+Regional results
author gernotbelger
date Wed, 11 Jul 2018 13:36:18 +0200
parents 3dae6b78e1da
children 5ce50640688c
comparison
equal deleted inserted replaced
9242:2ea7b61797d3 9243:da0bdbcd6f09
21 public abstract class AbstractExportContext implements IExportContext { 21 public abstract class AbstractExportContext implements IExportContext {
22 22
23 private NumberFormat qFormat = null; 23 private NumberFormat qFormat = null;
24 24
25 private NumberFormat flowDepthFormat = null; 25 private NumberFormat flowDepthFormat = null;
26 26 private NumberFormat salixScenFormat = null;
27 private NumberFormat kmFormat = null; 27 private NumberFormat kmFormat = null;
28 28
29 /** The CallContext object. */ 29 /** The CallContext object. */
30 private final CallContext context; 30 private final CallContext context;
31 31
68 this.flowDepthFormat = Formatter.getFlowDepth(this.context); 68 this.flowDepthFormat = Formatter.getFlowDepth(this.context);
69 69
70 return this.flowDepthFormat; 70 return this.flowDepthFormat;
71 } 71 }
72 72
73 public final NumberFormat getSalixScenFormatter() {
74 if (this.salixScenFormat == null)
75 this.salixScenFormat = Formatter.getSalixLine(this.context);
76
77 return this.salixScenFormat;
78 }
79
73 protected String msg(final String key) { 80 protected String msg(final String key) {
74 return Resources.getMsg(this.context.getMeta(), key, key); 81 return Resources.getMsg(this.context.getMeta(), key, key);
75 } 82 }
76 83
77 public final String msg(final String key, final Object... args) { 84 public final String msg(final String key, final Object... args) {

http://dive4elements.wald.intevation.org