import nl.idgis.giclient.framework.TextInputFrame; import nl.idgis.giclient.util.Strings; import nl.idgis.giclient.util.SRSInfo; /** * @author velsll */ class nl.idgis.giclient.gui.mapviewer.BufferInputFrame extends TextInputFrame { function onLoad(){ super.onLoad(); this.createTextField("unitsLabelField", 7, this["textInput"]._x + this["textInput"]._width + 10, this["textInput"]._y, 200, 30); this["unitsLabelField"].setNewTextFormat(textFormat); var label:String; var srsInfo:SRSInfo = ruler.getSRSInfo(); var srs:String = ruler.getGIS().getActiveMap().getSRS(); if (srsInfo.isProjection(srs)){ this["unitsLabelField"].text = Strings.getFile("Geoide").getString("InputBufferInMeter"); } else { this["unitsLabelField"].text = Strings.getFile("Geoide").getString("InputBufferInDegrees"); } } }