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 2019/01/07 18:34:04 UTC
[royale-asjs] branch develop updated: Added NoLayout
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 563d46a Added NoLayout
563d46a is described below
commit 563d46a14cd75cf16ea47486662c14628e8e280e
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Jan 7 20:33:49 2019 +0200
Added NoLayout
NoLayout is a stand-in bead which allows for defaut layout based on CSS with no JS overrides.
---
.../Basic/src/main/resources/basic-manifest.xml | 1 +
.../apache/royale/html/beads/layouts/NoLayout.as | 63 ++++++++++++++++++++++
2 files changed, 64 insertions(+)
diff --git a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
index 2a5b73e..65e8a13 100644
--- a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
@@ -77,6 +77,7 @@
<component id="TitleBarModel" class="org.apache.royale.html.beads.models.TitleBarModel"/>
<component id="ToolTip" class="org.apache.royale.html.ToolTip"/>
<component id="Tree" class="org.apache.royale.html.Tree"/>
+ <component id="NoLayout" class="org.apache.royale.html.beads.layouts.NoLayout"/>
<component id="BasicLayout" class="org.apache.royale.html.beads.layouts.BasicLayout"/>
<component id="RemovableBasicLayout" class="org.apache.royale.html.beads.layouts.RemovableBasicLayout"/>
<component id="LayoutChangeNotifier" class="org.apache.royale.html.beads.layouts.LayoutChangeNotifier"/>
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/NoLayout.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/NoLayout.as
new file mode 100644
index 0000000..cf9b536
--- /dev/null
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/NoLayout.as
@@ -0,0 +1,63 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.beads.layouts
+{
+ import org.apache.royale.core.LayoutBase;
+ import org.apache.royale.core.IBeadLayout;
+ import org.apache.royale.core.IStrand;
+
+ /**
+ * The NoLayout class allows specifying no layout
+ * to components which normally have a Layout bead.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9.6
+ */
+ public class NoLayout implements IBeadLayout
+ {
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public function NoLayout()
+ {
+ super();
+ }
+
+ /**
+ * @copy org.apache.royale.core.IBeadLayout#layout
+ */
+ public function layout():Boolean
+ {
+ // do nothing
+ return true;
+ }
+ public function set strand(value:IStrand):void
+ {
+ // do nothing
+ }
+
+ }
+}