You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2020/09/25 23:05:00 UTC
[royale-asjs] branch develop updated: Fix build
This is an automated email from the ASF dual-hosted git repository.
gregdove 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 7b18bc3 Fix build
7b18bc3 is described below
commit 7b18bc33824b865a2f01bc34a048328884f039d0
Author: greg-dove <gr...@gmail.com>
AuthorDate: Sat Sep 26 11:02:21 2020 +1200
Fix build
---
frameworks/projects/MXRoyale/pom.xml | 36 +++++-----
.../royale/mx/controls/listClasses/TileBase.as | 18 ++---
.../controls/listClasses/TileListItemRenderer.as | 4 +-
.../mx/controls/scrollClasses/ScrollThumb.as | 2 +-
.../royale/mx/controls/sliderClasses/Slider.as | 2 +-
.../MXRoyale/src/main/royale/mx/events/RSLEvent.as | 2 +-
frameworks/projects/SparkRoyale/pom.xml | 69 +++++++++++++-----
.../royale/spark/components/IItemRendererOwner.as | 82 ++++++++++++++++++++++
8 files changed, 167 insertions(+), 48 deletions(-)
diff --git a/frameworks/projects/MXRoyale/pom.xml b/frameworks/projects/MXRoyale/pom.xml
index 8ccc6c5..43f912c 100644
--- a/frameworks/projects/MXRoyale/pom.xml
+++ b/frameworks/projects/MXRoyale/pom.xml
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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.
-
+<!--
+
+ 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.
+
--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -83,9 +83,11 @@
-compiler.js-namespaces.namespace+=http://ns.adobe.com/mxml/2009,${project.basedir}/../../mxml-2009-manifest.xml;
-compiler.js-namespaces.namespace+=library://ns.apache.org/royale/mx,${project.basedir}/src/main/resources/mx-royale-manifest.xml;
-compiler.warn-instance-of-changes=false;
+ -compiler.warn-this-within-closure=false;
</additionalCompilerOptions>
</configuration>
</plugin>
+
</plugins>
</build>
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileBase.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileBase.as
index a766474..d72ea30 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileBase.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileBase.as
@@ -33,15 +33,15 @@ import org.apache.royale.utils.ObjectMap;
//import flash.utils.setInterval;
import mx.collections.CursorBookmark;
-import mx.collections.ItemResponder;
-import mx.collections.ItemWrapper;
-import mx.collections.ModifiedCollectionView;
+//import mx.collections.ItemResponder;
+//import mx.collections.ItemWrapper;
+//import mx.collections.ModifiedCollectionView;
import mx.collections.errors.ItemPendingError;
-import mx.controls.scrollClasses.ScrollBar;
+//import mx.controls.scrollClasses.ScrollBar;
import mx.core.ClassFactory;
import mx.core.EdgeMetrics;
-import mx.core.FlexShape;
-import mx.core.FlexSprite;
+//import mx.core.FlexShape;
+//import mx.core.FlexSprite;
import mx.core.IFactory;
import mx.core.IFlexDisplayObject;
import mx.core.UIComponentGlobals;
@@ -52,9 +52,9 @@ import mx.events.DragEvent;
import mx.events.FlexEvent;
import mx.events.ListEvent;
import mx.events.ScrollEvent;
-import mx.events.ScrollEventDetail;
-import mx.events.ScrollEventDirection;
-import mx.skins.halo.ListDropIndicator;
+//import mx.events.ScrollEventDetail;
+//import mx.events.ScrollEventDirection;
+//import mx.skins.halo.ListDropIndicator;
use namespace mx_internal;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileListItemRenderer.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileListItemRenderer.as
index 2dfef36..f47765c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileListItemRenderer.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/TileListItemRenderer.as
@@ -29,14 +29,14 @@ import org.apache.royale.geom.Rectangle;
import mx.core.IDataRenderer;
import mx.core.IFlexDisplayObject;
import mx.core.IFlexModuleFactory;
-import mx.core.IFontContextComponent;
+//import mx.core.IFontContextComponent;
import mx.core.IToolTip;
import mx.core.IUITextField;
import mx.core.UIComponent;
import mx.core.UITextField;
import mx.core.mx_internal;
import mx.events.FlexEvent;
-import mx.events.InterManagerRequest;
+//import mx.events.InterManagerRequest;
import mx.events.ToolTipEvent;
import mx.managers.ISystemManager;
import mx.utils.PopUpUtil;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/scrollClasses/ScrollThumb.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/scrollClasses/ScrollThumb.as
index 65bcd10..08e2193 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/scrollClasses/ScrollThumb.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/scrollClasses/ScrollThumb.as
@@ -24,7 +24,7 @@ import org.apache.royale.events.MouseEvent;
import org.apache.royale.geom.Point;
import mx.controls.Button;
import mx.core.mx_internal;
-import mx.events.ScrollEventDetail;
+//import mx.events.ScrollEventDetail;
import mx.managers.ISystemManager;
use namespace mx_internal;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as
index 364ed11..5aaa621 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as
@@ -36,7 +36,7 @@ import mx.core.mx_internal;
import mx.effects.Tween;
import mx.events.FlexEvent;
import mx.events.SliderEvent;
-import mx.events.SliderEventClickTarget;
+//import mx.events.SliderEventClickTarget;
import mx.formatters.NumberFormatter;
import mx.styles.ISimpleStyleClient;
import mx.styles.StyleProxy;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/events/RSLEvent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/events/RSLEvent.as
index 5806236..6a8e1eb 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/events/RSLEvent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/RSLEvent.as
@@ -351,7 +351,7 @@ public class RSLEvent extends ProgressEvent
/**
* @private
*/
- public function clone():Event
+ override public function cloneEvent():Event
{
return new RSLEvent(type, bubbles, cancelable,
bytesLoaded, bytesTotal, rslIndex,
diff --git a/frameworks/projects/SparkRoyale/pom.xml b/frameworks/projects/SparkRoyale/pom.xml
index 4f8396f..c96b7e4 100644
--- a/frameworks/projects/SparkRoyale/pom.xml
+++ b/frameworks/projects/SparkRoyale/pom.xml
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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.
-
+<!--
+
+ 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.
+
--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -128,6 +128,41 @@
</dependency>
<dependency>
<groupId>org.apache.royale.framework</groupId>
+ <artifactId>Binding</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>swf</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Graphics</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>swf</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Reflection</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>swf</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>Effects</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>swf</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
+ <artifactId>HTML</artifactId>
+ <version>0.9.8-SNAPSHOT</version>
+ <type>swc</type>
+ <classifier>swf</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.royale.framework</groupId>
<artifactId>MXRoyale</artifactId>
<version>0.9.8-SNAPSHOT</version>
<type>swc</type>
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/IItemRendererOwner.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/IItemRendererOwner.as
new file mode 100644
index 0000000..7ee0d62
--- /dev/null
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/IItemRendererOwner.as
@@ -0,0 +1,82 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 spark.components
+{
+
+import mx.core.IVisualElement;
+
+/**
+ * The IItemRendererOwner interface defines the basic set of APIs
+ * that a class must implement to support items renderers.
+ * A class that implements the IItemRendererOwner interface
+ * is called the host component of the item renderer.
+ *
+ * <p>The class defining the item renderer must implement the
+ * IItemRenderer interface.</p>
+ *
+ * @see spark.components.IItemRenderer
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ *
+ */
+public interface IItemRendererOwner
+{
+
+ /**
+ * Returns the String for display in an item renderer.
+ * The String is written to the <code>labelText</code>
+ * property of the item renderer.
+ *
+ * @param item The data item to display.
+ *
+ * @return The String for display in an item renderer.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ function itemToLabel(item:Object):String;
+
+ /**
+ * Updates the renderer for reuse.
+ * This method first prepares the item
+ * renderer for reuse by cleaning out any stale properties
+ * as well as updating it with new properties.
+ *
+ * <p>The last thing this method should do is set the <code>data</code> property
+ * of the item renderer.</p>
+ *
+ * @param renderer The item renderer.
+ * @param itemIndex The index of the data in the data provider.
+ * @param data The data object this item renderer is representing.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void;
+
+}
+}