You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2022/10/31 11:51:26 UTC

[royale-asjs] 01/02: Play with different beads for multi-selection

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch d_and_d_improvemets
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 5ef0a42bbc70cb827cd530df60b0e9df5b958ebc
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Wed Oct 26 13:07:52 2022 +0300

    Play with different beads for multi-selection
---
 .../projects/MXRoyale/src/main/royale/mx/controls/Tree.as     | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Tree.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Tree.as
index da009f1063..554db2024c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Tree.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Tree.as
@@ -89,6 +89,9 @@ import org.apache.royale.html.beads.SingleSelectionDragImageBead;
 import mx.controls.beads.XMLTreeSingleSelectionDragSourceBead;
 import mx.controls.beads.TreeSingleSelectionDropTargetBead;
 import mx.controls.beads.XMLTreeSingleSelectionDropTargetBead;
+import org.apache.royale.html.beads.MultiSelectionTreeDragSourceBead;
+import org.apache.royale.html.beads.MultiSelectionDragImageBead;
+import org.apache.royale.html.beads.SensitiveMultiSelectionDropTargetBead;
 
 //--------------------------------------
 //  Events
@@ -3736,8 +3739,7 @@ public class Tree extends List
     override protected function setDropEnabled():void
     {
         getOrAddBeadByType(DataGridDrawingLayerBead, this);
-        getOrAddBeadByType(TreeSingleSelectionDropTargetBead, this);
-        getOrAddBeadByType(XMLTreeSingleSelectionDropTargetBead, this);
+        getOrAddBeadByType(SensitiveMultiSelectionDropTargetBead, this);
         getOrAddBeadByType(SingleSelectionDropIndicatorBead, this);
     }
 
@@ -3747,9 +3749,8 @@ public class Tree extends List
     override protected function setDragEnabled():void
     {
         // getOrAddBeadByType(TreeSingleSelectionDragSourceBead, this);
-        getOrAddBeadByType(TreeSingleSelectionDragSourceBead, this);
-        getOrAddBeadByType(XMLTreeSingleSelectionDragSourceBead, this);
-        getOrAddBeadByType(SingleSelectionDragImageBead, this);
+        getOrAddBeadByType(MultiSelectionTreeDragSourceBead, this);
+        getOrAddBeadByType(MultiSelectionDragImageBead, this);
     }
 }