<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mate examples: #10 Presentation Model</title>
	<atom:link href="http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/</link>
	<description>Stuff about Flex. And Air. Oh and Flash. And probably about other stuff as well. Who knows?</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:56:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Presentation Model (or MVVM) with Mate &#124; Odds On Flex</title>
		<link>http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/comment-page-1/#comment-610</link>
		<dc:creator>Presentation Model (or MVVM) with Mate &#124; Odds On Flex</dc:creator>
		<pubDate>Mon, 31 Jan 2011 22:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexstuff.co.uk/?p=556#comment-610</guid>
		<description>[...] and he even has an article that focuses on the exact same topic as this article. Unfortunately, his Presentation Model article does not continue with the nice example application he used in his previous articles and instead [...]</description>
		<content:encoded><![CDATA[<p>[...] and he even has an article that focuses on the exact same topic as this article. Unfortunately, his Presentation Model article does not continue with the nice example application he used in his previous articles and instead [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laura Haglund</title>
		<link>http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/comment-page-1/#comment-508</link>
		<dc:creator>Laura Haglund</dc:creator>
		<pubDate>Sat, 22 May 2010 21:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexstuff.co.uk/?p=556#comment-508</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;@AmyBlankenship This isn&#039;t it, is it? http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">@AmyBlankenship This isn&#39;t it, is it? <a href="http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/" rel="nofollow">http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gillesguillemin</title>
		<link>http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/comment-page-1/#comment-502</link>
		<dc:creator>gillesguillemin</dc:creator>
		<pubDate>Thu, 06 May 2010 12:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexstuff.co.uk/?p=556#comment-502</guid>
		<description>You can use getters and setters:
The interface:
&lt;code&gt;package views.presentationmodel
{
   public interface IPresentationModel
    {
       function get myVar() : String
       function set myVar(value : String) : void
    }
}&lt;/code&gt;

and the presentation model:
&lt;code&gt;package views.presentationmodel
{
    import flash.events.EventDispatcher;
    import flash.events.MouseEvent;
    
    import mx.controls.Alert;

    public class PresentationModel1 extends EventDispatcher implements IPresentationModel
    {
        private var _myVar : String;
        
        [Bindable]
        public function get myVar() : String
        {
            return _myVar;
        }

        public function set myVar( value : String ) : void
        {
            _myVar = value;
        }

    }
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You can use getters and setters:<br />
The interface:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package views.presentationmodel<br />
{<br />
&nbsp; &nbsp;public interface IPresentationModel<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;function get myVar() : String<br />
&nbsp; &nbsp; &nbsp; &nbsp;function set myVar(value : String) : void<br />
&nbsp; &nbsp; }<br />
}</div></td></tr></tbody></table></div>
<p>and the presentation model:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package views.presentationmodel<br />
{<br />
&nbsp; &nbsp; import flash.events.EventDispatcher;<br />
&nbsp; &nbsp; import flash.events.MouseEvent;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; import mx.controls.Alert;<br />
<br />
&nbsp; &nbsp; public class PresentationModel1 extends EventDispatcher implements IPresentationModel<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _myVar : String;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; [Bindable]<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function get myVar() : String<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return _myVar;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function set myVar( value : String ) : void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _myVar = value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; }<br />
}</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: CK</title>
		<link>http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/comment-page-1/#comment-501</link>
		<dc:creator>CK</dc:creator>
		<pubDate>Thu, 06 May 2010 09:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexstuff.co.uk/?p=556#comment-501</guid>
		<description>&quot;You can as easily imagine using data binding to dynamically change view’s properties (visible, enabled, label, whatnot) with some bindable variables in the presentation model.&quot;

I am new to Flex. This maybe out of topic. How to define bindable variables in IPresentationModel interface? Maybe an improved example besides buttonX_clickHandler can provide a better idea....

Thanks.</description>
		<content:encoded><![CDATA[<p>&#8220;You can as easily imagine using data binding to dynamically change view’s properties (visible, enabled, label, whatnot) with some bindable variables in the presentation model.&#8221;</p>
<p>I am new to Flex. This maybe out of topic. How to define bindable variables in IPresentationModel interface? Maybe an improved example besides buttonX_clickHandler can provide a better idea&#8230;.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.flexstuff.co.uk/2009/08/25/mate-examples-10-presentation-model/comment-page-1/#comment-377</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Wed, 24 Feb 2010 17:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexstuff.co.uk/?p=556#comment-377</guid>
		<description>&quot;Here we go. Next, my new favourite one: a port of PureMVC’s mediator pattern which is one of the best ways to use Mate with the new Flex 4 component architecture.&quot;

Do we have any chance to read this next article?

Anyhow , a big thank for the ten previous ones.</description>
		<content:encoded><![CDATA[<p>&#8220;Here we go. Next, my new favourite one: a port of PureMVC’s mediator pattern which is one of the best ways to use Mate with the new Flex 4 component architecture.&#8221;</p>
<p>Do we have any chance to read this next article?</p>
<p>Anyhow , a big thank for the ten previous ones.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

