diff flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java @ 1612:66671b69c7ea

Added new UIProvider to enter mutliple locations (yet only input view textfield possible). flys-client/trunk@3979 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 08 Feb 2012 16:24:39 +0000
parents f30919997e57
children 87ac5c532523
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java	Wed Feb 08 16:20:30 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java	Wed Feb 08 16:24:39 2012 +0000
@@ -2,6 +2,13 @@
 
 import de.intevation.flys.client.shared.model.User;
 
+
+/**
+ * Depending on the provider the state declared, return a UIProvider.
+ *
+ * A UIProvider provides widgets and input helpers to guide input to an
+ * artifacts state.
+ */
 public class UIProviderFactory {
 
     private UIProviderFactory() {
@@ -20,6 +27,9 @@
         else if (uiProvider.equals("location_panel")) {
             return new SingleLocationPanel();
         }
+        else if (uiProvider.equals("multi_location_panel")) {
+            return new MultipleLocationPanel();
+        }
         else if (uiProvider.equals("distance_panel")) {
             return new DistancePanel();
         }

http://dive4elements.wald.intevation.org