-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprototype-array-test.otml
66 lines (65 loc) · 2.65 KB
/
prototype-array-test.otml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<otrunk id="33754150-b594-11d9-9669-0800200c9a66" >
<imports>
<import class="org.concord.otrunk.OTSystem"/>
<import class="org.concord.otrunk.view.OTFolderObject"/>
<import class="org.concord.otrunk.view.OTViewEntry"/>
<import class="org.concord.otrunk.view.OTViewService"/>
<import class="org.concord.otrunk.view.prototype.OTPrototypeViewEntry"/>
<import class="org.concord.otrunk.view.prototype.OTPrototypeEventController"/>
<import class="org.concord.otrunk.view.prototype.OTPrototypeMapEntry"/>
<import class="org.concord.otrunk.ui.OTChoice"/>
<import class="org.concord.otrunk.ui.OTText"/>
<import class="org.concord.otrunk.view.document.OTCompoundDoc"/>
</imports>
<objects>
<OTSystem>
<services>
<OTViewService>
<viewEntries>
<OTViewEntry
objectClass="org.concord.otrunk.ui.OTText"
viewClass="org.concord.otrunk.ui.swing.OTTextView"/>
<OTPrototypeViewEntry
objectClass="org.concord.otrunk.view.OTFolderObject"
viewClass="org.concord.otrunk.view.prototype.OTPrototypeView"
viewEntry="${choice_view}">
<prototype>
<OTChoice>
<choices>
<OTText local_id="original_child_1"
name="original child 1" text="child 1 text"/>
<OTText name="replacement 1" text="r1 text" />
<OTText name="replacement 2" text="r2 text" />
<OTText name="replacement 3" text="r3 text" />
</choices>
</OTChoice>
</prototype>
<controller>
<OTPrototypeEventController>
<mapping>
<OTPrototypeMapEntry
modelProperty="children[0]"
prototypeProperty="currentChoice"/>
</mapping>
</OTPrototypeEventController>
</controller>
</OTPrototypeViewEntry>
<OTViewEntry local_id="choice_view"
objectClass="org.concord.otrunk.ui.OTChoice"
viewClass="org.concord.otrunk.ui.swing.OTChoiceComboBoxView"/>
</viewEntries>
</OTViewService>
</services>
<root>
<OTFolderObject>
<children>
<object refid="${original_child_1}"/>
<OTText name="original child 2" text="child 2 text"/>
<OTText name="original child 2" text="child 2 text"/>
</children>
</OTFolderObject>
</root>
</OTSystem>
</objects>
</otrunk>