Headings (H1 to H6) and change Anchor to A (to match with the rest of js html 
tags)


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

Branch: refs/heads/feature-autobuild/example-maven-dirs
Commit: 6db257f7de0ca892b8740563c78847e46da8f193
Parents: 010ec0b
Author: Carlos Rovira <carlosrov...@apache.org>
Authored: Fri Nov 4 17:08:42 2016 +0100
Committer: Carlos Rovira <carlosrov...@apache.org>
Committed: Fri Nov 4 17:09:35 2016 +0100

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/html/A.as     | 138 +++++++++++++++++++
 .../main/flex/org/apache/flex/html/Anchor.as    | 138 -------------------
 .../src/main/flex/org/apache/flex/html/H1.as    | 112 +++++++++++++++
 .../src/main/flex/org/apache/flex/html/H2.as    | 112 +++++++++++++++
 .../src/main/flex/org/apache/flex/html/H3.as    | 112 +++++++++++++++
 .../src/main/flex/org/apache/flex/html/H4.as    | 112 +++++++++++++++
 .../src/main/flex/org/apache/flex/html/H5.as    | 112 +++++++++++++++
 .../src/main/flex/org/apache/flex/html/H6.as    | 112 +++++++++++++++
 .../HTML/src/main/resources/basic-manifest.xml  |   8 +-
 9 files changed, 817 insertions(+), 139 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as
new file mode 100644
index 0000000..5712b88
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as
@@ -0,0 +1,138 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.html
+{
+       import org.apache.flex.core.UIBase;
+
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+
+       /**
+        *  The A(Anchor) class represents an HTML <a> anchor element
+     *  
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.0
+        */
+       public class A extends UIBase
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.0
+                */
+               public function A()
+               {
+                       super();
+               }
+               
+        private var _text:String = "";
+
+        /**
+         *  The text of the link
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get text():String
+               {
+            COMPILE::SWF
+            {
+                return _text;
+            }
+            COMPILE::JS
+            {
+                return textNode.nodeValue;
+            }
+               }
+
+               public function set text(value:String):void
+               {
+            COMPILE::SWF
+            {
+                _text = value;
+            }
+            COMPILE::JS
+            {
+                textNode.nodeValue = value;
+            }
+               }
+        
+        private var _href:String = "#";
+
+        /**
+         *  the link url
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get href():String
+               {
+            return _href;   
+               }
+
+               public function set href(value:String):void
+               {
+            _href = value;
+            
+            COMPILE::JS
+            {
+                (element as HTMLElement).setAttribute('href', value);
+            }
+               }
+               
+        COMPILE::JS
+        private var textNode:Text;
+               
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+                * @flexjsignorecoercion HTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+                       var a:HTMLElement = document.createElement('a') as 
HTMLElement;
+            a.setAttribute('href', href);
+            
+            textNode = document.createTextNode('') as Text;
+            a.appendChild(textNode); 
+
+                       element = a as WrappedHTMLElement;
+            
+            positioner = element;
+            positioner.style.position = 'relative';
+                       element.flexjs_wrapper = this;
+            
+            className = typeNames = 'A';
+
+            return element;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Anchor.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Anchor.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Anchor.as
deleted file mode 100644
index a967aef..0000000
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Anchor.as
+++ /dev/null
@@ -1,138 +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.flex.html
-{
-       import org.apache.flex.core.UIBase;
-
-    COMPILE::JS
-    {
-        import org.apache.flex.core.WrappedHTMLElement;            
-    }
-
-       /**
-        *  The Anchor class represents an HTML <a> element
-     *  
-        *  
-        *  @langversion 3.0
-        *  @playerversion Flash 10.2
-        *  @playerversion AIR 2.6
-        *  @productversion FlexJS 0.0
-        */
-       public class Anchor extends UIBase
-       {
-               /**
-                *  constructor.
-                *
-                *  @langversion 3.0
-                *  @playerversion Flash 10.2
-                *  @playerversion AIR 2.6
-                *  @productversion FlexJS 0.0
-                */
-               public function Anchor()
-               {
-                       super();
-               }
-               
-        private var _text:String = "";
-
-        /**
-         *  The text of the link
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function get text():String
-               {
-            COMPILE::SWF
-            {
-                return _text;
-            }
-            COMPILE::JS
-            {
-                return textNode.nodeValue;
-            }
-               }
-
-               public function set text(value:String):void
-               {
-            COMPILE::SWF
-            {
-                _text = value;
-            }
-            COMPILE::JS
-            {
-                textNode.nodeValue = value;
-            }
-               }
-        
-        private var _href:String = "#";
-
-        /**
-         *  the link url
-         *  
-         *  @langversion 3.0
-         *  @playerversion Flash 10.2
-         *  @playerversion AIR 2.6
-         *  @productversion FlexJS 0.0
-         */
-               public function get href():String
-               {
-            return _href;   
-               }
-
-               public function set href(value:String):void
-               {
-            _href = value;
-            
-            COMPILE::JS
-            {
-                (element as HTMLElement).setAttribute('href', value);
-            }
-               }
-               
-        COMPILE::JS
-        private var textNode:Text;
-               
-        /**
-         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
-                * @flexjsignorecoercion HTMLElement
-         */
-        COMPILE::JS
-        override protected function createElement():WrappedHTMLElement
-        {
-                       var a:HTMLElement = document.createElement('a') as 
HTMLElement;
-            a.setAttribute('href', href);
-            
-            textNode = document.createTextNode('') as Text;
-            a.appendChild(textNode); 
-
-                       element = a as WrappedHTMLElement;
-            
-            positioner = element;
-            positioner.style.position = 'relative';
-                       element.flexjs_wrapper = this;
-            
-            className = typeNames = 'Anchor';
-
-            return element;
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as
new file mode 100644
index 0000000..62b09a5
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as
@@ -0,0 +1,112 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.html
+{
+       import org.apache.flex.core.UIBase;
+
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+
+       /**
+        *  The H1 class represents an HTML <h1> element
+     *  
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.0
+        */
+       public class H1 extends UIBase
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.0
+                */
+               public function H1()
+               {
+                       super();
+               }
+               
+        private var _text:String = "";
+
+        /**
+         *  The text of the heading
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get text():String
+               {
+            COMPILE::SWF
+            {
+                return _text;
+            }
+            COMPILE::JS
+            {
+                return textNode.nodeValue;
+            }
+               }
+
+               public function set text(value:String):void
+               {
+            COMPILE::SWF
+            {
+                _text = value;
+            }
+            COMPILE::JS
+            {
+                textNode.nodeValue = value;
+            }
+               }
+               
+        COMPILE::JS
+        private var textNode:Text;
+               
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+                * @flexjsignorecoercion HTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+                       var h1:HTMLElement = document.createElement('h1') as 
HTMLElement;
+            
+            textNode = document.createTextNode('') as Text;
+            h1.appendChild(textNode); 
+
+                       element = h1 as WrappedHTMLElement;
+            
+            positioner = element;
+            positioner.style.position = 'relative';
+                       element.flexjs_wrapper = this;
+            
+            className = typeNames = 'H1';
+
+            return element;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as
new file mode 100644
index 0000000..d937d3b
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as
@@ -0,0 +1,112 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.html
+{
+       import org.apache.flex.core.UIBase;
+
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+
+       /**
+        *  The H2 class represents an HTML <h1> element
+     *  
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.0
+        */
+       public class H2 extends UIBase
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.0
+                */
+               public function H2()
+               {
+                       super();
+               }
+               
+        private var _text:String = "";
+
+        /**
+         *  The text of the heading
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get text():String
+               {
+            COMPILE::SWF
+            {
+                return _text;
+            }
+            COMPILE::JS
+            {
+                return textNode.nodeValue;
+            }
+               }
+
+               public function set text(value:String):void
+               {
+            COMPILE::SWF
+            {
+                _text = value;
+            }
+            COMPILE::JS
+            {
+                textNode.nodeValue = value;
+            }
+               }
+               
+        COMPILE::JS
+        private var textNode:Text;
+               
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+                * @flexjsignorecoercion HTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+                       var h2:HTMLElement = document.createElement('h2') as 
HTMLElement;
+            
+            textNode = document.createTextNode('') as Text;
+            h2.appendChild(textNode); 
+
+                       element = h2 as WrappedHTMLElement;
+            
+            positioner = element;
+            positioner.style.position = 'relative';
+                       element.flexjs_wrapper = this;
+            
+            className = typeNames = 'H2';
+
+            return element;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as
new file mode 100644
index 0000000..a54411b
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as
@@ -0,0 +1,112 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.html
+{
+       import org.apache.flex.core.UIBase;
+
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+
+       /**
+        *  The H3 class represents an HTML <h1> element
+     *  
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.0
+        */
+       public class H3 extends UIBase
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.0
+                */
+               public function H3()
+               {
+                       super();
+               }
+               
+        private var _text:String = "";
+
+        /**
+         *  The text of the heading
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get text():String
+               {
+            COMPILE::SWF
+            {
+                return _text;
+            }
+            COMPILE::JS
+            {
+                return textNode.nodeValue;
+            }
+               }
+
+               public function set text(value:String):void
+               {
+            COMPILE::SWF
+            {
+                _text = value;
+            }
+            COMPILE::JS
+            {
+                textNode.nodeValue = value;
+            }
+               }
+               
+        COMPILE::JS
+        private var textNode:Text;
+               
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+                * @flexjsignorecoercion HTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+                       var h3:HTMLElement = document.createElement('h3') as 
HTMLElement;
+            
+            textNode = document.createTextNode('') as Text;
+            h3.appendChild(textNode); 
+
+                       element = h3 as WrappedHTMLElement;
+            
+            positioner = element;
+            positioner.style.position = 'relative';
+                       element.flexjs_wrapper = this;
+            
+            className = typeNames = 'H3';
+
+            return element;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as
new file mode 100644
index 0000000..3456761
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as
@@ -0,0 +1,112 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.html
+{
+       import org.apache.flex.core.UIBase;
+
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+
+       /**
+        *  The H4 class represents an HTML <h1> element
+     *  
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.0
+        */
+       public class H4 extends UIBase
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.0
+                */
+               public function H4()
+               {
+                       super();
+               }
+               
+        private var _text:String = "";
+
+        /**
+         *  The text of the heading
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get text():String
+               {
+            COMPILE::SWF
+            {
+                return _text;
+            }
+            COMPILE::JS
+            {
+                return textNode.nodeValue;
+            }
+               }
+
+               public function set text(value:String):void
+               {
+            COMPILE::SWF
+            {
+                _text = value;
+            }
+            COMPILE::JS
+            {
+                textNode.nodeValue = value;
+            }
+               }
+               
+        COMPILE::JS
+        private var textNode:Text;
+               
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+                * @flexjsignorecoercion HTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+                       var h4:HTMLElement = document.createElement('h4') as 
HTMLElement;
+            
+            textNode = document.createTextNode('') as Text;
+            h4.appendChild(textNode); 
+
+                       element = h4 as WrappedHTMLElement;
+            
+            positioner = element;
+            positioner.style.position = 'relative';
+                       element.flexjs_wrapper = this;
+            
+            className = typeNames = 'H4';
+
+            return element;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as
new file mode 100644
index 0000000..c114b54
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as
@@ -0,0 +1,112 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.html
+{
+       import org.apache.flex.core.UIBase;
+
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+
+       /**
+        *  The H5 class represents an HTML <h1> element
+     *  
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.0
+        */
+       public class H5 extends UIBase
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.0
+                */
+               public function H5()
+               {
+                       super();
+               }
+               
+        private var _text:String = "";
+
+        /**
+         *  The text of the heading
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get text():String
+               {
+            COMPILE::SWF
+            {
+                return _text;
+            }
+            COMPILE::JS
+            {
+                return textNode.nodeValue;
+            }
+               }
+
+               public function set text(value:String):void
+               {
+            COMPILE::SWF
+            {
+                _text = value;
+            }
+            COMPILE::JS
+            {
+                textNode.nodeValue = value;
+            }
+               }
+               
+        COMPILE::JS
+        private var textNode:Text;
+               
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+                * @flexjsignorecoercion HTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+                       var h5:HTMLElement = document.createElement('h5') as 
HTMLElement;
+            
+            textNode = document.createTextNode('') as Text;
+            h5.appendChild(textNode); 
+
+                       element = h5 as WrappedHTMLElement;
+            
+            positioner = element;
+            positioner.style.position = 'relative';
+                       element.flexjs_wrapper = this;
+            
+            className = typeNames = 'H5';
+
+            return element;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as
new file mode 100644
index 0000000..5886141
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as
@@ -0,0 +1,112 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.html
+{
+       import org.apache.flex.core.UIBase;
+
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+
+       /**
+        *  The H6 class represents an HTML <h1> element
+     *  
+        *  
+        *  @langversion 3.0
+        *  @playerversion Flash 10.2
+        *  @playerversion AIR 2.6
+        *  @productversion FlexJS 0.0
+        */
+       public class H6 extends UIBase
+       {
+               /**
+                *  constructor.
+                *
+                *  @langversion 3.0
+                *  @playerversion Flash 10.2
+                *  @playerversion AIR 2.6
+                *  @productversion FlexJS 0.0
+                */
+               public function H6()
+               {
+                       super();
+               }
+               
+        private var _text:String = "";
+
+        /**
+         *  The text of the heading
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+               public function get text():String
+               {
+            COMPILE::SWF
+            {
+                return _text;
+            }
+            COMPILE::JS
+            {
+                return textNode.nodeValue;
+            }
+               }
+
+               public function set text(value:String):void
+               {
+            COMPILE::SWF
+            {
+                _text = value;
+            }
+            COMPILE::JS
+            {
+                textNode.nodeValue = value;
+            }
+               }
+               
+        COMPILE::JS
+        private var textNode:Text;
+               
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+                * @flexjsignorecoercion HTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+                       var h6:HTMLElement = document.createElement('h6') as 
HTMLElement;
+            
+            textNode = document.createTextNode('') as Text;
+            h6.appendChild(textNode); 
+
+                       element = h6 as WrappedHTMLElement;
+            
+            positioner = element;
+            positioner.style.position = 'relative';
+                       element.flexjs_wrapper = this;
+            
+            className = typeNames = 'H6';
+
+            return element;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6db257f7/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/resources/basic-manifest.xml 
b/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
index 9e4d07a..8a09ce0 100644
--- a/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/HTML/src/main/resources/basic-manifest.xml
@@ -129,6 +129,12 @@
     
     <component id="WebBrowser" class="org.apache.flex.html.WebBrowser" />
 
-    <component id="Anchor" class="org.apache.flex.html.Anchor" />
+    <component id="A" class="org.apache.flex.html.A" />
+    <component id="H1" class="org.apache.flex.html.H1" />
+    <component id="H2" class="org.apache.flex.html.H2" />
+    <component id="H3" class="org.apache.flex.html.H3" />
+    <component id="H4" class="org.apache.flex.html.H4" />
+    <component id="H5" class="org.apache.flex.html.H5" />
+    <component id="H6" class="org.apache.flex.html.H6" />
 
 </componentPackage>

Reply via email to