Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/PanelHelper.java @ 9066:b5d7a9d79837
uinfo.inundation_duration ui
author | gernotbelger |
---|---|
date | Fri, 11 May 2018 17:04:35 +0200 |
parents | |
children | aafae1ab25f0 |
comparison
equal
deleted
inserted
replaced
9065:58af9b81a97b | 9066:b5d7a9d79837 |
---|---|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by | |
3 * Björnsen Beratende Ingenieure GmbH | |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | |
5 * | |
6 * This file is Free Software under the GNU AGPL (>=v3) | |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
8 * documentation coming with Dive4Elements River for details. | |
9 */ | |
10 package org.dive4elements.river.client.client.ui; | |
11 | |
12 import com.smartgwt.client.widgets.form.fields.TextItem; | |
13 import com.smartgwt.client.widgets.form.validator.Validator; | |
14 import com.smartgwt.client.widgets.layout.VLayout; | |
15 | |
16 /** | |
17 * @author Domenico Nardi Tironi | |
18 * | |
19 */ | |
20 public class PanelHelper { | |
21 | |
22 public PanelHelper() { | |
23 | |
24 } | |
25 | |
26 public static final TextItem createItem(final String identifier, final String title, final int width, final Validator... validator) { | |
27 final TextItem item = new TextItem(identifier, title); | |
28 item.setWidth(width); | |
29 item.setWrapTitle(false); | |
30 item.setValidators(validator); | |
31 return item; | |
32 } | |
33 | |
34 public static VLayout getSpacer(final int height) { | |
35 final VLayout spacer = new VLayout(); | |
36 spacer.setHeight(height); | |
37 return spacer; | |
38 } | |
39 } |