Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ContinuePanel.java @ 4131:360e22afb98b
Cosmetics, warnings and minor TODOs.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Mon, 15 Oct 2012 00:04:35 +0200 |
parents | 3fa8583434b2 |
children |
comparison
equal
deleted
inserted
replaced
4130:df8ac7ff6b1a | 4131:360e22afb98b |
---|---|
1 package de.intevation.flys.client.client.ui; | 1 package de.intevation.flys.client.client.ui; |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.List; | |
5 | 2 |
6 import com.google.gwt.core.client.GWT; | 3 import com.google.gwt.core.client.GWT; |
7 | 4 |
8 import com.smartgwt.client.widgets.Canvas; | 5 import com.smartgwt.client.widgets.Canvas; |
9 import com.smartgwt.client.widgets.form.DynamicForm; | 6 import com.smartgwt.client.widgets.form.DynamicForm; |
10 import com.smartgwt.client.widgets.form.fields.LinkItem; | 7 import com.smartgwt.client.widgets.form.fields.LinkItem; |
11 import com.smartgwt.client.widgets.form.fields.events.ClickEvent; | 8 import com.smartgwt.client.widgets.form.fields.events.ClickEvent; |
12 import com.smartgwt.client.widgets.form.fields.events.ClickHandler; | 9 import com.smartgwt.client.widgets.form.fields.events.ClickHandler; |
13 | 10 |
11 import de.intevation.flys.client.client.FLYSConstants; | |
12 import de.intevation.flys.client.client.event.AdvanceHandler; | |
14 import de.intevation.flys.client.shared.model.ArtifactDescription; | 13 import de.intevation.flys.client.shared.model.ArtifactDescription; |
15 import de.intevation.flys.client.shared.model.Data; | 14 import de.intevation.flys.client.shared.model.Data; |
16 import de.intevation.flys.client.shared.model.DataList; | 15 import de.intevation.flys.client.shared.model.DataList; |
17 | 16 |
18 import de.intevation.flys.client.client.FLYSConstants; | 17 import java.util.ArrayList; |
19 import de.intevation.flys.client.client.event.AdvanceHandler; | 18 import java.util.List; |
20 | 19 |
21 | 20 |
22 /** | 21 /** |
23 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 22 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
24 */ | 23 */ |
25 public class ContinuePanel extends AbstractUIProvider { | 24 public class ContinuePanel extends AbstractUIProvider { |
25 | |
26 private static final long serialVersionUID = -5882814816875137397L; | |
26 | 27 |
27 protected static FLYSConstants MSG = GWT.create(FLYSConstants.class); | 28 protected static FLYSConstants MSG = GWT.create(FLYSConstants.class); |
28 | 29 |
29 protected List<AdvanceHandler> advHandlers; | 30 protected List<AdvanceHandler> advHandlers; |
30 | 31 |
41 | 42 |
42 final ArtifactDescription desc = artifact.getArtifactDescription(); | 43 final ArtifactDescription desc = artifact.getArtifactDescription(); |
43 final String[] reachable = desc.getReachableStates(); | 44 final String[] reachable = desc.getReachableStates(); |
44 | 45 |
45 next.addClickHandler(new ClickHandler() { | 46 next.addClickHandler(new ClickHandler() { |
47 @Override | |
46 public void onClick(ClickEvent e) { | 48 public void onClick(ClickEvent e) { |
47 fireOnAdvance(reachable[0]); | 49 fireOnAdvance(reachable[0]); |
48 } | 50 } |
49 }); | 51 }); |
50 | 52 |