You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/04/22 16:53:07 UTC

[royale-asjs] branch develop updated: basic: remove SetFocus bead for now since is not working to avoid confusion

This is an automated email from the ASF dual-hosted git repository.

carlosrovira 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 3e4ddea  basic: remove SetFocus bead for now since is not working to avoid confusion
3e4ddea is described below

commit 3e4ddea21e1b44436f7254ce3bf3e05a63e85b19
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Apr 22 18:53:01 2020 +0200

    basic: remove SetFocus bead for now since is not working to avoid confusion
---
 .../Basic/src/main/resources/basic-manifest.xml    |  1 -
 .../org/apache/royale/html/beads/SetFocus.as       | 97 ----------------------
 2 files changed, 98 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
index c95858d..caf9eff 100644
--- a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
@@ -148,7 +148,6 @@
     <component id="AccordionItemRenderer" class="org.apache.royale.html.supportClasses.AccordionItemRenderer"/>
     <component id="AccordionCollapseBead" class="org.apache.royale.html.beads.AccordionCollapseBead"/>
     <component id="DispatchInputFinishedBead" class="org.apache.royale.html.beads.DispatchInputFinishedBead"/>
-    <component id="SetFocus" class="org.apache.royale.html.beads.SetFocus"/>
     <component id="DispatchKeyboardEventBead" class="org.apache.royale.html.beads.DispatchKeyboardEventBead"/>
     <component id="TreeItemRenderer" class="org.apache.royale.html.supportClasses.TreeItemRenderer"/>
     <component id="TreeXMLItemRenderer" class="org.apache.royale.html.supportClasses.TreeXMLItemRenderer"/>
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as
deleted file mode 100644
index f412469..0000000
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as
+++ /dev/null
@@ -1,97 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  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 org.apache.royale.html.beads
-{
-	COMPILE::JS
-	{
-	import org.apache.royale.core.UIBase;
-	}
-	import org.apache.royale.core.IBead;
-	import org.apache.royale.core.IStrand;
-
-	/**
-	 *  The SetFocus class allows any component to set focus.
-	 *  
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10.2
-	 *  @playerversion AIR 2.6
-	 *  @productversion Royale 0.9.7
-	 */
-	public class SetFocus implements IBead
-	{
-		/**
-		 *  constructor.
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion Royale 0.9.7
-		 */
-		public function SetFocus()
-		{
-		}
-
-		private var _strand:IStrand;
-		/**
-		 *  @copy org.apache.royale.core.IBead#strand
-		 *  
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10.2
-		 *  @playerversion AIR 2.6
-		 *  @productversion Royale 0.9.7
-		 */
-		public function set strand(value:IStrand):void
-		{
-			_strand = value;
-			if(_enableFocus)
-				setFocus();
-		}
-
-		/**
-		 * perform the set focus on the _strand
-		 */
-		public function setFocus():void
-		{
-			COMPILE::JS
-			{
-			if(_strand)
-				UIBase(_strand).element.focus();
-			}
-		}
-
-		private var _enableFocus:Boolean;
-		/**
-		 *  if true sets the focus on the _strand
-		 */
-		[Bindable("enableFocusChanged")]
-		public function get enableFocus():Boolean
-		{
-			return _enableFocus;
-		}
-		public function set enableFocus(value:Boolean):void
-		{
-			if(_enableFocus != value)
-			{
-				_enableFocus = value;
-				if(_enableFocus)
-					setFocus();
-			}
-		}
-	}
-}