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 2020/01/13 21:50:04 UTC
[royale-asjs] branch develop updated: Added Br element
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 9b64285 Added Br element
9b64285 is described below
commit 9b64285e4d2e2d19da6c77b66f1b4c8711f561e2
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Jan 13 23:49:48 2020 +0200
Added Br element
---
.../HTML/src/main/resources/html-manifest.xml | 1 +
.../royale/org/apache/royale/html/elements/Br.as | 41 ++++++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/frameworks/projects/HTML/src/main/resources/html-manifest.xml b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
index 888983c..c5d4ec7 100644
--- a/frameworks/projects/HTML/src/main/resources/html-manifest.xml
+++ b/frameworks/projects/HTML/src/main/resources/html-manifest.xml
@@ -23,6 +23,7 @@
<component id="A" class="org.apache.royale.html.elements.A" />
<component id="B" class="org.apache.royale.html.elements.B" />
+ <component id="Br" class="org.apache.royale.html.elements.Br" />
<component id="Button" class="org.apache.royale.html.elements.Button" />
<component id="Caption" class="org.apache.royale.html.elements.Caption" />
<component id="Code" class="org.apache.royale.html.elements.Code" />
diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Br.as b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Br.as
new file mode 100644
index 0000000..1b92b3a
--- /dev/null
+++ b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/Br.as
@@ -0,0 +1,41 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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
+{
+ import org.apache.royale.html.NodeElementBase;
+ COMPILE::JS
+ {
+ import org.apache.royale.html.util.addElementToWrapper;
+ import org.apache.royale.core.WrappedHTMLElement;
+ }
+
+ public class Br extends NodeElementBase
+ {
+ public function Br()
+ {
+
+ }
+ COMPILE::JS
+ override protected function createElement():WrappedHTMLElement
+ {
+ return addElementToWrapper(this,'br');
+ }
+
+ }
+}
\ No newline at end of file