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

Last change on this file since 206 was 206, checked in by patdui, 14 years ago
  • added as3httpclient for doing http DELETE commands etc...
  • implemented editor
  • Using Basic Header security to authorize POST and DELETEs
  • renamed Register to Importer
File size: 1.7 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:Button id="saveBtn"
22                                           label="save"
23                                           click="saveProfile()"/>
24                </mx:HBox>
25        <mx:Text id="errorMessageField"
26                                         text="{uploadService.message}" visible='{uploadService.message != ""}' includeInLayout='{uploadService.message != ""}' />
27                <mx:ProgressBar id="uploadProgress"
28                                                        label=""
29                                                        mode="manual"
30                                                        visible="false"
31                                                        includeInLayout="false"/>
32
33                <mx:VBox width="100%"
34                                 height="80%">
35                        <comp:CMDComponentXMLEditor id="xmlEditor"
36                                                                                cmdSpec="{cmdSpec}"
37                                                                                width="50%"
38                                                                                toolTip="drag components from list to add..." editorChange="handleEditorChange(event)" />
39                        <mx:DataGrid id="dataGrid"
40                                                 width="50%"
41                                                 dragEnabled="true"
42                                                 dataProvider="{componentsSrv.itemDescriptions}"
43                                                 columns="{browserColumns.getComponentColumns()}"
44                                                 allowMultipleSelection="true"/>
45
46                </mx:VBox>
47                <mx:HBox width="100%"
48                                 height="300">
49                        <comp:ScrollableTextArea id="infoTextArea"
50                                                                         styleName="xmlTextArea"
51                                                                         editable="false"
52                                                                         text="{cmdSpec.toXml()}"
53                                                                         width="50%"
54                                                                         height="300"/>
55                </mx:HBox>
56        </mx:VBox>
57
58</mx:Canvas>
Note: See TracBrowser for help on using the repository browser.