Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeInfoPanel.java @ 7933:900299ab8e6e
Replaced plain gwt with smartgwt components in info panels.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 17 Jun 2014 09:45:48 +0200 |
parents | 11bc2d6a2059 |
children |
comparison
equal
deleted
inserted
replaced
7932:b1393f96c153 | 7933:900299ab8e6e |
---|---|
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.client.client.ui.stationinfo; | 9 package org.dive4elements.river.client.client.ui.stationinfo; |
10 | 10 |
11 import com.google.gwt.core.client.GWT; | 11 import com.google.gwt.core.client.GWT; |
12 import com.google.gwt.event.dom.client.ClickEvent; | 12 import com.smartgwt.client.widgets.form.DynamicForm; |
13 import com.google.gwt.event.dom.client.ClickHandler; | 13 import com.smartgwt.client.widgets.form.fields.events.ClickEvent; |
14 import com.smartgwt.client.widgets.form.fields.events.ClickHandler; | |
15 import com.smartgwt.client.widgets.form.fields.LinkItem; | |
14 import com.google.gwt.i18n.client.NumberFormat; | 16 import com.google.gwt.i18n.client.NumberFormat; |
15 import com.google.gwt.user.client.ui.Anchor; | |
16 import com.smartgwt.client.widgets.layout.HLayout; | 17 import com.smartgwt.client.widgets.layout.HLayout; |
17 import com.smartgwt.client.widgets.layout.VLayout; | 18 import com.smartgwt.client.widgets.layout.VLayout; |
18 import com.smartgwt.client.widgets.Label; | 19 import com.smartgwt.client.widgets.Label; |
19 | 20 |
20 import org.dive4elements.river.client.client.FLYS; | 21 import org.dive4elements.river.client.client.FLYS; |
81 line4.addMember(key); | 82 line4.addMember(key); |
82 line4.addMember(value); | 83 line4.addMember(value); |
83 } | 84 } |
84 | 85 |
85 HLayout line5 = new HLayout(); | 86 HLayout line5 = new HLayout(); |
86 line5.addMember(new GaugeMainValueAnchor(flys, gauge)); | 87 DynamicForm line5Form = new DynamicForm(); |
88 line5Form.setItems(new GaugeMainValueAnchor(flys, gauge)); | |
89 line5.addMember(line5Form); | |
87 | 90 |
88 if (minw != null && maxw != null) { | 91 if (minw != null && maxw != null) { |
89 grid.addMember(line1); | 92 grid.addMember(line1); |
90 } | 93 } |
91 if (minq != null && maxq != null) { | 94 if (minq != null && maxq != null) { |
103 | 106 |
104 /** | 107 /** |
105 * Clickable anchor that asks application to show window with | 108 * Clickable anchor that asks application to show window with |
106 * main values for gauge. | 109 * main values for gauge. |
107 */ | 110 */ |
108 class GaugeMainValueAnchor extends Anchor implements ClickHandler { | 111 class GaugeMainValueAnchor extends LinkItem implements ClickHandler { |
109 | 112 |
110 private FLYS flys; | 113 private FLYS flys; |
111 private GaugeInfo gauge; | 114 private GaugeInfo gauge; |
112 | 115 |
113 public GaugeMainValueAnchor(FLYS flys, GaugeInfo gauge) { | 116 public GaugeMainValueAnchor(FLYS flys, GaugeInfo gauge) { |
114 super(MSG.show_mainvalues()); | 117 super(); |
118 this.setLinkTitle(MSG.show_mainvalues()); | |
119 this.setShowTitle(false); | |
115 this.flys = flys; | 120 this.flys = flys; |
116 this.gauge = gauge; | 121 this.gauge = gauge; |
117 this.setHeight("5"); | |
118 | 122 |
119 addClickHandler(this); | 123 addClickHandler(this); |
120 } | 124 } |
121 | 125 |
122 @Override | 126 @Override |