You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2017/12/04 18:07:15 UTC

[royale-asjs] branch develop updated: Added Col and Colgroup

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

harbs 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 33ab0cd  Added Col and Colgroup
33ab0cd is described below

commit 33ab0cd9ef2e8c7c94715101e5134775cbcf6347
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Dec 4 20:07:05 2017 +0200

    Added Col and Colgroup
---
 .../HTML/src/main/resources/html-manifest.xml      |  2 +
 .../royale/org/apache/royale/html/elements/Col.as  | 92 ++++++++++++++++++++++
 .../org/apache/royale/html/elements/Colgroup.as    | 92 ++++++++++++++++++++++
 3 files changed, 186 insertions(+)

diff --git a/frameworks/projects/HTML/src/main/resources/html-manifest.xml b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
index 7bc4231..d16bf18 100644
--- a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
+++ b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
@@ -34,6 +34,8 @@
     <component id="P" class="org.apache.royale.html.elements.P" />
     <component id="Pre" class="org.apache.royale.html.elements.Pre" />
     <component id="Code" class="org.apache.royale.html.elements.Code" />
+    <component id="Col" class="org.apache.royale.html.elements.Col" />
+    <component id="Colgroup" class="org.apache.royale.html.elements.Colgroup" />
     <component id="S" class="org.apache.royale.html.elements.S" />
     <component id="Select" class="org.apache.royale.html.elements.Select"/>
     <component id="Small" class="org.apache.royale.html.elements.Small"/>
diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Col.as b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Col.as
new file mode 100644
index 0000000..6ed2278
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Col.as
@@ -0,0 +1,92 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.elements
+{
+    COMPILE::JS
+    {
+        import org.apache.royale.core.WrappedHTMLElement;
+		import org.apache.royale.html.util.addElementToWrapper;
+    }
+	import org.apache.royale.html.NodeElementBase;
+
+	/**
+	 *  The Col class represents an HTML <col> element
+     *  
+	 *  
+     *  @toplevel
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion Royale 0.0
+	 */
+	public class Col extends NodeElementBase
+	{
+		/**
+		 *  constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9
+		 */
+		public function Col()
+		{
+			super();
+		}
+
+        private var _span:Number;
+        /**
+         *  The column span
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9
+         */
+        public function get span():Number
+        {
+            COMPILE::SWF
+            {
+                return _src;
+            }
+            COMPILE::JS
+            {
+                return (element as HTMLTableColElement).span;
+            }
+        }
+        public function set span(value:Number):void
+        {
+            COMPILE::SWF
+            {
+                _src = value;
+            }
+
+            COMPILE::JS
+            {
+                (element as HTMLTableColElement).span = value;
+            }
+        }
+		
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+			return addElementToWrapper(this,'col');
+        }
+    }
+}
diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Colgroup.as b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Colgroup.as
new file mode 100644
index 0000000..93cac6b
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Colgroup.as
@@ -0,0 +1,92 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.elements
+{
+    COMPILE::JS
+    {
+        import org.apache.royale.core.WrappedHTMLElement;
+		import org.apache.royale.html.util.addElementToWrapper;
+    }
+	import org.apache.royale.html.NodeElementBase;
+
+	/**
+	 *  The Colgroup class represents an HTML <colgroup> element
+     *  
+	 *  
+     *  @toplevel
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion Royale 0.0
+	 */
+	public class Colgroup extends NodeElementBase
+	{
+		/**
+		 *  constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9
+		 */
+		public function Colgroup()
+		{
+			super();
+		}
+
+        private var _span:Number;
+        /**
+         *  The column span
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion Royale 0.9
+         */
+        public function get span():Number
+        {
+            COMPILE::SWF
+            {
+                return _src;
+            }
+            COMPILE::JS
+            {
+                return (element as HTMLTableColElement).span;
+            }
+        }
+        public function set span(value:Number):void
+        {
+            COMPILE::SWF
+            {
+                _src = value;
+            }
+
+            COMPILE::JS
+            {
+                (element as HTMLTableColElement).span = value;
+            }
+        }
+		
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+			return addElementToWrapper(this,'colgroup');
+        }
+    }
+}

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].