Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java @ 532:0ba7c43e7b62
Replaced buttons displayed as labels with real buttons.
flys-client/trunk@2023 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 27 May 2011 13:10:09 +0000 |
parents | c17c593f8732 |
children | 34103ab9fe60 |
comparison
equal
deleted
inserted
replaced
531:c17c593f8732 | 532:0ba7c43e7b62 |
---|---|
2 | 2 |
3 import java.util.Date; | 3 import java.util.Date; |
4 | 4 |
5 import com.google.gwt.core.client.GWT; | 5 import com.google.gwt.core.client.GWT; |
6 | 6 |
7 import com.smartgwt.client.types.Alignment; | 7 import com.smartgwt.client.widgets.Button; |
8 | |
9 import com.smartgwt.client.widgets.Canvas; | 8 import com.smartgwt.client.widgets.Canvas; |
10 import com.smartgwt.client.widgets.Img; | 9 import com.smartgwt.client.widgets.Img; |
11 import com.smartgwt.client.widgets.Label; | 10 import com.smartgwt.client.widgets.Label; |
12 | 11 |
13 import com.smartgwt.client.widgets.layout.HLayout; | 12 import com.smartgwt.client.widgets.layout.HLayout; |
22 | 21 |
23 import de.intevation.flys.client.shared.model.Artifact; | 22 import de.intevation.flys.client.shared.model.Artifact; |
24 import de.intevation.flys.client.shared.model.Collection; | 23 import de.intevation.flys.client.shared.model.Collection; |
25 import de.intevation.flys.client.shared.model.OutputMode; | 24 import de.intevation.flys.client.shared.model.OutputMode; |
26 import de.intevation.flys.client.client.Config; | 25 import de.intevation.flys.client.client.Config; |
26 import de.intevation.flys.client.client.FLYSConstants; | |
27 import de.intevation.flys.client.client.event.OutputParameterChangeEvent; | 27 import de.intevation.flys.client.client.event.OutputParameterChangeEvent; |
28 import de.intevation.flys.client.client.event.OutputParameterChangeHandler; | 28 import de.intevation.flys.client.client.event.OutputParameterChangeHandler; |
29 import de.intevation.flys.client.client.ui.CollectionView; | 29 import de.intevation.flys.client.client.ui.CollectionView; |
30 import de.intevation.flys.client.client.ui.DatacageWindow; | 30 import de.intevation.flys.client.client.ui.DatacageWindow; |
31 import de.intevation.flys.client.client.ui.OutputTab; | 31 import de.intevation.flys.client.client.ui.OutputTab; |
42 public static final int DEFAULT_CHART_HEIGHT = 500; | 42 public static final int DEFAULT_CHART_HEIGHT = 500; |
43 | 43 |
44 public static final int THEMEPANEL_MIN_WIDTH = 200; | 44 public static final int THEMEPANEL_MIN_WIDTH = 200; |
45 | 45 |
46 | 46 |
47 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); | |
48 | |
49 | |
47 /** The canvas that wraps the chart toolbar.*/ | 50 /** The canvas that wraps the chart toolbar.*/ |
48 protected Canvas tbarPanel; | 51 protected Canvas tbarPanel; |
49 | 52 |
50 /** The canvas that wraps the theme editor.*/ | 53 /** The canvas that wraps the theme editor.*/ |
51 protected Canvas left; | 54 protected Canvas left; |
146 HLayout hLayout = new HLayout(); | 149 HLayout hLayout = new HLayout(); |
147 hLayout.setWidth100(); | 150 hLayout.setWidth100(); |
148 hLayout.setHeight100(); | 151 hLayout.setHeight100(); |
149 hLayout.setMembersMargin(10); | 152 hLayout.setMembersMargin(10); |
150 | 153 |
151 Label datacage = new Label("Datenkorb"); | 154 Button datacage = new Button(MSG.databasket()); |
152 datacage.setHeight(20); | 155 datacage.setHeight(20); |
153 datacage.setBackgroundColor("#BED730"); | |
154 datacage.setBorder("1px solid black"); | |
155 datacage.setAlign(Alignment.CENTER); | |
156 | 156 |
157 hLayout.setMargin(5); | 157 hLayout.setMargin(5); |
158 hLayout.addMember(datacage); | 158 hLayout.addMember(datacage); |
159 datacage.addClickHandler(new ClickHandler() { | 159 datacage.addClickHandler(new ClickHandler() { |
160 public void onClick(ClickEvent event) { | 160 public void onClick(ClickEvent event) { |