My favorites | Sign in
Project Logo
                
Changes to /trunk/opportunities/src/com/tearaway_tea/opportunities/maps/OpportunitiesEventMap.mxml
r0 vs. r3   Edit
  Compare: vs.   Format:
Revision r3
Go to: 
/trunk/opportunities/src/com/tearaway_tea/opportunities/maps/OpportunitiesEventMap.mxml /trunk/opportunities/src/com/tearaway_tea/opportunities/maps/OpportunitiesEventMap.mxml   r3
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <EventMap
  3 xmlns="http://mate.asfusion.com/"
  4 xmlns:mx="http://www.adobe.com/2006/mxml">
  5
  6 <mx:Script>
  7 <![CDATA[
  8 import com.tearaway_tea.opportunities.data.OpportunityDataProvider;
  9 import com.tearaway_tea.opportunities.events.NavigationEvent;
  10 import com.tearaway_tea.opportunities.events.OpportunityEvent;
  11 ]]>
  12 </mx:Script>
  13
  14 <EventHandlers
  15 type="{OpportunityEvent.CREATE_OPPORTUNITY}">
  16 <MethodInvoker
  17 generator="{OpportunityDataProvider}"
  18 method="createOpportunity"/>
  19 </EventHandlers>
  20
  21 <EventHandlers
  22 type="{OpportunityEvent.EDIT_OPPORTUNITY}">
  23 <MethodInvoker
  24 generator="{OpportunityDataProvider}"
  25 method="editOpportunity"
  26 arguments="{[event.data]}"/>
  27 <EventAnnouncer
  28 type="{NavigationEvent.NAVIGATE_EDIT_VIEW}"
  29 generator="{NavigationEvent}"/>
  30 </EventHandlers>
  31
  32 <EventHandlers
  33 type="{OpportunityEvent.SAVE_OPPORTUNITY}">
  34 <MethodInvoker
  35 generator="{OpportunityDataProvider}"
  36 method="saveOpportunity"/>
  37 </EventHandlers>
  38
  39 <EventHandlers
  40 type="{OpportunityEvent.CLOSE_OPPORTUNITY}">
  41 <EventAnnouncer
  42 type="{NavigationEvent.NAVIGATE_LIST_VIEW}"
  43 generator="{NavigationEvent}"/>
  44 </EventHandlers>
  45
  46 </EventMap>
Hosted by Google Code