Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageButton.java @ 848:9ecd58f619a4
Moved datacage into a separated widget.
flys-client/trunk@2586 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 25 Aug 2011 16:03:26 +0000 |
parents | 8fa303586f14 |
children | f8c03d3af300 |
comparison
equal
deleted
inserted
replaced
847:25a4bf390757 | 848:9ecd58f619a4 |
---|---|
12 | 12 |
13 public class DatacageButton extends Button implements ClickHandler { | 13 public class DatacageButton extends Button implements ClickHandler { |
14 | 14 |
15 protected Artifact artifact; | 15 protected Artifact artifact; |
16 protected User user; | 16 protected User user; |
17 protected CollectionView view; | |
17 | 18 |
18 public DatacageButton(String title, Artifact artifact, User user) { | 19 public DatacageButton( |
20 String title, | |
21 Artifact artifact, | |
22 User user, | |
23 CollectionView view | |
24 ) { | |
19 super(title); | 25 super(title); |
20 | 26 |
21 this.artifact = artifact; | 27 this.artifact = artifact; |
22 this.user = user; | 28 this.user = user; |
29 this.view = view; | |
23 | 30 |
24 addClickHandler(this); | 31 addClickHandler(this); |
25 } | 32 } |
26 | 33 |
27 | 34 |
28 public void onClick(ClickEvent event) { | 35 public void onClick(ClickEvent event) { |
29 final DatacageWindow dc = new DatacageWindow(artifact, user); | 36 // TODO: fetch outs! |
37 String outs = ""; | |
38 | |
39 final DatacageWindow dc = new DatacageWindow( | |
40 artifact, user, outs, view); | |
30 dc.addCloseClickHandler(new CloseClickHandler() { | 41 dc.addCloseClickHandler(new CloseClickHandler() { |
31 public void onCloseClick(CloseClientEvent event) { | 42 public void onCloseClick(CloseClientEvent event) { |
32 dc.destroy(); | 43 dc.destroy(); |
33 } | 44 } |
34 }); | 45 }); |