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/07/19 12:08:58 UTC
[royale-asjs] 02/04: Revert "Implement editable in emulation ComboBase - but now no mousedown reaction either"
This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 25b036a4218b62fcd1a1a83f2e41d27f992ca872
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Tue Jul 19 15:03:06 2022 +0300
Revert "Implement editable in emulation ComboBase - but now no mousedown reaction either"
This reverts commit 0ddf20c1b0b9c25e675d20497415a84df758a6c6.
---
.../src/main/royale/mx/controls/ComboBox.as | 33 ----------------------
1 file changed, 33 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as
index ef5c894444..523fa9b386 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBox.as
@@ -35,8 +35,6 @@ import mx.effects.Tween;
import org.apache.royale.geom.Rectangle;
import org.apache.royale.geom.Point;
import org.apache.royale.core.IUIBase;
-import org.apache.royale.core.IStrand;
-import org.apache.royale.html.beads.DisableBead;
import mx.managers.ISystemManager;
import mx.events.FlexMouseEvent;
import mx.core.UIComponentGlobals;
@@ -98,10 +96,6 @@ import mx.managers.ISystemManager;
import mx.managers.PopUpManager;
import mx.styles.CSSStyleDeclaration;
import mx.utils.MatrixUtil;
-import org.apache.royale.express.TextInput;
-import org.apache.royale.core.IContentView;
-import org.apache.royale.html.TextInput;
-import org.apache.royale.core.IStrand;
use namespace mx_internal;
*/
@@ -712,33 +706,6 @@ public class ComboBox extends ComboBase
{
(model as ISelectionModel).labelField = value;
}
-
-
- private var _editable:Boolean;
- private var _inputDisableBead:DisableBead;
- override public function get editable():Boolean
- {
- return _editable;
- }
-
- override public function set editable(value:Boolean):void
- {
- _editable = value;
- if (_inputDisableBead)
- {
- _inputDisableBead.disabled = !value;
- }
- }
-
- override public function addedToParent():void
- {
- super.addedToParent();
- var ti:IStrand = (view as IComboBoxView).textInputField as IStrand;
- _inputDisableBead = new DisableBead();
- _inputDisableBead.disabled = !_editable;
- ti.addBead(_inputDisableBead);
- }
-
//--------------------------------------------------------------------------
//