You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2021/09/19 21:40:47 UTC

[royale-asjs] branch develop updated: Added background and backgroundColor in IUITextField.as and UITextField.as

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 9648547  Added background and backgroundColor in IUITextField.as and UITextField.as
9648547 is described below

commit 96485470d6d876b74334139da8fc8c9741a225a5
Author: pashminakazi <pa...@gmail.com>
AuthorDate: Sun Sep 19 14:40:34 2021 -0700

    Added background and backgroundColor in IUITextField.as and UITextField.as
---
 .../src/main/royale/mx/core/IUITextField.as        | 22 ++++++++++++++++++++++
 .../src/main/royale/mx/core/UITextField.as         | 18 ++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as
index 2eb36ff..0424e0c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/IUITextField.as
@@ -167,6 +167,28 @@ package mx.core
                                endIndex:int = -1):void;
 							   
 		function getCharBoundaries(charIndex:int):Rectangle;
+		
+		/**
+		 *  @copy flash.text.TextField#background
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		function get background():Boolean;
+		function set background(value:Boolean):void;
+
+		/**
+		 *  @copy flash.text.TextField#backgroundColor
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		function get backgroundColor():uint;
+		function set backgroundColor(value:uint):void;
         
     }
     
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 2da9ded..62f6762 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextField.as
@@ -3038,6 +3038,24 @@ public class UITextField  extends UIComponent implements IUITextField
 		trace("interface method getCharBoundaries of IUITextField is implemented without stub in UITextField");
 		return null;
 	 }
+	 
+	 public var _background:Boolean = false;
+	 
+	 public function get background():Boolean {
+		return _background;
+	 }
+	 public function set background(value:Boolean):void{
+		_background = value;
+	 }
+
+	 public var _backgroundColor:uint = 0xFFFFFF;
+	 
+	 override public function get backgroundColor():uint {
+		return _backgroundColor;
+	 }
+	 override public function set backgroundColor(value:uint):void {
+		_backgroundColor = value;
+	 }
 }
 
 }