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 2018/07/22 07:58:08 UTC
[royale-asjs] branch develop updated: jewel Spacer
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 74b0f8f jewel Spacer
74b0f8f is described below
commit 74b0f8f538a8d0954ee56154e89e93120615d1ba
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Jul 22 09:58:04 2018 +0200
jewel Spacer
---
.../royale/org/apache/royale/core/StyledUIBase.as | 13 ++++++
.../Jewel/src/main/resources/jewel-manifest.xml | 1 +
.../main/royale/org/apache/royale/jewel/Spacer.as | 49 ++++++++++++++++++++++
3 files changed, 63 insertions(+)
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/StyledUIBase.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/StyledUIBase.as
index 0a67d2b..70a8dd6 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/core/StyledUIBase.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/core/StyledUIBase.as
@@ -24,6 +24,7 @@ package org.apache.royale.core
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
+ import org.apache.royale.html.util.addElementToWrapper;
}
/**
@@ -154,5 +155,17 @@ package org.apache.royale.core
return false;
}
}
+
+ /**
+ * @return The actual element to be parented.
+ * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
+ */
+ COMPILE::JS
+ override protected function createElement():WrappedHTMLElement
+ {
+ addElementToWrapper(this,'div');
+ positioner = element;
+ return element;
+ }
}
}
\ No newline at end of file
diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index d770110..71795fc 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -45,6 +45,7 @@
<component id="TitleBar" class="org.apache.royale.jewel.TitleBar"/>
<component id="List" class="org.apache.royale.jewel.List"/>
<component id="DropDownList" class="org.apache.royale.jewel.DropDownList"/>
+ <component id="Spacer" class="org.apache.royale.jewel.Spacer"/>
<component id="Navigation" class="org.apache.royale.jewel.Navigation"/>
<component id="NavigationLinkItemRenderer" class="org.apache.royale.jewel.itemRenderers.NavigationLinkItemRenderer"/>
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Spacer.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Spacer.as
new file mode 100644
index 0000000..f6a63a7
--- /dev/null
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Spacer.as
@@ -0,0 +1,49 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.jewel
+{
+ import org.apache.royale.core.StyledUIBase;
+
+ /**
+ * The Spacer class takes up space in the UI layout.
+ * Setting width and/or height
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.3
+ */
+ public class Spacer extends StyledUIBase
+ {
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.3
+ */
+ public function Spacer()
+ {
+ super();
+
+ typeNames = "jewel spacer";
+ }
+ }
+}