Menu

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

Download this file

39 lines (31 with data), 1.4 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
<?xml version="1.0" encoding="utf-8"?>
<spicefactory:ContextModule
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:spicefactory="http://www.spicefactory.org/parsley/flex"
width="100%" height="100%" layout="vertical"
verticalAlign="middle" horizontalAlign="center"
addedToStage="dispatchEvent( new Event( 'configureIOC', true ) )" >
<mx:Script>
<![CDATA[
import insync.messaging.MessagingContext;
import insync.messaging.presentation.ComposeMessagePM;
import org.spicefactory.parsley.core.Context;
import org.spicefactory.parsley.flex.FlexContextBuilder;
[Inject]
[Bindable]
public var model:ComposeMessagePM;
override public function buildContext(parent:Context, domain:ApplicationDomain):Context
{
return FlexContextBuilder.build(MessagingContext, parent, domain);
}
]]>
</mx:Script>
<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()" />
</spicefactory:ContextModule>
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.