You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pe...@apache.org on 2017/11/09 21:31:07 UTC
[royale-asjs] branch develop updated: Adding AccordionExample to
the example list.
This is an automated email from the ASF dual-hosted git repository.
pent 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 379e01f Adding AccordionExample to the example list.
379e01f is described below
commit 379e01f2203c32d8578a3cd1c72ba25c20f0d41b
Author: Peter Ent <pe...@apache.org>
AuthorDate: Thu Nov 9 16:31:02 2017 -0500
Adding AccordionExample to the example list.
---
examples/build.xml | 3 +
examples/royale/AccordionExample/README.txt | 22 ++++++
examples/royale/AccordionExample/build.xml | 53 ++++++++++++++
examples/royale/AccordionExample/pom.xml | 64 +++++++++++++++++
.../src/main/config/compile-app-config.xml | 23 ++++++
.../src/main/royale/AccordionExample.mxml | 83 ++++++++++++++++++++++
examples/royale/pom.xml | 1 +
7 files changed, 249 insertions(+)
diff --git a/examples/build.xml b/examples/build.xml
index 674f474..30e7b64 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -76,6 +76,7 @@
<target name="compile" description="Compile Examples" >
<ant dir="${basedir}/express/DataBindingExample"/>
<ant dir="${basedir}/express/DataGridExample"/>
+ <ant dir="${basedir}/royale/AccordionExample"/>
<ant dir="${basedir}/royale/ASDoc"/>
<ant dir="${basedir}/royale/CordovaCameraExample"/>
<ant dir="${basedir}/royale/CreateJSExample"/>
@@ -124,6 +125,7 @@
<target name="clean" description="Cleans all SWCs and their resource bundles">
<ant dir="${basedir}/express/DataBindingExample" target="clean"/>
<ant dir="${basedir}/express/DataGridExample" target="clean"/>
+ <ant dir="${basedir}/royale/AccordionExample" target="clean"/>
<ant dir="${basedir}/royale/ASDoc" target="clean"/>
<ant dir="${basedir}/royale/CordovaCameraExample" target="clean"/>
<ant dir="${basedir}/royale/CreateJSExample" target="clean"/>
@@ -162,6 +164,7 @@
<target name="examine" description="Cleans all SWCs and their resource bundles">
<ant dir="${basedir}/express/DataBindingExample" target="examine"/>
<ant dir="${basedir}/express/DataGridExample" target="examine"/>
+ <ant dir="${basedir}/royale/AccordionExample" target="examine"/>
<ant dir="${basedir}/royale/ASDoc" target="examine"/>
<ant dir="${basedir}/royale/CordovaCameraExample" target="examine"/>
<ant dir="${basedir}/royale/CreateJSExample" target="examine"/>
diff --git a/examples/royale/AccordionExample/README.txt b/examples/royale/AccordionExample/README.txt
new file mode 100644
index 0000000..b3d96b9
--- /dev/null
+++ b/examples/royale/AccordionExample/README.txt
@@ -0,0 +1,22 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+DESCRIPTION
+
+This sample is currently under construction.
diff --git a/examples/royale/AccordionExample/build.xml b/examples/royale/AccordionExample/build.xml
new file mode 100644
index 0000000..30322a5
--- /dev/null
+++ b/examples/royale/AccordionExample/build.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!--
+
+ 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 name="AccordionExample" default="main" basedir=".">
+ <property name="ROYALE_HOME" location="../../.."/>
+ <property name="example" value="AccordionExample" />
+
+ <property file="${ROYALE_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${ROYALE_HOME}/build.properties"/>
+ <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
+
+ <include file="${basedir}/../../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile" description="Clean build of ${example}">
+ </target>
+
+ <target name="clean">
+ <delete dir="${basedir}/bin" failonerror="false" />
+ <delete dir="${basedir}/bin-debug" failonerror="false" />
+ <delete dir="${basedir}/bin-release" failonerror="false" />
+ <delete dir="${basedir}/target" failonerror="false" />
+ </target>
+
+ <target name="examine" depends="build_example.get.browser">
+ <property name="which" value="debug" />
+ <echo message="Simple ToDo List."/>
+ <exec executable="${browser}" dir="${basedir}/bin-${which}" failonerror="true">
+ <arg value="${basedir}/bin-${which}/${example}.html"/>
+ </exec>
+ <exec executable="${browser}" dir="${basedir}/bin/js-${which}" failonerror="true">
+ <arg value="${basedir}/bin/js-${which}/index.html"/>
+ </exec>
+ </target>
+
+</project>
+
diff --git a/examples/royale/AccordionExample/pom.xml b/examples/royale/AccordionExample/pom.xml
new file mode 100644
index 0000000..b8b894f
--- /dev/null
+++ b/examples/royale/AccordionExample/pom.xml
@@ -0,0 +1,64 @@
+<?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.
+
+-->
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <!--
+ TODO:
+ JavaScript Version:
+ Layout problems in the grid
+ -->
+
+ <parent>
+ <groupId>org.apache.royale.examples</groupId>
+ <artifactId>examples-royale</artifactId>
+ <version>0.9.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>AccordionExample</artifactId>
+ <version>0.9.0-SNAPSHOT</version>
+ <packaging>swf</packaging>
+
+ <name>Apache Royale: Examples: Royale: AccordionExample</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <mainClass>AccordionExample.mxml</mainClass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.adobe.flash.framework</groupId>
+ <artifactId>playerglobal</artifactId>
+ <version>${flash.version}</version>
+ <type>swc</type>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/examples/royale/AccordionExample/src/main/config/compile-app-config.xml b/examples/royale/AccordionExample/src/main/config/compile-app-config.xml
new file mode 100644
index 0000000..47270ef
--- /dev/null
+++ b/examples/royale/AccordionExample/src/main/config/compile-app-config.xml
@@ -0,0 +1,23 @@
+<!--
+
+ 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.
+
+-->
+<royale-config>
+ <js-output-optimization>
+ <optimization>skipAsCoercions</optimization>
+ </js-output-optimization>
+</royale-config>
diff --git a/examples/royale/AccordionExample/src/main/royale/AccordionExample.mxml b/examples/royale/AccordionExample/src/main/royale/AccordionExample.mxml
new file mode 100644
index 0000000..fa292c1
--- /dev/null
+++ b/examples/royale/AccordionExample/src/main/royale/AccordionExample.mxml
@@ -0,0 +1,83 @@
+<?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.
+//
+////////////////////////////////////////////////////////////////////////////////
+-->
+<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:js="library://ns.apache.org/royale/basic">
+
+ <js:valuesImpl>
+ <js:SimpleCSSValuesImpl/>
+ </js:valuesImpl>
+
+ <js:initialView>
+ <js:View>
+ <js:Accordion width="250" height="320" selectedIndex="0">
+ <js:dataProvider>
+ <fx:Array>
+ <js:Container id="panel1">
+ <js:beads>
+ <js:TitleBarModel title="Panel 1" />
+ <js:VerticalLayout />
+ </js:beads>
+ <js:Label text="Top Line 1" />
+ <js:Spacer height="20" />
+ <js:Label text="Middle Line 1" />
+ <js:Spacer height="20" />
+ <js:Label text="Last Line 1" />
+ </js:Container>
+ <js:Container id="panel2">
+ <js:beads>
+ <js:TitleBarModel title="Panel 2" />
+ <js:VerticalLayout />
+ </js:beads>
+ <js:Label text="Top Line 2" />
+ <js:Spacer height="20" />
+ <js:Label text="Middle Line 2" />
+ <js:Spacer height="20" />
+ <js:Label text="Last Line 2" />
+ </js:Container>
+ <js:Container id="panel3">
+ <js:beads>
+ <js:TitleBarModel title="Panel 3" />
+ <js:VerticalLayout />
+ </js:beads>
+ <js:Label text="Top Line 3" />
+ <js:Spacer height="20" />
+ <js:Label text="Middle Line 3" />
+ <js:Spacer height="20" />
+ <js:Label text="Last Line 3" />
+ </js:Container>
+ <js:Container id="panel4">
+ <js:beads>
+ <js:TitleBarModel title="Panel 4" />
+ <js:VerticalLayout />
+ </js:beads>
+ <js:Label text="Top Line 4" />
+ <js:Spacer height="20" />
+ <js:Label text="Middle Line 4" />
+ <js:Spacer height="20" />
+ <js:Label text="Last Line 4" />
+ </js:Container>
+ </fx:Array>
+ </js:dataProvider>
+ </js:Accordion>
+ </js:View>
+ </js:initialView>
+
+</js:Application>
diff --git a/examples/royale/pom.xml b/examples/royale/pom.xml
index 3e0f27c..683ae9a 100644
--- a/examples/royale/pom.xml
+++ b/examples/royale/pom.xml
@@ -33,6 +33,7 @@
<name>Apache Royale: Examples: Royale</name>
<modules>
+ <module>AccordionExample</module>
<module>ASDoc</module>
<module>ChartExample</module>
<module>CordovaCameraExample</module>
--
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].