comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java @ 916:a1a5dc2b9e34

Improved the DEM datacage panel to display the DEMs only. flys-client/trunk@2779 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 16 Sep 2011 13:24:36 +0000
parents 2b6efb8b2301
children 07aa1f504491
comparison
equal deleted inserted replaced
915:89a47098bcbd 916:a1a5dc2b9e34
55 GWT.create(FLYSConstants.class); 55 GWT.create(FLYSConstants.class);
56 56
57 protected Artifact artifact; 57 protected Artifact artifact;
58 protected User user; 58 protected User user;
59 protected String outs; 59 protected String outs;
60 protected String parameters;
60 61
61 protected TreeGrid treeGrid; 62 protected TreeGrid treeGrid;
62 protected Tree tree; 63 protected Tree tree;
63 64
64 protected ToLoad toLoad; 65 protected ToLoad toLoad;
77 78
78 public DatacageWidget(Artifact artifact, User user, String outs) { 79 public DatacageWidget(Artifact artifact, User user, String outs) {
79 this(artifact, user, outs, true); 80 this(artifact, user, outs, true);
80 } 81 }
81 82
82 public DatacageWidget(Artifact artifact, User user, String outs, 83 public DatacageWidget(
83 boolean showButton) { 84 Artifact artifact,
85 User user,
86 String outs,
87 boolean showButton
88 ) {
89 this(artifact, user, outs, null, showButton);
90 }
91
92
93 public DatacageWidget(
94 Artifact artifact,
95 User user,
96 String outs,
97 String parameters,
98 boolean showButton
99 ) {
84 this(); 100 this();
85 101
86 this.artifact = artifact; 102 this.artifact = artifact;
87 this.user = user; 103 this.user = user;
88 this.outs = outs; 104 this.outs = outs;
105 this.parameters = parameters;
89 106
90 toLoad = new ToLoad(); 107 toLoad = new ToLoad();
91 108
92 setWidth100(); 109 setWidth100();
93 110
125 */ 142 */
126 public DatacageWidget(Artifact artifact, User user, String outs, 143 public DatacageWidget(Artifact artifact, User user, String outs,
127 DatacageHandler handler) { 144 DatacageHandler handler) {
128 this(artifact, user, outs); 145 this(artifact, user, outs);
129 this.addDatacageHandler(handler); 146 this.addDatacageHandler(handler);
147 }
148
149
150 public DatacageWidget(
151 Artifact artifact,
152 User user,
153 String outs,
154 DatacageHandler handler,
155 String parameters
156 ) {
157 this(artifact, user, outs, handler);
158 this.parameters = parameters;
130 } 159 }
131 160
132 161
133 /** 162 /**
134 * @param handler Handler to be added (notified on add-action). 163 * @param handler Handler to be added (notified on add-action).
251 metaDataService.getMetaData( 280 metaDataService.getMetaData(
252 url, locale, 281 url, locale,
253 artifactId, 282 artifactId,
254 userId, 283 userId,
255 outs, 284 outs,
285 parameters,
256 new AsyncCallback<DataCageTree>() { 286 new AsyncCallback<DataCageTree>() {
257 public void onFailure(Throwable caught) { 287 public void onFailure(Throwable caught) {
258 GWT.log("Could not load meta data."); 288 GWT.log("Could not load meta data.");
259 SC.warn(caught.getMessage()); 289 SC.warn(caught.getMessage());
260 } 290 }

http://dive4elements.wald.intevation.org