Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/MapSelection.java @ 282:e92f7ef455d6
Show rivers as links instead of a combobox.
flys-client/trunk@1911 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 12 May 2011 14:59:18 +0000 |
parents | 4784ca718476 |
children | 2e02db03e576 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MapSelection.java Thu May 12 09:59:29 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MapSelection.java Thu May 12 14:59:18 2011 +0000 @@ -10,6 +10,8 @@ import de.intevation.flys.client.shared.model.DataList; import de.intevation.flys.client.client.FLYSImages; +import de.intevation.flys.client.client.event.HasStepForwardHandlers; +import de.intevation.flys.client.shared.model.Data; /** @@ -24,6 +26,7 @@ /** The interface that provides the image resources. */ private FLYSImages IMAGES = GWT.create(FLYSImages.class); + protected ModuleSelection moduleSelection; public MapSelection() { } @@ -46,8 +49,10 @@ HLayout h = new HLayout(); h.setAlign(VerticalAlignment.TOP); + h.setHeight(100); + moduleSelection = new ModuleSelection(); - Canvas form = super.createWidget(data); + Canvas form = moduleSelection.create(data); form.setWidth(250); form.setLayoutAlign(VerticalAlignment.TOP); @@ -61,5 +66,14 @@ return h; } + + protected Data[] getData() { + if (moduleSelection != null) { + return moduleSelection.getData(); + } + else { + return null; + } + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :