Merge branch 'master' into history
[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:s="library://ns.adobe.com/flex/spark"
6         xmlns:edit="net.systemeD.potlatch2.mapfeatures.editors.*"
7         xmlns:flexlib="flexlib.controls.*"
8         xmlns:controls="net.systemeD.controls.*"
9         width="100%"
10         toolTip="{fieldDescription}"
11     styleName="titledEditor" label="{fieldName}:">
12
13     <controls:PromptingTextInputWarning id="inputBox" prompt="{prompt}" text="{value}" width="100%"
14       focusOut="value = inputBox.text" enter="value = inputBox.text; focusManager.getNextFocusManagerComponent().setFocus();"
15       restrict="&#x0020;-&#x10FFFF;" />
16   <fx:Script><![CDATA[
17       [Bindable(event="factory_set")]
18       protected function get prompt():String {
19           return _factory == null ? null : FreeTextEditorFactory(_factory).notPresentText;
20       }
21       
22   ]]></fx:Script>
23 </edit:SingleTagEditor>
24