main views need to implement IApplicationView
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/21a19ef3 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/21a19ef3 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/21a19ef3 Branch: refs/heads/release0.8.0 Commit: 21a19ef32b9be6238a365086492cc0820c8508d1 Parents: 7b3e618 Author: Alex Harui <aha...@apache.org> Authored: Wed May 17 16:37:56 2017 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Wed May 17 21:48:40 2017 -0700 ---------------------------------------------------------------------- .../org/apache/flex/mdl/NavigationLayout.as | 32 +++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/21a19ef3/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/NavigationLayout.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/NavigationLayout.as b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/NavigationLayout.as index a6444ed..bce771f 100644 --- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/NavigationLayout.as +++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/NavigationLayout.as @@ -18,6 +18,8 @@ //////////////////////////////////////////////////////////////////////////////// package org.apache.flex.mdl { + import org.apache.flex.core.IApplicationView; + import org.apache.flex.events.Event; import org.apache.flex.html.Group; COMPILE::JS @@ -35,7 +37,7 @@ package org.apache.flex.mdl * @playerversion AIR 2.6 * @productversion FlexJS 0.8 */ - public class NavigationLayout extends Group + public class NavigationLayout extends Group implements IApplicationView { /** * constructor. @@ -52,6 +54,34 @@ package org.apache.flex.mdl className = ""; //set to empty string avoid 'undefined' output when no class selector is assigned by user; } + private var _applicationModel:Object; + + [Bindable("modelChanged")] + + /** + * A reference to the Application's model. Usually, + * a view is displaying the main model for an + * application. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + public function get applicationModel():Object + { + return _applicationModel; + } + + /** + * @private + */ + public function set applicationModel(value:Object):void + { + _applicationModel = value; + dispatchEvent(new Event("modelChanged")); + } + /** * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement */