flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Sets the tree's selectedItem to the selected tree node and dispatches a change event.
Date Thu, 26 Jan 2017 16:26:47 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 815228c4b -> 7864b2441


Sets the tree's selectedItem to the selected tree node and dispatches a change event.


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

Branch: refs/heads/develop
Commit: 7864b24413382cce484fbe136c8ac58bb490bbeb
Parents: 815228c
Author: Peter Ent <pent@apache.org>
Authored: Thu Jan 26 11:26:44 2017 -0500
Committer: Peter Ent <pent@apache.org>
Committed: Thu Jan 26 11:26:44 2017 -0500

----------------------------------------------------------------------
 .../html/beads/controllers/TreeSingleSelectionMouseController.as | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7864b244/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
index a668fa4..db8f7fc 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/controllers/TreeSingleSelectionMouseController.as
@@ -23,6 +23,7 @@ package org.apache.flex.html.beads.controllers
 	import org.apache.flex.events.ItemClickedEvent;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.events.Event;
+	import org.apache.flex.events.IEventDispatcher;
 
 	/**
 	 *  The TreeSingleSelectionMouseController class is a controller for 
@@ -76,7 +77,10 @@ package org.apache.flex.html.beads.controllers
 				flatList.openNode(node);
 			}
 			
+			listModel.selectedItem = node;
 			listModel.dispatchEvent(new Event("dataProviderChanged"));
+			
+			IEventDispatcher(_strand).dispatchEvent(new Event("change"));
 		}
 	}
 }


Mime
View raw message