6a941b57c8faa209effdac8f396d74a181f53a0b
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / RestrictionRenderer.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:Canvas
3         xmlns:mx="http://www.adobe.com/2006/mxml" 
4         xmlns:edit="net.systemeD.potlatch2.mapfeatures.editors.*"
5         width="50" height="50"
6         toolTip="{data.description}" enabled="{data.value != null}"
7         mouseEnabled="false" mouseChildren="false">
8
9     <mx:Image x="0" y="0" source="@Embed('../../../../../embedded/restriction.svg')" />
10     
11     <mx:TextInput id="valueText" text="{data.value==null ? '--' : data.scalar}" editable="{data.isEditable}"
12         backgroundAlpha="0"
13         fontWeight="bold" fontSize="16" textAlign="center" borderStyle="none"
14         width="50" x="0" y="7" />
15     
16     <mx:Label id="unitText" text="{data.unit}"
17         x="0" y="{height - unitText.height - 6}" width="50" textAlign="center" />
18     
19 </mx:Canvas>
20