Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java @ 1541:959e1d0df941
Fixed typo, more stub for add points ui.
flys-client/trunk@3760 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 25 Jan 2012 08:42:46 +0000 |
parents | cd88a257a5e6 |
children | 2f0150f21e77 |
comparison
equal
deleted
inserted
replaced
1540:cd88a257a5e6 | 1541:959e1d0df941 |
---|---|
47 | 47 |
48 protected ImgButton zoomOut; | 48 protected ImgButton zoomOut; |
49 | 49 |
50 protected ImgButton chartProperties; | 50 protected ImgButton chartProperties; |
51 | 51 |
52 protected ImgButton addPoints; | 52 protected Button addPoints; |
53 | 53 |
54 protected PanControl panControl; | 54 protected PanControl panControl; |
55 | 55 |
56 | 56 |
57 public ChartToolbar(CollectionView view, ChartOutputTab chartTab) { | 57 public ChartToolbar(CollectionView view, ChartOutputTab chartTab) { |
64 zoomToMaxExtent = new ImgButton(); | 64 zoomToMaxExtent = new ImgButton(); |
65 zoomOut = new ImgButton(); | 65 zoomOut = new ImgButton(); |
66 historyBack = new ImgButton(); | 66 historyBack = new ImgButton(); |
67 panControl = new PanControl(chartTab, MSG.pan()); | 67 panControl = new PanControl(chartTab, MSG.pan()); |
68 chartProperties = new ImgButton(); | 68 chartProperties = new ImgButton(); |
69 addPoints = new ImgButton(); | 69 addPoints = new Button("Points"); |
70 | |
71 addPoints.addClickHandler(new ClickHandler() { | |
72 public void onClick(ClickEvent event) { | |
73 openPointWindow(); | |
74 } | |
75 }); | |
70 | 76 |
71 datacage.addClickHandler(new ClickHandler() { | 77 datacage.addClickHandler(new ClickHandler() { |
72 public void onClick(ClickEvent event) { | 78 public void onClick(ClickEvent event) { |
73 GWT.log("Clicked 'datacage' button."); | 79 GWT.log("Clicked 'datacage' button."); |
74 openDatacageWindow((ChartOutputTab) getOutputTab()); | 80 openDatacageWindow((ChartOutputTab) getOutputTab()); |
139 public void onClick(ClickEvent event) { | 145 public void onClick(ClickEvent event) { |
140 openPropertiesEditor(); | 146 openPropertiesEditor(); |
141 } | 147 } |
142 }); | 148 }); |
143 | 149 |
150 | |
144 initLayout(); | 151 initLayout(); |
145 } | 152 } |
146 | 153 |
147 /** Set width, height and other properties of an imagebutton. */ | 154 /** Set width, height and other properties of an imagebutton. */ |
148 public void adjustImageButton(ImageButton imgButton) { | 155 public void adjustImageButton(ImgButton imgButton) { |
149 imgButton.setWidth(20); | 156 imgButton.setWidth(20); |
150 imgButton.setHeight(20); | 157 imgButton.setHeight(20); |
151 imgButton.setShowDown(false); | 158 imgButton.setShowDown(false); |
152 imgButton.setShowRollOver(false); | 159 imgButton.setShowRollOver(false); |
153 imgButton.setShowDisabled(false); | 160 imgButton.setShowDisabled(false); |
182 addMember(historyBack); | 189 addMember(historyBack); |
183 addMember(zoomOut); | 190 addMember(zoomOut); |
184 addMember(zoombox); | 191 addMember(zoombox); |
185 addMember(panControl); | 192 addMember(panControl); |
186 addMember(chartProperties); | 193 addMember(chartProperties); |
194 addMember(addPoints); | |
187 addMember(spacer); | 195 addMember(spacer); |
188 addMember(position); | 196 addMember(position); |
189 } | 197 } |
190 | 198 |
191 /** | 199 /** |
195 ChartPropertiesEditor editor = | 203 ChartPropertiesEditor editor = |
196 new ChartPropertiesEditor(getChartOutputTab()); | 204 new ChartPropertiesEditor(getChartOutputTab()); |
197 editor.show(); | 205 editor.show(); |
198 } | 206 } |
199 | 207 |
208 | |
209 /** Open editor for custom points. */ | |
210 protected void openPointWindow() { | |
211 | |
212 // TBD | |
213 } | |
200 } | 214 } |
201 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 215 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |