-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprototype-view.otml
64 lines (63 loc) · 2.51 KB
/
prototype-view.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
<?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.OTButton"/>
<import class="org.concord.framework.otrunk.view.OTFrame"/>
<import class="org.concord.otrunk.ui.OTText"/>
<import class="org.concord.otrunk.view.document.OTCompoundDoc"/>
</imports>
<objects>
<OTSystem>
<services>
<OTViewService>
<viewEntries>
<OTViewEntry local_id="text_edit"
objectClass="org.concord.otrunk.ui.OTText"
viewClass="org.concord.otrunk.ui.swing.OTTextEditView"/>
<OTViewEntry
objectClass="org.concord.otrunk.ui.OTButton"
viewClass="org.concord.otrunk.ui.swing.OTButtonView"/>
<OTPrototypeViewEntry local_id="button_edit"
objectClass="org.concord.otrunk.ui.OTButton"
viewClass="org.concord.otrunk.view.prototype.OTPrototypeView"
viewEntry="${text_edit}">
<prototype>
<OTText text="default" />
</prototype>
<controller>
<OTPrototypeEventController>
<mapping>
<OTPrototypeMapEntry
modelProperty="text" prototypeProperty="text"/>
</mapping>
</OTPrototypeEventController>
</controller>
</OTPrototypeViewEntry>
<OTViewEntry local_id="document_view"
objectClass="org.concord.otrunk.view.document.OTDocument"
viewClass="org.concord.otrunk.view.document.OTDocumentView"/>
</viewEntries>
</OTViewService>
</services>
<root>
<OTCompoundDoc>
<bodyText>
<object refid="${button}" viewid="${button_edit}"/>
<hr/>
<object refid="${button}"/>
</bodyText>
<documentRefs>
<OTButton local_id="button" text="Click Me"/>
</documentRefs>
</OTCompoundDoc>
</root>
</OTSystem>
</objects>
</otrunk>