Menu

[r327]: / cairngorm3 / trunk / samples / insync / insync-modularExtended-messaging / src / ComposeMessageModule.mxml  Maximize  Restore  History

Download this file

43 lines (32 with data), 1.5 kB

 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
<?xml version="1.0" encoding="utf-8"?>
<mx:Module
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:spicefactory="http://www.spicefactory.org/parsley"
width="100%" height="100%" layout="vertical"
verticalAlign="middle" horizontalAlign="center" implements="com.adobe.cairngorm.module.IParsleyModule">
<mx:Script>
<![CDATA[
import com.adobe.cairngorm.module.IParsleyModule;
import insync.messaging.MessagingContext;
import insync.messaging.presentation.ComposeMessagePM;
import org.spicefactory.parsley.core.context.Context;
[Inject]
[Bindable]
public var model:ComposeMessagePM;
public function get contextBuilder():ContextBuilderTag
{
return contextBuilderTag;
}
]]>
</mx:Script>
<spicefactory:ContextBuilder id="contextBuilderTag" config="{ MessagingContext }" />
<spicefactory:Configure/>
<mx:Label text="Compose Message to: { model.contact.fullName }" />
<mx:TextInput id="subjectInput"
text="{ model.message.subject }"
change="model.message.subject = subjectInput.text" />
<mx:TextArea id="bodyInput"
text="{ model.message.body }"
change="model.message.body = bodyInput.text" />
<mx:Button label="Send Message" click="model.sendMessage()" />
</mx:Module>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.