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:editor="clarin.cmdi.componentregistry.editor.*" |
---|
6 | width="100%" |
---|
7 | height="100%" |
---|
8 | label="Component Editor" |
---|
9 | creationComplete="init()" |
---|
10 | implements="clarin.cmdi.componentregistry.common.components.RegistryView" xmlns:components="clarin.cmdi.componentregistry.common.components.*" |
---|
11 | > |
---|
12 | |
---|
13 | <mx:Script source="EditorAS.as"/> |
---|
14 | |
---|
15 | <mx:VBox width="100%" height="100%"> |
---|
16 | |
---|
17 | <mx:VBox width="100%" minHeight="30"> |
---|
18 | <editor:EditorButtonBar id="buttonBar" |
---|
19 | width="100%" |
---|
20 | height="25" |
---|
21 | saveClick="saveSpec(true, UploadService.UPDATE)" |
---|
22 | saveAsNewClick="saveSpec(true, UploadService.NEW)" |
---|
23 | publishClick="publishSpec()" |
---|
24 | cancelClick="cancel()" |
---|
25 | /> |
---|
26 | <mx:Text id="errorMessageField" |
---|
27 | text="{uploadService.message}" |
---|
28 | visible='{errorMessageField.text != ""}' |
---|
29 | includeInLayout='{errorMessageField.text != ""}'/> |
---|
30 | <mx:ProgressBar id="uploadProgress" |
---|
31 | label="" |
---|
32 | mode="manual" |
---|
33 | visible="false" |
---|
34 | includeInLayout="false"/> |
---|
35 | </mx:VBox> |
---|
36 | |
---|
37 | <mx:VDividedBox width="100%" height="100%" verticalScrollPolicy="off"> |
---|
38 | <mx:VBox width="100%" height="60%"> |
---|
39 | <editor:CMDComponentXMLEditor id="xmlEditor" |
---|
40 | cmdSpec="{cmdSpec}" |
---|
41 | editorChange="handleEditorChange(event)" |
---|
42 | width="100%" |
---|
43 | /> |
---|
44 | </mx:VBox> |
---|
45 | |
---|
46 | <mx:VBox styleName="borderStyles" width="100%" height="40%"> |
---|
47 | <mx:Label text="Drag existing components onto edit canvas"/> |
---|
48 | <browser:BrowserOverviewList id="componentsPaletteOverview" |
---|
49 | width="100%" height="90%" |
---|
50 | buttonsEnabled="false" |
---|
51 | spaceSwitchEnabled="true" |
---|
52 | browserDataProvider="{componentsSrv.itemDescriptions}" |
---|
53 | browserColumns="{browserColumns.getComponentColumns()}" |
---|
54 | creationComplete="initPaletteOverview();"/> |
---|
55 | </mx:VBox> |
---|
56 | |
---|
57 | </mx:VDividedBox> |
---|
58 | </mx:VBox> |
---|
59 | |
---|
60 | </mx:Canvas> |
---|