more turn restriction stuff, and checkboxes, and a bunch of little fixes
[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:Box direction="{fieldDirection}">
11   <mx:Label text="{fieldName}:"/>
12   <flexlib:PromptingTextInput id="inputBox" prompt="{prompt}" text="{value}" width="100%" change="value = inputBox.text"/>
13   </mx:Box>
14
15   <mx:Script><![CDATA[
16   
17       [Bindable(event="factory_set")]
18       protected function get prompt():String {
19           return _factory == null ? null : FreeTextEditorFactory(_factory).notPresentText;
20       }
21       
22   ]]></mx:Script>
23 </edit:SingleTagEditor>
24