more style tweaks to make everything not blue and leave reasonable spaces
[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         width="100%"
7         toolTip="{fieldDescription}">
8
9   <mx:Box direction="{fieldDirection}" styleName="titledEditor">
10   <mx:Label text="{fieldName}:"/>
11   <flexlib:PromptingTextInput id="inputBox" prompt="{prompt}" text="{value}" width="100%" change="value = inputBox.text"/>
12   </mx:Box>
13
14   <mx:Script><![CDATA[
15   
16       [Bindable(event="factory_set")]
17       protected function get prompt():String {
18           return _factory == null ? null : FreeTextEditorFactory(_factory).notPresentText;
19       }
20       
21   ]]></mx:Script>
22 </edit:SingleTagEditor>
23