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/01/28 10:29:29 UTC

[royale-asjs] branch develop updated: html: add header and section tags

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 a9b39f2  html: add header and section tags
a9b39f2 is described below

commit a9b39f2c6a24ad08b70e5e1e3de68474524decd2
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue Jan 28 11:29:19 2020 +0100

    html: add header and section tags
---
 .../HTML/src/main/resources/html-manifest.xml      |  2 +
 .../org/apache/royale/html/elements/Header.as      | 60 ++++++++++++++++++++++
 .../org/apache/royale/html/elements/Section.as     | 60 ++++++++++++++++++++++
 3 files changed, 122 insertions(+)

diff --git a/frameworks/projects/HTML/src/main/resources/html-manifest.xml b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
index 68e09f1..87367e5 100644
--- a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
+++ b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
@@ -32,6 +32,7 @@
     <component id="Div" class="org.apache.royale.html.elements.Div" />
     <component id="Em" class="org.apache.royale.html.elements.Em" />
     <component id="Form" class="org.apache.royale.html.elements.Form" />
+    <component id="Header" class="org.apache.royale.html.elements.Header" />
     <component id="H1" class="org.apache.royale.html.elements.H1" />
     <component id="H2" class="org.apache.royale.html.elements.H2" />
     <component id="H3" class="org.apache.royale.html.elements.H3" />
@@ -50,6 +51,7 @@
     <component id="Pre" class="org.apache.royale.html.elements.Pre" />
     <component id="Progress" class="org.apache.royale.html.elements.Progress" />
     <component id="S" class="org.apache.royale.html.elements.S" />
+    <component id="Section" class="org.apache.royale.html.elements.Section"/>
     <component id="Select" class="org.apache.royale.html.elements.Select"/>
     <component id="Small" class="org.apache.royale.html.elements.Small"/>
     <component id="Span" class="org.apache.royale.html.elements.Span" />
diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Header.as b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Header.as
new file mode 100644
index 0000000..7608e1a
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Header.as
@@ -0,0 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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;
+	import org.apache.royale.html.TextNodeContainerBase;
+
+	/**
+	 *  The Header class represents an HTML <header> element
+     *  
+	 *  
+     *  @toplevel
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion Royale 0.9.7
+	 */
+	public class Header extends TextNodeContainerBase
+	{
+		/**
+		 *  constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9.7
+		 */
+		public function Header()
+		{
+			super();
+		}
+
+		COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+			return addElementToWrapper(this,'header');
+        }
+    }
+}
diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Section.as b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Section.as
new file mode 100644
index 0000000..00e1df6
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Section.as
@@ -0,0 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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;
+	import org.apache.royale.html.TextNodeContainerBase;
+
+	/**
+	 *  The Section class represents an HTML <section> element
+     *  
+	 *  
+     *  @toplevel
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion Royale 0.9.7
+	 */
+	public class Section extends TextNodeContainerBase
+	{
+		/**
+		 *  constructor.
+		 *
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion Royale 0.9.7
+		 */
+		public function Section()
+		{
+			super();
+		}
+
+		COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+			return addElementToWrapper(this,'section');
+        }
+    }
+}