changeset 1463:14ce1c2a9f6c

Removed code for UI generation. SmartGWT classes are not usable on serverside and in model classes. flys-client/trunk@3502 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 20 Dec 2011 15:22:42 +0000
parents a346db45c830
children c899a7ffdc8f
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/shared/model/Property.java flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.java flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertySetting.java flys-client/src/main/java/de/intevation/flys/client/shared/model/StringProperty.java
diffstat 5 files changed, 9 insertions(+), 45 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Dec 20 15:18:07 2011 +0000
+++ b/flys-client/ChangeLog	Tue Dec 20 15:22:42 2011 +0000
@@ -1,3 +1,12 @@
+2011-12-20  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/shared/model/PropertySetting.java,
+	  src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.java,
+	  src/main/java/de/intevation/flys/client/shared/model/Property.java,
+	  src/main/java/de/intevation/flys/client/shared/model/StringProperty.java:
+	  Removed code for UI generation. SmartGWT classes are not usable on
+	  serverside and in model classes.
+
 2011-12-20	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/Property.java	Tue Dec 20 15:18:07 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Property.java	Tue Dec 20 15:22:42 2011 +0000
@@ -2,8 +2,6 @@
 
 import java.io.Serializable;
 
-import com.smartgwt.client.widgets.form.DynamicForm;
-
 /**
  * This interface describes a Property of an output mode.
  *
@@ -14,7 +12,4 @@
     String getName();
 
     void setName(String name);
-
-    DynamicForm generateUI();
-
 }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.java	Tue Dec 20 15:18:07 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertyGroup.java	Tue Dec 20 15:22:42 2011 +0000
@@ -2,8 +2,6 @@
 
 import java.util.List;
 
-import com.smartgwt.client.widgets.form.DynamicForm;
-
 /**
  * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
  */
@@ -42,8 +40,4 @@
     public void setProperties(List<Property> properties) {
         this.properties = properties;
     }
-
-    public DynamicForm generateUI() {
-        return new DynamicForm();
-    }
 }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertySetting.java	Tue Dec 20 15:18:07 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertySetting.java	Tue Dec 20 15:22:42 2011 +0000
@@ -3,10 +3,6 @@
 import java.util.HashMap;
 import java.util.ArrayList;
 
-import com.smartgwt.client.widgets.form.DynamicForm;
-
-import de.intevation.flys.client.client.ui.PropertyEditor;
-
 /**
  * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
  */
@@ -21,9 +17,6 @@
     /** Additional attributes.*/
     protected HashMap<String, String> attributes;
 
-    /** The editor dialog. */
-    protected PropertyEditor editor;
-
     /**
      * Create a new StyleSetting for theme attribution.
      */
@@ -73,18 +66,5 @@
     public ArrayList<String> getAttributeList() {
         return new ArrayList<String>(attributes.keySet());
     }
-
-    public DynamicForm generateUI() {
-        return new DynamicForm();
-    }
-
-    public void setEditor(PropertyEditor editor) {
-        this.editor = editor;
-    }
-
-    public PropertyEditor getEditor() {
-        return this.editor;
-    }
 }
-
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/StringProperty.java	Tue Dec 20 15:18:07 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/StringProperty.java	Tue Dec 20 15:22:42 2011 +0000
@@ -1,22 +1,8 @@
 package de.intevation.flys.client.shared.model;
 
-import com.smartgwt.client.widgets.form.fields.TextItem;
-import com.smartgwt.client.widgets.form.DynamicForm;
-import com.smartgwt.client.types.Alignment;
-
 /**
  * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
  */
 public class StringProperty extends PropertySetting {
 
-    public DynamicForm generateUI() {
-        DynamicForm form = new DynamicForm();
-
-        TextItem item = new TextItem ();
-        item.setTitle(editor.getI18NString(name));
-        item.setTitleAlign(Alignment.LEFT);
-
-        form.setFields(item);
-        return form;
-    }
 }

http://dive4elements.wald.intevation.org