This is an automated email from the ASF dual-hosted git repository.

piotrz 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 531d303  MXRoyale Example: Add separated example for TabNavigator
531d303 is described below

commit 531d3039db23356d81c06953925dba2831e2606b
Author: Piotr Zarzycki <[email protected]>
AuthorDate: Thu Dec 30 10:26:22 2021 +0100

    MXRoyale Example: Add separated example for TabNavigator
---
 .../TabNavigatorExample.as3proj                    | 122 +++++++++++++++++++++
 examples/mxroyale/TabNavigatorExample/build.xml    |  55 ++++++++++
 examples/mxroyale/TabNavigatorExample/pom.xml      |  61 +++++++++++
 .../src/main/royale/TabNavigatorExample.mxml       |  58 ++++++++++
 4 files changed, 296 insertions(+)

diff --git a/examples/mxroyale/TabNavigatorExample/TabNavigatorExample.as3proj 
b/examples/mxroyale/TabNavigatorExample/TabNavigatorExample.as3proj
new file mode 100644
index 0000000..eb532a6
--- /dev/null
+++ b/examples/mxroyale/TabNavigatorExample/TabNavigatorExample.as3proj
@@ -0,0 +1,122 @@
+<?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>
+  <output>
+    <movie version="20"/>
+    <movie disabled="False"/>
+    <movie platform="Flash Player"/>
+    <movie background="#FFFFFF"/>
+    <movie height="600"/>
+    <movie fps="60"/>
+    <movie path="bin-debug/TabNavigatorExample.swf"/>
+    <movie input=""/>
+    <movie width="800"/>
+  </output>
+  &lt;!-- Other classes to be compiled into your SWF --&gt;
+  <jsOutput>
+    <option path=""/>
+  </jsOutput>
+  <classpaths>
+    <class path="src/main/royale"/>
+  </classpaths>
+  <moonshineResourcePaths></moonshineResourcePaths>
+  <moonshineNativeExtensionPaths></moonshineNativeExtensionPaths>
+  <build>
+    <option benchmark="False"/>
+    <option showDeprecationWarnings="True"/>
+    <option accessible="False"/>
+    <option es="False"/>
+    <option additional="+configname=flex"/>
+    <option useNetwork="True"/>
+    <option loadConfig=""/>
+    <option useResourceBundleMetadata="True"/>
+    <option warnings="True"/>
+    <option showActionScriptWarnings="True"/>
+    <option linkReport=""/>
+    <option customSDK=""/>
+    <option showBindingWarnings="True"/>
+    <option optimize="False"/>
+    <option compilerConstants=""/>
+    <option antBuildPath="build/build.xml"/>
+    <option strict="True"/>
+    <option locale=""/>
+    <option sourceMap="False"/>
+    <option allowSourcePathOverlap="False"/>
+    <option staticLinkRSL="False"/>
+    <option showUnusedTypeSelectorWarnings="True"/>
+    <option verboseStackTraces="False"/>
+  </build>
+  <mavenBuild>
+    <option dominoNotesProgram=""/>
+    <option commandLine=""/>
+    <option dominoNotesPlatform=""/>
+    <option settingsFilePath=""/>
+    <option 
mavenBuildPath="/Users/piotrzarzycki/Dev/apache/royale-sources/royale-asjs/examples/mxroyale/TabNavigatorExample"/>
+    <actions>
+      <action action="install" actionName="Build"/>
+      <action action="clean" actionName="Clean"/>
+      <action action="clean install" actionName="Clean and Build"/>
+      <action action="war:exploded" actionName="Exploded"/>
+    </actions>
+  </mavenBuild>
+  <includeLibraries></includeLibraries>
+  <libraryPaths></libraryPaths>
+  <externalLibraryPaths></externalLibraryPaths>
+  <rslPaths></rslPaths>
+  <intrinsics>
+    <element path="Library/AS3/frameworks/Flex4"/>
+    <element path="Library\AS3\frameworks\Flex4"/>
+  </intrinsics>
+  <library></library>
+  <modules/>
+  <compileTargets>
+    <compile path="src/main/royale/TabNavigatorExample.mxml"/>
+  </compileTargets>
+  <hiddenPaths></hiddenPaths>
+  <preBuildCommand>null</preBuildCommand>
+  <postBuildCommand alwaysRun="False">null</postBuildCommand>
+  <trustSVNCertificate>False</trustSVNCertificate>
+  <options>
+    <option isExportedToExistingSource="False"/>
+    <option isRoyale="True"/>
+    <option defaultBuildTargets=""/>
+    <option isDominoVisualEditor="False"/>
+    <option jdkType="default-java"/>
+    <option testMovie=""/>
+    <option showHiddenPaths="False"/>
+    <option visualEditorExportPath=""/>
+    <option isPrimeFacesVisualEditor="False"/>
+    <option testMovieCommand=""/>
+  </options>
+  <moonshineRunCustomization>
+    <option urlToLaunch=""/>
+    <option targetPlatform="5"/>
+    <option projectType="2"/>
+    <option webBrowser="Google Chrome"/>
+    <option deviceSimulator="null"/>
+    <option customUrlToLaunch=""/>
+    <option launchMethod="Simulator"/>
+    <option deviceConnectType="USB"/>
+    <deviceSimulator>Apple iPad</deviceSimulator>
+    <certAndroid>null</certAndroid>
+    <certIos>null</certIos>
+    <certIosProvisioning>null</certIosProvisioning>
+  </moonshineRunCustomization>
+</project>
diff --git a/examples/mxroyale/TabNavigatorExample/build.xml 
b/examples/mxroyale/TabNavigatorExample/build.xml
new file mode 100644
index 0000000..62250e0
--- /dev/null
+++ b/examples/mxroyale/TabNavigatorExample/build.xml
@@ -0,0 +1,55 @@
+<?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="helloworld" default="main" basedir=".">
+    <property name="ROYALE_HOME" location="../../.."/>
+    <property name="example" value="HelloWorld" />
+    
+    <property file="${ROYALE_HOME}/env.properties"/>
+    <property environment="env"/>
+    <property file="${ROYALE_HOME}/build.properties"/>
+    <property name="ROYALE_HOME" value="${ROYALE_HOME}"/>
+    <property name="config_arg" value="flex"/>
+
+    <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="Make sure label appears."/>
+        <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/mxroyale/TabNavigatorExample/pom.xml 
b/examples/mxroyale/TabNavigatorExample/pom.xml
new file mode 100644
index 0000000..4a5a09c
--- /dev/null
+++ b/examples/mxroyale/TabNavigatorExample/pom.xml
@@ -0,0 +1,61 @@
+<?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>
+
+  <parent>
+    <groupId>org.apache.royale.examples</groupId>
+    <artifactId>examples-mxroyale</artifactId>
+    <version>0.9.9-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>TabNavigatorExample-MXRoyale</artifactId>
+  <version>0.9.9-SNAPSHOT</version>
+  <packaging>swf</packaging>
+
+  <name>Apache Royale: Examples: MXRoyale: TabNavigatorExample</name>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.royale.compiler</groupId>
+        <artifactId>royale-maven-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <mainClass>TabNavigatorExample.mxml</mainClass>
+          <allowSubclassOverrides>true</allowSubclassOverrides>
+          <targets>${royale.targets}</targets>
+          <debug>false</debug>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>BasicTheme</artifactId>
+      <version>0.9.9-SNAPSHOT</version>
+      <type>swc</type>
+      <scope>theme</scope>
+      <classifier>js</classifier>
+    </dependency>
+  </dependencies>
+
+<properties /></project>
diff --git 
a/examples/mxroyale/TabNavigatorExample/src/main/royale/TabNavigatorExample.mxml
 
b/examples/mxroyale/TabNavigatorExample/src/main/royale/TabNavigatorExample.mxml
new file mode 100644
index 0000000..8b6c9e8
--- /dev/null
+++ 
b/examples/mxroyale/TabNavigatorExample/src/main/royale/TabNavigatorExample.mxml
@@ -0,0 +1,58 @@
+<?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.
+
+-->
+<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
+                   xmlns:mx="library://ns.apache.org/royale/mx"
+                   width="600" height="400" >
+
+       <mx:Panel title="TabNavigator Container Example"
+                               paddingBottom="10" paddingTop="10" 
paddingLeft="10" paddingRight="10"
+                               height="100%" width="100%">
+
+        <mx:Label width="100%"
+            text="Select the tabs to change the panel."/>
+
+        <mx:TabNavigator id="tn"  width="100%" height="100%">
+            <!-- Define each panel using a VBox container. -->
+
+            <mx:VBox label="Panel 1">
+                <mx:Label text="TabNavigator container panel 1"/>
+            </mx:VBox>
+
+            <mx:VBox label="Panel 2">
+                <mx:Label text="TabNavigator container panel 2"/>
+            </mx:VBox>
+
+            <mx:VBox label="Panel 3">
+                <mx:Label text="TabNavigator container panel 3"/>
+            </mx:VBox>
+        </mx:TabNavigator>
+
+        <mx:Label width="100%"
+            text="Programmatically select the panel using a Button control."/>
+
+        <mx:HBox>
+            <mx:Button label="Select Tab 1" click="tn.selectedIndex=0"/>
+            <mx:Button label="Select Tab 2" click="tn.selectedIndex=1"/>
+            <mx:Button label="Select Tab 3" click="tn.selectedIndex=2"/>
+        </mx:HBox>
+    
+    </mx:Panel>
+        
+</mx:Application>
\ No newline at end of file

Reply via email to