Repository: flex-asjs Updated Branches: refs/heads/develop 4329771d1 -> 9b492529a
HTML Ul and Li elements Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9b492529 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9b492529 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9b492529 Branch: refs/heads/develop Commit: 9b492529a938b65af00ba571a4c3d5c0c679acb4 Parents: 4329771 Author: Carlos Rovira <[email protected]> Authored: Wed Nov 30 12:27:42 2016 +0100 Committer: Carlos Rovira <[email protected]> Committed: Wed Nov 30 12:27:42 2016 +0100 ---------------------------------------------------------------------- .../src/main/flex/org/apache/flex/html/Li.as | 69 ++++++++++++++++++++ .../src/main/flex/org/apache/flex/html/Ul.as | 69 ++++++++++++++++++++ .../HTML/src/main/resources/basic-manifest.xml | 2 + 3 files changed, 140 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9b492529/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as new file mode 100644 index 0000000..b5907d8 --- /dev/null +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as @@ -0,0 +1,69 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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.ContainerBase; + + COMPILE::JS + { + import org.apache.flex.core.WrappedHTMLElement; + } + + /** + * The Li class represents an HTML <li> element + * + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + public class Li extends ContainerBase + { + /** + * constructor. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + public function Li() + { + super(); + } + + /** + * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement + * @flexjsignorecoercion HTMLDivElement + */ + COMPILE::JS + override protected function createElement():WrappedHTMLElement + { + var li:HTMLLIElement = document.createElement('li') as HTMLLIElement; + + element = li as WrappedHTMLElement; + + positioner = element; + element.flexjs_wrapper = this; + + return element; + } + } +} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9b492529/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as new file mode 100644 index 0000000..50e53f1 --- /dev/null +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as @@ -0,0 +1,69 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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.ContainerBase; + + COMPILE::JS + { + import org.apache.flex.core.WrappedHTMLElement; + } + + /** + * The Ul class represents an HTML <ul> element + * + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + public class Ul extends ContainerBase + { + /** + * constructor. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + public function Ul() + { + super(); + } + + /** + * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement + * @flexjsignorecoercion HTMLDivElement + */ + COMPILE::JS + override protected function createElement():WrappedHTMLElement + { + var ul:HTMLUListElement = document.createElement('ul') as HTMLUListElement; + + element = ul as WrappedHTMLElement; + + positioner = element; + element.flexjs_wrapper = this; + + return element; + } + } +} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9b492529/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 b109ce5..8b6b657 100644 --- a/frameworks/projects/HTML/src/main/resources/basic-manifest.xml +++ b/frameworks/projects/HTML/src/main/resources/basic-manifest.xml @@ -145,5 +145,7 @@ <component id="Span" class="org.apache.flex.html.Span" /> <component id="Div" class="org.apache.flex.html.Div" /> <component id="I" class="org.apache.flex.html.I" /> + <component id="Ul" class="org.apache.flex.html.Ul" /> + <component id="Li" class="org.apache.flex.html.Li" /> </componentPackage>
