Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeInfoPanel.java @ 4988:e2053fbcd165
GaugeInfoPanel: Smarter formatten link, i18n.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 14 Feb 2013 10:50:08 +0100 |
parents | 0e6e44e6725f |
children | 5ae8b8b46323 |
comparison
equal
deleted
inserted
replaced
4987:1caf1d735079 | 4988:e2053fbcd165 |
---|---|
24 public GaugeInfoPanel(GaugeInfo gauge, FLYS flys) { | 24 public GaugeInfoPanel(GaugeInfo gauge, FLYS flys) { |
25 this.flys = flys; | 25 this.flys = flys; |
26 setStyleName("gaugeinfopanel"); | 26 setStyleName("gaugeinfopanel"); |
27 setWidth100(); | 27 setWidth100(); |
28 | 28 |
29 Grid grid = new Grid(4, 2); | 29 Grid grid = new Grid(5, 2); |
30 | 30 |
31 NumberFormat nf = NumberFormat.getDecimalFormat(); | 31 NumberFormat nf = NumberFormat.getDecimalFormat(); |
32 | 32 |
33 Double minw = gauge.getMinW(); | 33 Double minw = gauge.getMinW(); |
34 Double maxw = gauge.getMaxW(); | 34 Double maxw = gauge.getMaxW(); |
57 grid.setText(3, 0, MSG.gauge_zero() + " [" + | 57 grid.setText(3, 0, MSG.gauge_zero() + " [" + |
58 gauge.getWstUnit() + "]"); | 58 gauge.getWstUnit() + "]"); |
59 grid.setText(3, 1, nf.format(datum)); | 59 grid.setText(3, 1, nf.format(datum)); |
60 } | 60 } |
61 | 61 |
62 grid.setWidget(4,0, new GaugeMainValueAnchor(flys, gauge)); | |
63 | |
62 addMember(grid); | 64 addMember(grid); |
63 addMember(new GaugeMainValueAnchor(flys, gauge)); | |
64 } | 65 } |
65 | 66 |
66 | 67 |
67 /** | 68 /** |
68 * Clickable anchor that asks application to show window with | 69 * Clickable anchor that asks application to show window with |
72 | 73 |
73 private FLYS flys; | 74 private FLYS flys; |
74 private GaugeInfo gauge; | 75 private GaugeInfo gauge; |
75 | 76 |
76 public GaugeMainValueAnchor(FLYS flys, GaugeInfo gauge) { | 77 public GaugeMainValueAnchor(FLYS flys, GaugeInfo gauge) { |
77 super("TODO:i18n MainVALUES"); | 78 super(MSG.show_mainvalues()); |
78 // TODO i18n mainvalues | |
79 this.flys = flys; | 79 this.flys = flys; |
80 this.gauge = gauge; | 80 this.gauge = gauge; |
81 this.setHeight("5"); | |
81 | 82 |
82 addClickHandler(this); | 83 addClickHandler(this); |
83 } | 84 } |
84 | 85 |
85 @Override | 86 @Override |