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/07/20 06:50:55 UTC
[royale-asjs] branch feature/MXRoyale updated: Update UITextField.as
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 e5674e1 Update UITextField.as
e5674e1 is described below
commit e5674e1ef818a5a60b404c0f8b52a6ef4eb77f36
Author: alinakazi <AL...@GMAIL.COM>
AuthorDate: Fri Jul 20 11:50:54 2018 +0500
Update UITextField.as
---
.../src/main/royale/mx/core/UITextField.as | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
index 881c6c1..60920ab 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
@@ -436,6 +436,7 @@ public class UITextField extends UIComponent
//return (mirror) ? _x : super.x;
return super.x;
}
+
//----------------------------------
// width
@@ -555,6 +556,25 @@ public class UITextField extends UIComponent
if (invalidateDisplayListFlag)
validateNow(); */
}
+ public function get text():String
+ {
+ // TextField's text property can't be set to null.
+ /* if (!value)
+ value = "";
+
+ // Performance optimization: if the text hasn't changed,
+ // don't let the player think that we're dirty.
+ if (!isHTML && super.text == value)
+ return;
+
+ super.text = value;
+
+ explicitHTMLText = null;
+
+ if (invalidateDisplayListFlag)
+ validateNow(); */
+ return "";
+ }
//----------------------------------
// textColor
@@ -2683,6 +2703,26 @@ public class UITextField extends UIComponent
/**
* @private
*/
+ public function set selectable(value:Boolean):void
+ {
+ }
+
+ public function get selectable():Boolean
+ {
+ return true;
+ }
+ public function set getCharIndexAtPoint(value:int):void
+ {
+ }
+
+ public function get getCharIndexAtPoint():int
+ {
+ return 0;
+ }
+
+ /**
+ * @private
+ */
/* public function set showInAutomationHierarchy(value:Boolean):void
{
} */