08ed76e89aec9c188dae89c0fd61c0618858b8a9
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / FreeTextEditor.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <edit:SingleTagEditor
3         xmlns:fx="http://ns.adobe.com/mxml/2009"
4         xmlns:mx="library://ns.adobe.com/flex/mx"
5         xmlns:edit="net.systemeD.potlatch2.mapfeatures.editors.*"
6         xmlns:flexlib="flexlib.controls.*"
7         xmlns:controls="net.systemeD.controls.*"
8         width="100%"
9         toolTip="{fieldDescription}"
10     direction="{fieldDirection}" styleName="titledEditor">
11
12   <mx:Label text="{fieldName}:"/>
13   <controls:PromptingTextInputWarning id="inputBox" prompt="{prompt}" text="{value}" width="100%" 
14       focusOut="value = inputBox.text" enter="value = inputBox.text"
15       restrict="&#x0020;-&#x10FFFF;" />
16
17   <fx:Script><![CDATA[
18   
19       [Bindable(event="factory_set")]
20       protected function get prompt():String {
21           return _factory == null ? null : FreeTextEditorFactory(_factory).notPresentText;
22       }
23       
24   ]]></fx:Script>
25 </edit:SingleTagEditor>
26