diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents a52b820c9006
children
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/wq/WTable.java	Thu Jan 18 20:12:01 2018 +0100
@@ -54,9 +54,11 @@
         type.setType(ListGridFieldType.TEXT);
         type.setWidth("50");
 
-        ListGridField startTime = createYearListGridField("starttime", MESSAGE.starttime());
+        ListGridField startTime = createYearListGridField(
+            "starttime", MESSAGE.starttime());
 
-        ListGridField stopTime = createYearListGridField("stoptime", MESSAGE.stoptime());
+        ListGridField stopTime = createYearListGridField(
+            "stoptime", MESSAGE.stoptime());
 
         final NumberFormat nf = NumberFormat.getDecimalFormat();
 
@@ -94,18 +96,23 @@
 
     public static ListGridField createYearListGridField(
         final String propertyName, String displayName) {
-        ListGridField listGridField = new ListGridField(propertyName, displayName);
+        ListGridField listGridField = new ListGridField(
+            propertyName, displayName);
         listGridField.setType(ListGridFieldType.DATE);
         listGridField.setWidth("50");
         listGridField.setCellFormatter(createYearDateFormatter(propertyName));
         return listGridField;
     }
 
-    /** Create CellFormatter that prints just the year of a date stored in attributeName. */
-    private static CellFormatter createYearDateFormatter(final String attributeName) {
+    /** Create CellFormatter that prints just the year of a date
+     * stored in attributeName. */
+    private static CellFormatter createYearDateFormatter(
+        final String attributeName
+    ) {
         return new CellFormatter() {
             @Override
-            public String format(Object arg0, ListGridRecord record, int arg2, int arg3) {
+            public String format(
+                Object arg0, ListGridRecord record, int arg2, int arg3) {
                 Date date = record.getAttributeAsDate(attributeName);
                 if (date == null) {
                     return "";

http://dive4elements.wald.intevation.org