categories of additional tags for roads
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / FreeTextEditor.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <edit:SingleTagEditor
3         xmlns:mx="http://www.adobe.com/2006/mxml" 
4         xmlns:edit="net.systemeD.potlatch2.mapfeatures.editors.*"
5         xmlns:flexlib="flexlib.controls.*"
6         verticalGap="0"
7         width="100%"
8         toolTip="{fieldDescription}">
9
10   <mx:Label text="{fieldName}:"/>
11   <flexlib:PromptingTextInput id="inputBox" prompt="{prompt}" text="{value}" width="100%" change="value = inputBox.text"/>
12
13   <mx:Script><![CDATA[
14   
15       [Bindable(event="factory_set")]
16       protected function get prompt():String {
17           return _factory == null ? null : FreeTextEditorFactory(_factory).notPresentText;
18       }
19       
20   ]]></mx:Script>
21 </edit:SingleTagEditor>
22