comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageWindow.java @ 9220:e3c2ae1887e8

Allow to filter contents of datacage on client side. Allow to override column label of datacage Some code cleanup
author gernotbelger
date Wed, 04 Jul 2018 12:00:51 +0200
parents 5e38e2924c07
children
comparison
equal deleted inserted replaced
9219:8642a76f22be 9220:e3c2ae1887e8
74 this.inProgress = 0; 74 this.inProgress = 0;
75 75
76 setWidth(400); 76 setWidth(400);
77 setHeight(500); 77 setHeight(500);
78 78
79 DatacageWidget dw = new DatacageWidget( 79 final DatacageWidgetData data = new DatacageWidgetData( artifact, user, outs, "load-system:true", true );
80 artifact, 80
81 user, 81 DatacageWidget dw = new DatacageWidget( data );
82 outs,
83 "load-system:true",
84 true);
85 dw.addDatacageHandler(this); 82 dw.addDatacageHandler(this);
86 dw.addDatacageDoubleClickHandler(this); 83 dw.addDatacageDoubleClickHandler(this);
87 84
88 addItem(dw); 85 addItem(dw);
89 86
190 collection, 187 collection,
191 recommendation, 188 recommendation,
192 factory, 189 factory,
193 locale, 190 locale,
194 new AsyncCallback<Artifact>() { 191 new AsyncCallback<Artifact>() {
192 @Override
195 public void onFailure(Throwable caught) { 193 public void onFailure(Throwable caught) {
196 decreateInProgress(); 194 decreateInProgress();
197 GWT.log("Create-artifact failed: " 195 GWT.log("Create-artifact failed: "
198 + caught.getMessage()); 196 + caught.getMessage());
199 SC.warn(caught.getMessage()); 197 SC.warn(caught.getMessage());
200 } 198 }
201 199
200 @Override
202 public void onSuccess(Artifact artifact) { 201 public void onSuccess(Artifact artifact) {
203 decreateInProgress(); 202 decreateInProgress();
204 GWT.log("Created new artifact: " + artifact.getUuid()); 203 GWT.log("Created new artifact: " + artifact.getUuid());
205 } 204 }
206 }); 205 });

http://dive4elements.wald.intevation.org