You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by al...@apache.org on 2018/05/24 10:41:09 UTC
[royale-asjs] branch feature/MXRoyale updated: Update ListBase for
DropDownList
This is an automated email from the ASF dual-hosted git repository.
alinakazi pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/MXRoyale by this push:
new a73a8a2 Update ListBase for DropDownList
a73a8a2 is described below
commit a73a8a2650582be016e8df8d7e14e69432268ae3
Author: alinakazi <AL...@GMAIL.COM>
AuthorDate: Thu May 24 15:41:03 2018 +0500
Update ListBase for DropDownList
labelfield, requireselection ,changing added
---
.../spark/components/supportClasses/ListBase.as | 30 +++++++++++-----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
index 592ae1b..9a168bb 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
@@ -91,7 +91,7 @@ use namespace mx_internal; //ListBase and List share selection properties that
* @playerversion AIR 1.5
* @productversion Royale 0.9.4
*/
-//[Event(name="changing", type="spark.events.IndexChangeEvent")]
+[Event(name="changing", type="spark.events.IndexChangeEvent")]
/**
* Dispatched after the selection has changed.
@@ -533,7 +533,7 @@ public class ListBase extends SkinnableComponent
/**
* @private
*/
- //private var _labelField:String = "label";
+ private var _labelField:String = "label";
/**
* @private
@@ -558,23 +558,23 @@ public class ListBase extends SkinnableComponent
* @playerversion AIR 1.5
* @productversion Royale 0.9.4
*/
- /* public function get labelField():String
+ public function get labelField():String
{
return _labelField;
- } */
+ }
/**
* @private
*/
- /* public function set labelField(value:String):void
+ public function set labelField(value:String):void
{
if (value == _labelField)
return;
_labelField = value;
- labelFieldOrFunctionChanged = true;
- invalidateProperties();
- } */
+ //labelFieldOrFunctionChanged = true;
+ //invalidateProperties();
+ }
//----------------------------------
// labelFunction
@@ -685,7 +685,7 @@ public class ListBase extends SkinnableComponent
* @private
* Storage for the requireSelection property.
*/
- //private var _requireSelection:Boolean = false;
+ private var _requireSelection:Boolean = false;
/**
* @private
@@ -709,15 +709,15 @@ public class ListBase extends SkinnableComponent
* @playerversion AIR 1.5
* @productversion Royale 0.9.4
*/
- /* public function get requireSelection():Boolean
+ public function get requireSelection():Boolean
{
return _requireSelection;
- } */
+ }
/**
* @private
*/
- /* public function set requireSelection(value:Boolean):void
+ public function set requireSelection(value:Boolean):void
{
if (value == _requireSelection)
return;
@@ -726,15 +726,15 @@ public class ListBase extends SkinnableComponent
// We only need to update if the value is changing
// from false to true
- if (value == true)
+ /* if (value == true)
{
//Make sure to disable preventSelection since these two properties are polar opposites.
preventSelection = false;
requireSelectionChanged = true;
invalidateProperties();
- }
- } */
+ } */
+ }
//----------------------------------
// selectedIndex
--
To stop receiving notification emails like this one, please contact
alinakazi@apache.org.