source: ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/Editor.mxml @ 134

Last change on this file since 134 was 134, checked in by patdui, 14 years ago
  • created expanding component that is used to view nested components.
  • enabled a login window to shut off the editor and registration page for now.
File size: 1.6 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
3                   xmlns:browser="clarin.cmdi.componentregistry.browser.*"
4                   xmlns:common="clarin.cmdi.componentregistry.common.*"
5                   xmlns:comp="clarin.cmdi.componentregistry.common.components.*"
6                   width="100%"
7                   height="100%"
8                   label="Editor..."
9                   creationComplete="{init();}">
10
11        <mx:Script source="EditorAS.as"/>
12
13        <mx:VBox width="100%"
14                         height="100%">
15
16                <mx:HBox width="100%"
17                                 height="40">
18                        <mx:Button id="createEmptyProfileBtn"
19                                           label="createEmptyProfile"
20                                           click="createEmptyProfile()"/>
21                </mx:HBox>
22
23                <mx:HBox width="100%"
24                                 height="80%">
25                        <comp:CMDComponentXMLEditor id="xmlEditor"
26                                                                                xml="{cmdComponent}"
27                                                                                width="50%"
28                                                                                dragEnter="{dragEnterHandler(event)}"
29                                                                                dragOver="{dragOverHandler(event)}"
30                                                                                dragDrop="{dragDropHandler(event)}"
31                                                                                toolTip="drag components from list to add..."/>
32                        <mx:DataGrid id="dataGrid"
33                                                 width="100%"
34                                                 dragEnabled="true"
35                                                 dataProvider="{componentsSrv.itemDescriptions}"
36                                                 columns="{browserColumns.getComponentColumns()}"
37                                                 allowMultipleSelection="true"/>
38
39                </mx:HBox>
40                <!--<mx:HBox width="100%"
41                                 height="300">
42                        <comp:XMLTextArea id="textView"
43                                                          styleName="xmlTextArea"
44                                                          editable="true"
45                                                          xmlData="{cmdComponent}"
46                                                          width="50%"
47                                                          height="300"/>
48                        <comp:ScrollableTextArea id="infoTextArea"
49                                                                         styleName="xmlTextArea"
50                                                                         editable="false"
51                                                                         text="{cmdComponent}"
52                                                                         width="50%"
53                                                                         height="300"/>
54                </mx:HBox>-->
55        </mx:VBox>
56
57</mx:Canvas>
Note: See TracBrowser for help on using the repository browser.