royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [royale-asjs] 09/22: add TextFieldView;
Date Fri, 16 Mar 2018 17:41:08 GMT
This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch feature/jewel-ui-set
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit d0a62abfeefc72ad136a87a3bdaf37fdaed33798
Author: Carlos Rovira <carlosrovira@apache.org>
AuthorDate: Tue Mar 13 18:01:55 2018 +0100

    add TextFieldView;
---
 .../projects/Jewel/src/main/royale/JewelClasses.as |  2 +
 .../apache/royale/jewel/beads/TextFieldView.as}    | 57 +++++++++++++---------
 2 files changed, 35 insertions(+), 24 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
index 3cb788e..b2dfb99 100644
--- a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
+++ b/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
@@ -31,6 +31,8 @@ package
 	    
         COMPILE::SWF
 	    {
+            import org.apache.royale.html.beads.TextFieldView; TextFieldView;
+            
             import org.apache.royale.jewel.beads.SliderThumbView; SliderThumbView;
             import org.apache.royale.jewel.beads.SliderTrackView; SliderTrackView;
 
diff --git a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/TextFieldView.as
similarity index 51%
copy from frameworks/projects/Jewel/src/main/royale/JewelClasses.as
copy to frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/TextFieldView.as
index 3cb788e..884d8d6 100644
--- a/frameworks/projects/Jewel/src/main/royale/JewelClasses.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/TextFieldView.as
@@ -16,30 +16,39 @@
 //  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package
+package org.apache.royale.jewel.beads
 {
-
+	import flash.text.TextFieldType;
+	
     /**
-     *  @private
-     *  This class is used to link additional classes into jewel.swc
-     *  beyond those that are found by dependecy analysis starting
-     *  from the classes specified in manifest.xml.
+     *  The TextFieldView class is the default view for
+     *  the org.apache.royale.jewel.Label class.
+     *  It displays text using a TextField, so there is no
+     *  right-to-left text support in this view.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion Royale 0.0
      */
-    internal class JewelClasses
-    {
-        import org.apache.royale.jewel.beads.SliderView; SliderView;
-	    
-        COMPILE::SWF
-	    {
-            import org.apache.royale.jewel.beads.SliderThumbView; SliderThumbView;
-            import org.apache.royale.jewel.beads.SliderTrackView; SliderTrackView;
-
-            import org.apache.royale.jewel.beads.RadioButtonView; RadioButtonView;
-        }
-
-        import org.apache.royale.jewel.beads.layouts.HorizontalLayout; HorizontalLayout;
-        import org.apache.royale.jewel.beads.layouts.VerticalLayout; VerticalLayout;
-        import org.apache.royale.jewel.beads.layouts.VerticalLayoutWithPaddingAndGap; VerticalLayoutWithPaddingAndGap;
-    }
-
-}
\ No newline at end of file
+	public class TextFieldView extends TextFieldViewBase
+	{
+        /**
+         *  Constructor.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.0
+         */
+		public function TextFieldView()
+		{
+			super();
+			
+			textField.selectable = false;
+			textField.type = TextFieldType.DYNAMIC;
+			textField.mouseEnabled = false;
+			textField.autoSize = "left";
+		}
+	}
+}

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

Mime
View raw message