comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/PanelHelper.java @ 9346:d89976700474

validationLabelHeight
author gernotbelger
date Tue, 31 Jul 2018 15:48:35 +0200
parents 972e10522ed6
children
comparison
equal deleted inserted replaced
9345:a8d1784ad8e8 9346:d89976700474
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
8 * documentation coming with Dive4Elements River for details. 8 * documentation coming with Dive4Elements River for details.
9 */ 9 */
10 package org.dive4elements.river.client.client.ui; 10 package org.dive4elements.river.client.client.ui;
11 11
12 import com.google.gwt.user.client.ui.Label;
12 import com.smartgwt.client.types.Alignment; 13 import com.smartgwt.client.types.Alignment;
13 import com.smartgwt.client.types.ListGridFieldType; 14 import com.smartgwt.client.types.ListGridFieldType;
14 import com.smartgwt.client.widgets.form.fields.IntegerItem; 15 import com.smartgwt.client.widgets.form.fields.IntegerItem;
15 import com.smartgwt.client.widgets.form.fields.TextItem; 16 import com.smartgwt.client.widgets.form.fields.TextItem;
16 import com.smartgwt.client.widgets.form.validator.IntegerRangeValidator; 17 import com.smartgwt.client.widgets.form.validator.IntegerRangeValidator;
113 intField.setCanDragResize(false); 114 intField.setCanDragResize(false);
114 115
115 return intField; 116 return intField;
116 } 117 }
117 118
119 public static final Label getValidationLabel() {
120 final Label label = new Label();
121 label.setHeight("15px");
122 label.getElement().getStyle().setColor("red");
123 return label;
124 }
125
118 } 126 }

http://dive4elements.wald.intevation.org