flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject [45/47] git commit: [flex-sdk] [refs/heads/develop] - Move TextSkinBase to correct package
Date Sun, 17 Aug 2014 08:24:44 GMT
Move TextSkinBase to correct package


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/fa3ac54d
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/fa3ac54d
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/fa3ac54d

Branch: refs/heads/develop
Commit: fa3ac54d55b10e41c704a4910fc93fa8f64fba91
Parents: e994529
Author: Om <bigosmallm@gmail.com>
Authored: Fri Aug 15 13:53:37 2014 -0700
Committer: Om <bigosmallm@gmail.com>
Committed: Fri Aug 15 13:53:37 2014 -0700

----------------------------------------------------------------------
 .../src/spark/skins/android4/TextSkinBase.as    | 212 -------------------
 1 file changed, 212 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/fa3ac54d/frameworks/projects/mobiletheme/src/spark/skins/android4/TextSkinBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/android4/TextSkinBase.as b/frameworks/projects/mobiletheme/src/spark/skins/android4/TextSkinBase.as
deleted file mode 100644
index 79ce852..0000000
--- a/frameworks/projects/mobiletheme/src/spark/skins/android4/TextSkinBase.as
+++ /dev/null
@@ -1,212 +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 spark.skins.android4.supportClasses
-{
-	
-	import flash.display.DisplayObject;
-	
-	import mx.core.mx_internal;
-	
-	import spark.components.supportClasses.StyleableTextField;
-	
-	use namespace mx_internal;
-	
-	/**
-	 *  ActionScript-based skin for text input controls in mobile applications that
-	 *  uses a StyleableTextField class for the text display. 
-	 * 
-	 *  @see spark.components.supportClasses.StyleableTextField
-	 * 
-	 *  @langversion 3.0
-	 *  @playerversion Flash 10
-	 *  @playerversion AIR 2.5 
-	 *  @productversion Flex 4.5
-	 */
-	public class TextSkinBase extends MobileSkin 
-	{
-		//--------------------------------------------------------------------------
-		//
-		//  Constructor
-		//
-		//--------------------------------------------------------------------------
-		/**
-		 *  Constructor.
-		 * 
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10
-		 *  @playerversion AIR 2.5 
-		 *  @productversion Flex 4.5
-		 * 
-		 */
-		public function TextSkinBase()
-		{
-			super();
-		}
-		
-		//--------------------------------------------------------------------------
-		//
-		//  Graphics variables
-		//
-		//--------------------------------------------------------------------------
-		
-		/**
-		 *  Defines the border.
-		 * 
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10
-		 *  @playerversion AIR 2.5 
-		 *  @productversion Flex 4.5
-		 */  
-		
-		//--------------------------------------------------------------------------
-		//
-		//  Layout variables
-		//
-		//--------------------------------------------------------------------------
-		
-		/**
-		 *  Defines the corner radius.
-		 * 
-		 *  @langversion 3.0
-		 *  @playerversion Flash 10
-		 *  @playerversion AIR 2.5 
-		 *  @productversion Flex 4.5
-		 */  
-		
-		protected var layoutBorderSize:uint;
-		
-		//--------------------------------------------------------------------------
-		//
-		//  Variables
-		//
-		//--------------------------------------------------------------------------
-		
-		/**
-		 *  @private
-		 * 
-		 *  Instance of the border graphics.
-		 */
-		protected var border:DisplayObject;
-		
-		private var borderVisibleChanged:Boolean = false;
-		
-		//--------------------------------------------------------------------------
-		//
-		//  Skin parts
-		//
-		//--------------------------------------------------------------------------
-		
-		/**
-		 *  textDisplay skin part.
-		 */
-		public var textDisplay:StyleableTextField;
-		
-		[Bindable]
-		/**
-		 *  Bindable promptDisplay skin part. Bindings fire when promptDisplay is
-		 *  removed and added for proper updating by the SkinnableTextBase.
-		 */
-		public var promptDisplay:StyleableTextField;
-		
-		//--------------------------------------------------------------------------
-		//
-		//  Overridden methods
-		//
-		//--------------------------------------------------------------------------
-		
-		/**
-		 *  @private
-		 */
-		override protected function createChildren():void
-		{
-			super.createChildren();
-			
-			if (!textDisplay)
-			{
-				textDisplay = StyleableTextField(createInFontContext(StyleableTextField));
-				textDisplay.styleName = this;
-				textDisplay.editable = true;
-				textDisplay.useTightTextBounds = false;
-				addChild(textDisplay);
-			}
-		}
-		
-		/**
-		 *  @private 
-		 */ 
-		protected function createPromptDisplay():StyleableTextField
-		{
-			var prompt:StyleableTextField = StyleableTextField(createInFontContext(StyleableTextField));
-			prompt.styleName = this;
-			prompt.editable = false;
-			prompt.mouseEnabled = false;
-			prompt.useTightTextBounds = false;
-			prompt.focusEnabled = false;
-			return prompt;
-		}
-	
-		/**
-		 *  @private
-		 */
-
-		override public function styleChanged(styleProp:String):void
-		{
-			var allStyles:Boolean = !styleProp || styleProp == "styleName";
-			
-			if (allStyles || styleProp == "borderVisible")
-			{
-				borderVisibleChanged = true;
-				invalidateProperties();
-			}
-			
-			if (allStyles || styleProp.indexOf("padding") == 0)
-			{
-				invalidateDisplayList();
-			}
-			
-			super.styleChanged(styleProp);
-		}
-		
-		/**
-		 *  @private
-		 */
-		override protected function commitCurrentState():void
-		{
-			super.commitCurrentState();
-			
-			alpha = currentState.indexOf("disabled") == -1 ? 1 : 0.5;
-			
-			var showPrompt:Boolean = currentState.indexOf("WithPrompt") >= 0;
-			
-			if (showPrompt && !promptDisplay)
-			{
-				promptDisplay = createPromptDisplay();
-				addChild(promptDisplay);
-			}
-			else if (!showPrompt && promptDisplay)
-			{
-				removeChild(promptDisplay);
-				promptDisplay = null;
-			}
-			
-			invalidateDisplayList();
-		}   
-	}
-}
\ No newline at end of file


Mime
View raw message