[Dive4elements-commits] [PATCH 4 of 8] Use WikiLinks cell formatter for the wiki-links in GaugeListGrid

Wald Commits scm-commit at wald.intevation.org
Tue Jun 4 18:45:36 CEST 2013


# HG changeset patch
# User Bernhard Herzog <bh at intevation.de>
# Date 1370360121 -7200
# Node ID 7aadc0e2e3fa9def9613983aad6b751f4c80bf8c
# Parent  4365320750bbe30cb507457a2813bfd4dd61f0f5
Use WikiLinks cell formatter for the wiki-links in GaugeListGrid.
Part of flys/issue1265

diff -r 4365320750bb -r 7aadc0e2e3fa gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java	Tue Jun 04 17:33:55 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/GaugeListGrid.java	Tue Jun 04 17:35:21 2013 +0200
@@ -21,6 +21,7 @@
 import com.smartgwt.client.widgets.grid.events.RecordClickHandler;
 
 import org.dive4elements.river.client.client.FLYS;
+import org.dive4elements.river.client.client.ui.WikiLinks;
 import org.dive4elements.river.client.shared.model.Data;
 import org.dive4elements.river.client.shared.model.DataItem;
 import org.dive4elements.river.client.shared.model.DataList;
@@ -44,6 +45,7 @@
         ListGridField stfield = new ListGridField("station", "Station [km]");
         ListGridField lfield = new ListGridField("link", "Info");
         lfield.setType(ListGridFieldType.LINK);
+        lfield.setCellFormatter(WikiLinks.cellFormatter(flys));
         ListGridField cfield = new ListGridField("curvelink", MSG.gauge_curve_link());
         cfield.addRecordClickHandler(this);
 


More information about the Dive4elements-commits mailing list