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/09/02 11:27:18 UTC
[royale-asjs] branch develop updated: create a NullLayout to deal with layouts defined in parent classes when we don't want to define a layout for the child class (Royale can't do ClassReference (null) in CSS), this should be temporal and provide a way to avoid parent layout vía compiler
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 a62be08 create a NullLayout to deal with layouts defined in parent classes when we don't want to define a layout for the child class (Royale can't do ClassReference (null) in CSS), this should be temporal and provide a way to avoid parent layout vía compiler
a62be08 is described below
commit a62be088a48f1f2ca2820cce19b7b1b0e4f53662
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Sep 2 13:27:14 2018 +0200
create a NullLayout to deal with layouts defined in parent classes when we don't want to define a layout for the child class (Royale can't do ClassReference (null) in CSS), this should be temporal and provide a way to avoid parent layout vía compiler
---
.../Jewel/src/main/resources/jewel-manifest.xml | 1 +
.../royale/jewel/beads/layouts/NullLayout.as | 57 ++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index b177818..382513a 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -107,6 +107,7 @@
<component id="MaxNumberCharacters" class="org.apache.royale.jewel.beads.controls.textinput.MaxNumberCharacters"/>
<component id="BasicLayout" class="org.apache.royale.jewel.beads.layouts.BasicLayout"/>
+ <component id="NullLayout" class="org.apache.royale.jewel.beads.layouts.NullLayout"/>
<component id="SimpleHorizontalLayout" class="org.apache.royale.jewel.beads.layouts.SimpleHorizontalLayout"/>
<component id="SimpleVerticalLayout" class="org.apache.royale.jewel.beads.layouts.SimpleVerticalLayout"/>
<component id="HorizontalLayout" class="org.apache.royale.jewel.beads.layouts.HorizontalLayout"/>
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/NullLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/NullLayout.as
new file mode 100644
index 0000000..8618f27
--- /dev/null
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/NullLayout.as
@@ -0,0 +1,57 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.beads.layouts
+{
+ import org.apache.royale.core.LayoutBase;
+ import org.apache.royale.core.IBeadLayout;
+ import org.apache.royale.core.ILayoutChild;
+ import org.apache.royale.core.ILayoutView;
+ import org.apache.royale.core.IUIBase;
+ import org.apache.royale.core.IStrand;
+
+ COMPILE::JS {
+ import org.apache.royale.core.UIBase;
+ }
+
+ /**
+ * The NullLayout class is a layout class used to override other layout classes
+ * This class should be temporal and make Royale be able to pass ClassReference (null)
+ * in CSS to not use the layout defined in parent class
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.4
+ */
+ public class NullLayout extends LayoutBase implements IBeadLayout
+ {
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.4
+ */
+ public function NullLayout()
+ {
+ super();
+ }
+ }
+}