# HG changeset patch # User Björn Ricks # Date 1359982155 -3600 # Node ID 27b4d5d20dc8e90d847facceaab34d8f9e3638ff # Parent a3a59055ed5e2e80c60f3674f584df35231f72e4 Render text in Abflusstafel/-kurve cell like a "normal" html link diff -r a3a59055ed5e -r 27b4d5d20dc8 flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeListGrid.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeListGrid.java Mon Feb 04 13:48:31 2013 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeListGrid.java Mon Feb 04 13:49:15 2013 +0100 @@ -33,6 +33,8 @@ */ public class GaugeListGrid extends InfoListGrid implements RecordClickHandler { + private static final int ABFLUSSTAFEL_COLUMN = 6; + public GaugeListGrid(FLYS flys) { super(flys); ListGridField nfield = new ListGridField("name", "Pegel"); @@ -435,4 +437,16 @@ flys.newGaugeDischargeCurve(gauge.getRiverName(), gauge.getOfficialNumber()); } + + @Override + public String getCellCSSText(ListGridRecord record, int rowNum, + int colNum) { + if (colNum == ABFLUSSTAFEL_COLUMN) { + // display the ablfusstafel cell like a link + return "text-decoration: underline; color: #0000EE; cursor: pointer;"; + } + else { + return super.getCellCSSText(record, rowNum, colNum); + } + } }