comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/wq/WTable.java @ 580:42512fce9b1b

#140, #122: Splitted the WQD table in the WQInputPanel into two tables: a table for QD values and a table for W values - only the QD table is selectable. flys-client/trunk@2164 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 20 Jun 2011 10:32:54 +0000
parents
children dd702348b878
comparison
equal deleted inserted replaced
579:f1b977657880 580:42512fce9b1b
1 package de.intevation.flys.client.client.ui.wq;
2
3 import com.google.gwt.core.client.GWT;
4
5 import com.smartgwt.client.types.ListGridFieldType;
6 import com.smartgwt.client.types.SelectionStyle;
7 import com.smartgwt.client.widgets.grid.ListGrid;
8 import com.smartgwt.client.widgets.grid.ListGridField;
9
10 import de.intevation.flys.client.client.FLYSConstants;
11
12 /**
13 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
14 */
15 public class WTable extends ListGrid {
16
17 /** The message class that provides i18n strings.*/
18 protected FLYSConstants MESSAGE = GWT.create(FLYSConstants.class);
19
20
21 public WTable() {
22 setWidth100();
23 setHeight100();
24 setSelectionType(SelectionStyle.NONE);
25 setSelectionType(SelectionStyle.NONE);
26 setShowHeaderContextMenu(false);
27 setShowRecordComponents(true);
28 setShowRecordComponentsByCell(true);
29 setEmptyMessage(MESSAGE.empty_table());
30
31 ListGridField name = new ListGridField("name", MESSAGE.name());
32 name.setType(ListGridFieldType.TEXT);
33 name.setWidth("*");
34
35 ListGridField type = new ListGridField("type", MESSAGE.type());
36 type.setType(ListGridFieldType.TEXT);
37 type.setWidth("50");
38
39 ListGridField value = new ListGridField("value", MESSAGE.wq_value());
40 value.setType(ListGridFieldType.TEXT);
41 type.setWidth("50");
42
43 setFields(name, type, value);
44 }
45 }
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org