Make mdl Menu a basic List to allow for change event, and for reading
selectedItem


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/981ffb83
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/981ffb83
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/981ffb83

Branch: refs/heads/feature/amf
Commit: 981ffb83c0f86112c3d4a754019f02aee91a4176
Parents: 222f142
Author: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
Authored: Tue Jul 25 13:06:23 2017 +0300
Committer: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
Committed: Tue Jul 25 13:06:23 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/mdl/Menu.as                  | 6 +++---
 .../MaterialDesignLite/src/main/resources/defaults.css         | 5 +++++
 2 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/981ffb83/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
index b151d0d..bc69fc4 100644
--- 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Menu.as
@@ -18,8 +18,8 @@
 
////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.mdl
 {
-       import org.apache.flex.html.DataContainer;
-    import org.apache.flex.mdl.beads.UpgradeElement;
+       import org.apache.flex.html.List;
+       import org.apache.flex.mdl.beads.UpgradeElement;
 
     COMPILE::JS
     {
@@ -43,7 +43,7 @@ package org.apache.flex.mdl
      *  @playerversion AIR 2.6
      *  @productversion FlexJS 0.8
      */    
-       public class Menu extends DataContainer
+       public class Menu extends org.apache.flex.html.List
        {
         /**
          *  Constructor.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/981ffb83/frameworks/projects/MaterialDesignLite/src/main/resources/defaults.css
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/resources/defaults.css 
b/frameworks/projects/MaterialDesignLite/src/main/resources/defaults.css
index 033ec2a..95d3b03 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/resources/defaults.css
+++ b/frameworks/projects/MaterialDesignLite/src/main/resources/defaults.css
@@ -106,6 +106,11 @@ Navigation
     IItemRenderer: 
ClassReference("org.apache.flex.mdl.itemRenderers.NavigationLinkItemRenderer");
 }
 
+MenuItemRenderer
+{
+       IBeadController: 
ClassReference("org.apache.flex.html.beads.controllers.ItemRendererMouseController");
+}
+
 Menu
 {
     IBeadView: ClassReference("org.apache.flex.mdl.beads.views.ListView");

Reply via email to