Better handling of conflicting tags when merging and editing ways and nodes
[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         xmlns:controls="net.systemeD.controls.*"
7         width="100%"
8         toolTip="{fieldDescription}"
9     direction="{fieldDirection}" styleName="titledEditor">
10
11   <mx:Label text="{fieldName}:"/>
12   <controls:PromptingTextInputWarning id="inputBox" prompt="{prompt}" text="{value}" width="100%" 
13       focusOut="value = inputBox.text" enter="value = inputBox.text"
14       restrict="&#x0020;-&#x10FFFF;" />
15
16   <mx:Script><![CDATA[
17   
18       [Bindable(event="factory_set")]
19       protected function get prompt():String {
20           return _factory == null ? null : FreeTextEditorFactory(_factory).notPresentText;
21       }
22       
23   ]]></mx:Script>
24 </edit:SingleTagEditor>
25