Mercurial > dive4elements > river
changeset 4961:27b4d5d20dc8
Render text in Abflusstafel/-kurve cell like a "normal" html link
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 04 Feb 2013 13:49:15 +0100 |
parents | a3a59055ed5e |
children | 6f6461e07854 |
files | flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeListGrid.java |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); + } + } }