Sha256: 90a04b072d4ee81f6069e15ee9989407adbaf37a8685309e7f444ab51130aea0

Contents?: true

Size: 1.5 KB

Versions: 3

Compression:

Stored size: 1.5 KB

Contents

<?xml version="1.0" encoding="utf-8"?>
<EventMap xmlns="http://mate.asfusion.com/" xmlns:mx="http://www.adobe.com/2006/mxml">

	<mx:Script>
	<![CDATA[
			
		import mx.events.FlexEvent;
	
		import <%= base_package %>.models.constant.URL;
	
		import <%= base_package %>.views.posts.<%= class_name.pluralize %>Presenter;
	
	]]>
	</mx:Script>
	
	<!--	<Debugger level="{Debugger.ALL}"/>	-->
	
	<!-- Ask the <%= class_name.pluralize %>Presenter, the "NavigationManager/Model" for the <%= class_name.pluralize %>View, to change the Page visually! -->
	
	<EventHandlers type="{URL.<%= class_name.upcase %>_SHOW}">
		<MethodInvoker method="goto<%= class_name %>Show" generator="{<%= class_name.pluralize %>Presenter}"
			arguments="{[event.action, event.resource]}"/>
	</EventHandlers>
	
	<EventHandlers type="{URL.<%= class_name.pluralize.upcase %>_INDEX}">
		<MethodInvoker method="goto<%= class_name %>Index" generator="{<%= class_name.pluralize %>Presenter}"
			arguments="{[event.action, event.resource]}"/>
	</EventHandlers>
	
	<EventHandlers type="{URL.<%= class_name.upcase %>_EDIT_SHOW}">
		<MethodInvoker method="goto<%= class_name %>EditShow" generator="{<%= class_name.pluralize %>Presenter}"
			arguments="{[event.action, event.resource]}"/>
	</EventHandlers>
	
	<EventHandlers type="{URL.<%= class_name.pluralize.upcase %>_EDIT_INDEX}">
		<MethodInvoker method="goto<%= class_name %>EditIndex" generator="{<%= class_name.pluralize %>Presenter}"
			arguments="{[event.action, event.resource]}"/>
	</EventHandlers>
	
</EventMap>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_scaffold/templates/view_map.mxml.erb
emergent-core-0.1.01 rails_generators/emergent_scaffold/templates/view_map.mxml.erb
emergent-core-0.1.02 rails_generators/emergent_scaffold/templates/view_map.mxml.erb