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

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


# HG changeset patch
# User Bernhard Herzog <bh at intevation.de>
# Date 1370361450 -7200
# Node ID 5319ecd0619ca51728e8e195f3998ff6caa14390
# Parent  56e8bd0958a9f9c5062935c832904231f0170ead
Use WikiLinks cell formatter for the wiki-links in MeasurementStationListGrid.
Part of flys/issue1265

diff -r 56e8bd0958a9 -r 5319ecd0619c gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java	Tue Jun 04 17:41:02 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/stationinfo/MeasurementStationListGrid.java	Tue Jun 04 17:57:30 2013 +0200
@@ -19,6 +19,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.MeasurementStation;
 import org.dive4elements.river.client.shared.model.RiverInfo;
 
@@ -40,6 +41,7 @@
         ListGridField stfield = new ListGridField("station", "Station [km]");
         ListGridField lfield = new ListGridField("link", "Link");
         lfield.setType(ListGridFieldType.LINK);
+        lfield.setCellFormatter(WikiLinks.cellFormatter(flys));
         ListGridField cfield = new ListGridField("curvelink", "SQ");
         cfield.addRecordClickHandler(this);
         this.setFields(nfield, sfield, efield, stfield, lfield, cfield);


More information about the Dive4elements-commits mailing list