This is an automated email from the ASF dual-hosted git repository.
pushminakazi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 1818fcb Update ComboBase.as
1818fcb is described below
commit 1818fcb7b6e75f5c37a6cb907fdb033b8b975153
Author: pashminakazi <[email protected]>
AuthorDate: Mon Oct 8 11:49:45 2018 +0500
Update ComboBase.as
---
.../MXRoyale/src/main/royale/mx/controls/ComboBase.as | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBase.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBase.as
index 118144e..8501371 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBase.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ComboBase.as
@@ -70,7 +70,9 @@ import mx.collections.XMLListCollection;
import mx.collections.ArrayCollection;
import mx.collections.ICollectionView;
import mx.collections.ListCollectionView;
-
+import org.apache.royale.html.beads.DisableBead;
+import org.apache.royale.events.Event;
+
/**
* The alpha of the content background for this component.
*
@@ -398,6 +400,7 @@ public class ComboBase extends UIComponent implements
/*IIMESupport,*/ IFocusMan
* @private
* Storage for enabled property.
*/
+ private var _disableBead:DisableBead;
private var _enabled:Boolean = false;
/**
@@ -412,13 +415,20 @@ public class ComboBase extends UIComponent implements
/*IIMESupport,*/ IFocusMan
*/
override public function get enabled():Boolean
{
- trace("ComboBox.enabled not implemented");
- return true;
+ return _enabled;
}
override public function set enabled(value:Boolean):void
{
- trace("ComboBox.enabled not implemented");
+ _enabled = value;
+ if (_disableBead == null) {
+ _disableBead = new DisableBead();
+ addBead(_disableBead);
+ }
+
+ _disableBead.disabled = !value;
+
+ dispatchEvent(new org.apache.royale.events.Event("enabledChanged"));
}
//--------------------------------------------------------------------------