Changeset 206 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/xmlBrowsePanel.mxml
- Timestamp:
- 03/03/10 12:01:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/xmlBrowsePanel.mxml
r161 r206 2 2 <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" 3 3 xmlns:comp="clarin.cmdi.componentregistry.common.components.*" > 4 5 <mx:Script> 6 <![CDATA[ 7 // seting focus manually when a user clicks, this is the best I can do at the moment. 8 //A form handles focus differently then for instance a list or a TextArea so scrolling using keys is a bit inconsistent among the different view at the moment. 9 private function setFocusOnClick(event:MouseEvent):void { 10 setFocus(); 11 } 12 ]]> 13 </mx:Script> 4 <mx:Script> 5 <![CDATA[ 6 import clarin.cmdi.componentregistry.editor.model.CMDModelFactory; 7 ]]> 8 </mx:Script> 14 9 15 10 <mx:XML id="cmdComponent"/> 16 11 <comp:CMDComponentXMLBrowser id="xmlBrowse" 17 xml="{cmdComponent}"12 cmdSpec="{CMDModelFactory.createModel(cmdComponent)}" 18 13 width="100%" 19 14 height="100%" 20 click="setFocusOnClick(event);"21 15 /> 22 16 </mx:Canvas>
Note: See TracChangeset
for help on using the changeset viewer.