royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 01/02: need to make mx.events version of Flash events like FocusEvent
Date Fri, 08 Jun 2018 03:56:42 GMT
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 0262499afbbcd9bcf9bd3598fa4556f305a3f203
Author: Alex Harui <aharui@apache.org>
AuthorDate: Thu Jun 7 20:54:56 2018 -0700

    need to make mx.events version of Flash events like FocusEvent
---
 .../src/main/royale/mx/core/UIComponent.as         |   3 +-
 .../src/main/royale/mx/events/FocusEvent.as        | 106 +++++++++++++++++++++
 2 files changed, 107 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index 596d951..4a1ae5c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -65,7 +65,6 @@ import org.apache.royale.html.supportClasses.ContainerContentArea;
 import org.apache.royale.utils.PointUtils;
 import org.apache.royale.utils.loadBeadFromValuesManager;
 
-import org.apache.royale.textLayout.events.FocusEvent;
 /*
 import mx.managers.IToolTipManagerClient;
 import mx.managers.SystemManager;
@@ -154,7 +153,7 @@ use namespace mx_internal;
 
 
 
-[Event(name="focusOut", type="org.apache.royale.textLayout.events.FocusEvent")]
+[Event(name="focusOut", type="mx.events.FocusEvent")]
 
 [Event(name="change", type="org.apache.royale.events.Event")]
 
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/events/FocusEvent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/events/FocusEvent.as
new file mode 100644
index 0000000..3218ea8
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/FocusEvent.as
@@ -0,0 +1,106 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.Event;        
+}
+/* import mx.events.Event;*/
+import org.apache.royale.events.Event;
+import org.apache.royale.events.IRoyaleEvent;
+
+/**
+ *  Represents event objects that are dispatched when focus changes.
+ *
+ *  @see mx.core.UIComponent
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ *  @royalesuppresspublicvarwarning
+ */
+COMPILE::SWF
+public class FocusEvent extends flash.events.Event
+{
+}
+
+/**
+ *  Represents event objects that are dispatched when focus changes.
+ *
+ *  @see mx.core.UIComponent
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 0.9.3
+ *  @royalesuppresspublicvarwarning
+ */
+COMPILE::JS
+public class FocusEvent extends org.apache.royale.events.Event
+{
+   /*  include "../core/Version.as"; */
+	public static const FOCUS_IN:String = "focusIn";
+    public static const FOCUS_OUT:String = "focusOut";
+	
+	//--------------------------------------------------------------------------
+	//
+	//  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 FocusEvent(type:String, bubbles:Boolean = false,
+							  cancelable:Boolean = false
+							  )
+	{
+		super(type, bubbles, cancelable);
+	}
+	
+
+	
+
+	
+}
+
+}

-- 
To stop receiving notification emails like this one, please contact
aharui@apache.org.

Mime
View raw message