royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alinak...@apache.org
Subject [royale-asjs] branch feature/MXRoyale updated: TextEvent.as Added for flash.events.TextEvent
Date Wed, 20 Jun 2018 07:05:19 GMT
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 63e81a7  TextEvent.as Added for flash.events.TextEvent
63e81a7 is described below

commit 63e81a7b79134829f8a18aa72c7cf6105ec91fc9
Author: alinakazi <ALINAKAZI1990@GMAIL.COM>
AuthorDate: Wed Jun 20 12:05:18 2018 +0500

    TextEvent.as Added for flash.events.TextEvent
---
 .../src/main/royale/mx/events/TextEvent.as         | 111 +++++++++++++++++++++
 1 file changed, 111 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/events/TextEvent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/events/TextEvent.as
new file mode 100644
index 0000000..ffe228e
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/TextEvent.as
@@ -0,0 +1,111 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+COMPILE::SWF
+{
+import flash.events.TextEvent;  
+}
+/* import mx.events.Event;*/
+import org.apache.royale.events.Event;
+import org.apache.royale.events.IRoyaleEvent;
+
+/**
+ *
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ *  @royalesuppresspublicvarwarning
+ */
+COMPILE::SWF
+public class TextEvent extends flash.events.TextEvent
+{
+	public function TextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,
text:String = "")
+    {
+        super(type, bubbles, cancelable,text);
+    }
+}
+
+/**
+ *
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ *  @royalesuppresspublicvarwarning
+ */
+COMPILE::JS
+public class TextEvent extends org.apache.royale.events.Event
+{
+    public static const TEXT_INPUT : String = "textInput"
+		
+	//--------------------------------------------------------------------------
+	//
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Constructor.
+	 *
+	 *  @param type The event type; indicates the action that caused the event.
+	 *
+	 *  @param bubbles Specifies whether the event can bubble
+	 *  up the display list hierarchy.
+	 *
+	 *  @param cancelable Specifies whether the behavior
+	 *  associated with the event can be prevented.
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Royale 0.9.3
+	 */
+	public function TextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false,
text:String = "")
+							  
+	{
+		super(type, bubbles, cancelable);
+	}
+	
+	private var _text:String;
+	public function get text():String
+	{
+		return _text;
+	}
+    public function set text(value:String):void
+	{
+		_text = value;
+	}
+	
+
+	
+}
+
+}


Mime
View raw message