Changeset 1982
- Timestamp:
- 09/03/10 04:50:09 (17 months ago)
- Location:
- ui/trunk/xml/simo-ui/PredictionModelUI
- Files:
-
- 5 edited
-
locale/en_US/predictionModel.properties (modified) (1 diff)
-
locale/fi_FI/predictionModel.properties (modified) (1 diff)
-
src/components/MetadataComponent.mxml (modified) (8 diffs)
-
src/components/NewModelComponent.mxml (modified) (8 diffs)
-
src/components/PredictionModelWindow.mxml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ui/trunk/xml/simo-ui/PredictionModelUI/locale/en_US/predictionModel.properties
r1981 r1982 1 1 #en_US 2 lang = Select language 3 prediction = Prediction Model 2 4 name = Name 3 5 implement_at = Implemented at -
ui/trunk/xml/simo-ui/PredictionModelUI/locale/fi_FI/predictionModel.properties
r1981 r1982 1 1 #fi_FI 2 lang = Valitse kieli 3 prediction = Ennustemalli 2 4 name = Nimi 3 5 implement_at = Toteutus -
ui/trunk/xml/simo-ui/PredictionModelUI/src/components/MetadataComponent.mxml
r1981 r1982 16 16 <mx:FormItem label="{resourceManager.getString('predictionModel','name')}:"> 17 17 <s:TextInput id="nameTI" 18 width=" 300"/>18 width="280"/> 19 19 </mx:FormItem> 20 20 <mx:FormItem label="{resourceManager.getString('predictionModel','implement_at')}:"> 21 21 <s:TextInput id="implementationTI" 22 width=" 300"/>22 width="280"/> 23 23 </mx:FormItem> 24 24 <mx:FormItem label="{resourceManager.getString('predictionModel','modelgrp')}:"> … … 40 40 paddingTop="5"> 41 41 <s:List id="authorList" 42 width="2 50"42 width="280" 43 43 height="50"/> 44 44 </mx:FormItem> … … 46 46 paddingTop="5"> 47 47 <s:TextArea id="descTA" 48 width=" 300"48 width="280" 49 49 height="50" 50 50 maxChars="250"/> … … 53 53 paddingTop="5"> 54 54 <s:TextArea id="publishTA" 55 width=" 300"55 width="280" 56 56 height="50" 57 57 maxChars="250"/> … … 60 60 paddingTop="5"> 61 61 <s:List id="speciesList" 62 width="2 50"62 width="280" 63 63 height="50"/> 64 64 </mx:FormItem> … … 66 66 paddingTop="5"> 67 67 <s:TextArea id="geoCoverageTA" 68 width=" 300"68 width="280" 69 69 height="50"/> 70 70 </mx:FormItem> … … 72 72 paddingTop="5"> 73 73 <s:TextArea id="apliesTA" 74 width=" 300"74 width="280" 75 75 height="50" 76 76 maxChars="250"/> … … 79 79 paddingTop="5"> 80 80 <s:TextArea id="materialTA" 81 width=" 300"81 width="280" 82 82 height="50" 83 83 maxChars="250"/> -
ui/trunk/xml/simo-ui/PredictionModelUI/src/components/NewModelComponent.mxml
r1981 r1982 47 47 <mx:FormItem label="{resourceManager.getString('predictionModel','name')}:"> 48 48 <s:TextInput id="nameTI" 49 width=" 300"/>49 width="280"/> 50 50 </mx:FormItem> 51 51 <mx:FormItem label="{resourceManager.getString('predictionModel','implement_at')}:"> 52 52 <s:TextInput id="implementationTI" 53 width=" 300"/>53 width="280"/> 54 54 </mx:FormItem> 55 55 <mx:FormItem label="{resourceManager.getString('predictionModel','modelgrp')}:"> … … 71 71 paddingTop="5"> 72 72 <s:List id="authorList" 73 width="2 50"73 width="280" 74 74 height="50"/> 75 75 </mx:FormItem> … … 77 77 paddingTop="5"> 78 78 <s:TextArea id="descTA" 79 width=" 300"79 width="280" 80 80 height="50" 81 81 maxChars="250"/> … … 84 84 paddingTop="5"> 85 85 <s:TextArea id="publishTA" 86 width=" 300"86 width="280" 87 87 height="50" 88 88 maxChars="250"/> … … 91 91 paddingTop="5"> 92 92 <s:List id="speciesList" 93 width="2 50"93 width="280" 94 94 height="50"/> 95 95 </mx:FormItem> … … 97 97 paddingTop="5"> 98 98 <s:TextArea id="geoCoverageTA" 99 width=" 300"99 width="280" 100 100 height="50"/> 101 101 </mx:FormItem> … … 103 103 paddingTop="5"> 104 104 <s:TextArea id="apliesTA" 105 width=" 300"105 width="280" 106 106 height="50" 107 107 maxChars="250"/> … … 110 110 paddingTop="5"> 111 111 <s:TextArea id="materialTA" 112 width=" 300"112 width="280" 113 113 height="50" 114 114 maxChars="250"/> -
ui/trunk/xml/simo-ui/PredictionModelUI/src/components/PredictionModelWindow.mxml
r1981 r1982 8 8 height="100%" 9 9 currentState="initial" 10 title=" Prediction Model"10 title="{resourceManager.getString('predictionModel','prediction')}" 11 11 horizontalCenter="0" 12 12 verticalCenter="0" … … 24 24 import flash.events.Event; 25 25 26 import mx.collections.ArrayCollection; 26 27 import mx.managers.PopUpManager; 27 28 … … 54 55 PopUpManager.removePopUp(this); 55 56 } 57 58 private function languageChange(event:Event):void{ 59 trace("languageChange"); 60 var cb:DropDownList = event.target as DropDownList; 61 var temp:Object = cb.selectedItem; 62 cb.dataProvider.removeItemAt(cb.selectedIndex); 63 cb.dataProvider.addItemAt(temp,0); 64 cb.selectedIndex = 0; 65 66 var chain:Array=[]; 67 for (var i:int=0;i<cb.dataProvider.length;i++ ){ 68 chain.push(cb.dataProvider[i].locale); 69 } 70 resourceManager.localeChain = chain; 71 } 72 56 73 57 74 ]]> … … 67 84 <components:SearchComponent id="searchWindow" includeIn="initial"/> 68 85 86 69 87 <s:Group id="metaInfo" includeIn="initial" x="360" y="20"> 70 88 <s:HGroup gap="10"> … … 79 97 useHandCursor="true"/> 80 98 </s:HGroup> 99 <s:DropDownList id="languageCombo" 100 prompt="{resourceManager.getString('predictionModel','lang')}" 101 dataProvider="{new ArrayCollection([{locale:'fi_FI',label:'Suomi'}, {locale:'en_US', label:'English'}])}" 102 change="languageChange(event)" width="150" 103 x="330"/> 81 104 82 105 <mx:TabBar
Note: See TracChangeset
for help on using the changeset viewer.
