Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/StringProperty.java @ 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 | 4df2d9a4b9b4 |
children | 3304608baf35 |
comparison
equal
deleted
inserted
replaced
1462:a346db45c830 | 1463:14ce1c2a9f6c |
---|---|
1 package de.intevation.flys.client.shared.model; | 1 package de.intevation.flys.client.shared.model; |
2 | |
3 import com.smartgwt.client.widgets.form.fields.TextItem; | |
4 import com.smartgwt.client.widgets.form.DynamicForm; | |
5 import com.smartgwt.client.types.Alignment; | |
6 | 2 |
7 /** | 3 /** |
8 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 4 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
9 */ | 5 */ |
10 public class StringProperty extends PropertySetting { | 6 public class StringProperty extends PropertySetting { |
11 | 7 |
12 public DynamicForm generateUI() { | |
13 DynamicForm form = new DynamicForm(); | |
14 | |
15 TextItem item = new TextItem (); | |
16 item.setTitle(editor.getI18NString(name)); | |
17 item.setTitleAlign(Alignment.LEFT); | |
18 | |
19 form.setFields(item); | |
20 return form; | |
21 } | |
22 } | 8 } |