Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java @ 7590:a52b820c9006
Allow more compact display of mainvalue-table.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 20 Nov 2013 11:06:17 +0100 |
parents | 1f2f64d244fc |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
7589:a64ed9f067c6 | 7590:a52b820c9006 |
---|---|
79 } | 79 } |
80 }); | 80 }); |
81 | 81 |
82 ListGridField select = new ListGridField("select", MESSAGE.selection()); | 82 ListGridField select = new ListGridField("select", MESSAGE.selection()); |
83 select.setType(ListGridFieldType.ICON); | 83 select.setType(ListGridFieldType.ICON); |
84 select.setWidth(70); | 84 select.setWidth(60); |
85 select.setCellIcon(baseUrl + MESSAGE.markerGreen()); | 85 select.setCellIcon(baseUrl + MESSAGE.markerGreen()); |
86 | 86 |
87 setFields(select, name, startTime, stopTime, type, value); | 87 setFields(select, name, startTime, stopTime, type, value); |
88 hideField("select"); | 88 hideField("select"); |
89 } | 89 } |
94 | 94 |
95 public static ListGridField createYearListGridField( | 95 public static ListGridField createYearListGridField( |
96 final String propertyName, String displayName) { | 96 final String propertyName, String displayName) { |
97 ListGridField listGridField = new ListGridField(propertyName, displayName); | 97 ListGridField listGridField = new ListGridField(propertyName, displayName); |
98 listGridField.setType(ListGridFieldType.DATE); | 98 listGridField.setType(ListGridFieldType.DATE); |
99 listGridField.setWidth("60"); | 99 listGridField.setWidth("50"); |
100 listGridField.setCellFormatter(createYearDateFormatter(propertyName)); | 100 listGridField.setCellFormatter(createYearDateFormatter(propertyName)); |
101 return listGridField; | 101 return listGridField; |
102 } | 102 } |
103 | 103 |
104 /** Create CellFormatter that prints just the year of a date stored in attributeName. */ | 104 /** Create CellFormatter that prints just the year of a date stored in attributeName. */ |