1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" |
---|
3 | includeInLayout="{visible}" |
---|
4 | paddingLeft="50" |
---|
5 | > |
---|
6 | <mx:Script> |
---|
7 | <![CDATA[ |
---|
8 | import clarin.cmdi.componentregistry.editor.model.CMDComponentElement; |
---|
9 | |
---|
10 | [Bindable] |
---|
11 | public var element:CMDComponentElement; |
---|
12 | ]]> |
---|
13 | </mx:Script> |
---|
14 | |
---|
15 | <mx:HBox> |
---|
16 | <mx:HBox minWidth="160"> |
---|
17 | <mx:Label text="Name: " fontWeight="bold"/> |
---|
18 | <mx:Label text="{element.name}" /> |
---|
19 | </mx:HBox> |
---|
20 | |
---|
21 | <mx:HBox minWidth="120" visible="{element.valueSchemeSimple != null}" |
---|
22 | includeInLayout="{element.valueSchemeSimple != null}"> |
---|
23 | <mx:Label text="Type: " fontWeight="bold"/> |
---|
24 | <mx:Label text="{element.valueSchemeSimple}" /> |
---|
25 | </mx:HBox> |
---|
26 | |
---|
27 | <mx:HBox minWidth="120" visible="{element.valueSchemePattern != null}" |
---|
28 | includeInLayout="{element.valueSchemePattern != null}"> |
---|
29 | <mx:Label text="Pattern: " fontWeight="bold"/> |
---|
30 | <mx:Label text="{element.valueSchemePattern}" /> |
---|
31 | </mx:HBox> |
---|
32 | |
---|
33 | <mx:HBox minWidth="120" visible="{element.valueSchemeEnumeration != null}" |
---|
34 | includeInLayout="{element.valueSchemeEnumeration != null}"> |
---|
35 | <mx:Label text="Type: " fontWeight="bold"/> |
---|
36 | <mx:Label text="vocabulary" /> |
---|
37 | </mx:HBox> |
---|
38 | <!-- |
---|
39 | </mx:HBox> |
---|
40 | |
---|
41 | <mx:HBox> |
---|
42 | --> |
---|
43 | <mx:HBox minWidth="160"> |
---|
44 | <mx:Label text="Cardinality: " fontWeight="bold"/> |
---|
45 | <mx:Label text="{element.cardinalityMin+' - '+element.cardinalityMax}" /> |
---|
46 | </mx:HBox> |
---|
47 | |
---|
48 | <mx:HBox minWidth="120"> |
---|
49 | <mx:Label text="Display priority: " fontWeight="bold"/> |
---|
50 | <mx:Label text="{element.displayPriority}" /> |
---|
51 | </mx:HBox> |
---|
52 | |
---|
53 | <mx:HBox visible="{element.attributeList.length > 0}" |
---|
54 | includeInLayout="{element.attributeList.length > 0}"> |
---|
55 | <mx:Label text="Attribute count: " fontWeight="bold"/> |
---|
56 | <mx:Label text="{element.attributeList.length}" /> |
---|
57 | </mx:HBox> |
---|
58 | </mx:HBox> |
---|
59 | </mx:VBox> |
---|