incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1228976 - in /incubator/flex/whiteboard/navigators/examples: ./ .settings/ libs/ src/
Date Sun, 08 Jan 2012 22:14:14 GMT
Author: tink
Date: Sun Jan  8 22:14:13 2012
New Revision: 1228976

URL: http://svn.apache.org/viewvc?rev=1228976&view=rev
Log:
Navigator examples

Added:
    incubator/flex/whiteboard/navigators/examples/
    incubator/flex/whiteboard/navigators/examples/.actionScriptProperties
    incubator/flex/whiteboard/navigators/examples/.flexProperties
    incubator/flex/whiteboard/navigators/examples/.project
    incubator/flex/whiteboard/navigators/examples/.settings/
    incubator/flex/whiteboard/navigators/examples/.settings/org.eclipse.core.resources.prefs
    incubator/flex/whiteboard/navigators/examples/libs/
    incubator/flex/whiteboard/navigators/examples/src/
    incubator/flex/whiteboard/navigators/examples/src/AccordionExample.mxml
    incubator/flex/whiteboard/navigators/examples/src/DataAccordionExample.mxml
    incubator/flex/whiteboard/navigators/examples/src/DataNavigatorExample.mxml
    incubator/flex/whiteboard/navigators/examples/src/NavigatorExample.mxml
    incubator/flex/whiteboard/navigators/examples/src/TabNavigatorExample.mxml

Added: incubator/flex/whiteboard/navigators/examples/.actionScriptProperties
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/.actionScriptProperties?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/.actionScriptProperties (added)
+++ incubator/flex/whiteboard/navigators/examples/.actionScriptProperties Sun Jan  8 22:14:13
2012
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<actionScriptProperties analytics="false" mainApplicationPath="AccordionExample.mxml"
projectUUID="a7d18184-fb1e-4612-8ec7-95d8b544dd28" version="10">
+  <compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="true"
flexSDK="Flex 4.6.0" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true"
htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false"
outputFolderPath="bin-debug" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0"
useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
+    <compilerSourcePath/>
+    <libraryPath defaultLinkType="0">
+      <libraryPathEntry kind="4" path="">
+        <excludedEntries>
+          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc"
useDefaultLinkType="false"/>
+          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc"
useDefaultLinkType="false"/>
+        </excludedEntries>
+      </libraryPathEntry>
+      <libraryPathEntry kind="1" linkType="1" path="libs"/>
+      <libraryPathEntry kind="3" linkType="1" path="/ApacheFlexNavigators/bin/ApacheFlexNavigators.swc"
useDefaultLinkType="false"/>
+    </libraryPath>
+    <sourceAttachmentPath/>
+  </compiler>
+  <applications>
+    <application path="DataNavigatorExample.mxml"/>
+    <application path="TabNavigatorExample.mxml"/>
+    <application path="NavigatorExample.mxml"/>
+    <application path="AccordionExample.mxml"/>
+    <application path="DataAccordionExample.mxml"/>
+  </applications>
+  <modules/>
+  <buildCSSFiles/>
+  <flashCatalyst validateFlashCatalystCompatibility="false"/>
+</actionScriptProperties>

Added: incubator/flex/whiteboard/navigators/examples/.flexProperties
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/.flexProperties?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/.flexProperties (added)
+++ incubator/flex/whiteboard/navigators/examples/.flexProperties Sun Jan  8 22:14:13 2012
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<flexProperties enableServiceManager="false" flexServerFeatures="0" flexServerType="0"
toolCompile="true" useServerFlexSDK="false" version="2"/>

Added: incubator/flex/whiteboard/navigators/examples/.project
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/.project?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/.project (added)
+++ incubator/flex/whiteboard/navigators/examples/.project Sun Jan  8 22:14:13 2012
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>ApacheFlexNavigtorExamples</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.adobe.flexbuilder.project.flexbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>com.adobe.flexbuilder.project.flexnature</nature>
+		<nature>com.adobe.flexbuilder.project.actionscriptnature</nature>
+	</natures>
+</projectDescription>

Added: incubator/flex/whiteboard/navigators/examples/.settings/org.eclipse.core.resources.prefs
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/.settings/org.eclipse.core.resources.prefs?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/.settings/org.eclipse.core.resources.prefs
(added)
+++ incubator/flex/whiteboard/navigators/examples/.settings/org.eclipse.core.resources.prefs
Sun Jan  8 22:14:13 2012
@@ -0,0 +1,3 @@
+#Sun Jan 08 21:50:09 GMT 2012
+eclipse.preferences.version=1
+encoding/<project>=utf-8

Added: incubator/flex/whiteboard/navigators/examples/src/AccordionExample.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/src/AccordionExample.mxml?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/src/AccordionExample.mxml (added)
+++ incubator/flex/whiteboard/navigators/examples/src/AccordionExample.mxml Sun Jan  8 22:14:13
2012
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+					   xmlns:s="library://ns.adobe.com/flex/spark" 
+					   xmlns:st="library://ns.tink.ws/flex/spark">
+	
+	<s:Panel title="Accordion Example" bottom="10" left="10" right="10" top="10">
+		
+		<s:layout>
+			<s:VerticalLayout paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10"/>
+		</s:layout>
+		
+		<st:Accordion id="navigator" width="100%" height="100%">
+			<s:BorderContainer id="Item0" width="100%" height="100%" backgroundColor="0x0000ff">
+				<s:Label text="Accordion item 0" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+			<s:BorderContainer id="Item1" width="100%" height="100%" backgroundColor="0xff0000">
+				<s:Label text="Accordion item 1" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+			<s:BorderContainer id="Item2" width="100%" height="100%" backgroundColor="0x00ff00">
+				<s:Label text="Accordion item 2" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+		</st:Accordion>
+		
+		<s:ButtonBar dataProvider="{navigator}"/>
+		
+	</s:Panel>
+	
+</s:Application>

Added: incubator/flex/whiteboard/navigators/examples/src/DataAccordionExample.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/src/DataAccordionExample.mxml?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/src/DataAccordionExample.mxml (added)
+++ incubator/flex/whiteboard/navigators/examples/src/DataAccordionExample.mxml Sun Jan  8
22:14:13 2012
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+					   xmlns:s="library://ns.adobe.com/flex/spark" 
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:st="library://ns.tink.ws/flex/spark">
+	
+	<s:Panel title="DataAccordion Example" bottom="10" left="10" right="10" top="10">
+		
+		<s:layout>
+			<s:VerticalLayout paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10"/>
+		</s:layout>
+		
+		<st:DataAccordion id="dataAccordion" width="100%" height="100%">
+			<st:dataProvider>
+				<s:ArrayList>
+					<fx:Object label="Item 0" color="0x0000ff"/>
+					<fx:Object label="Item 1" color="0xff0000"/>
+					<fx:Object label="Item 2" color="0x00ff00"/>
+				</s:ArrayList>
+			</st:dataProvider>
+			<st:itemRenderer>
+				<fx:Component>
+					<s:ItemRenderer width="100%" height="100%">
+						
+						<fx:Script>
+							<![CDATA[
+								
+								[Bindable]
+								private var _color:uint;
+								
+								override public function set data( value:Object ):void
+								{
+									super.data = value;
+									if( data ) _color = data.color
+								}
+								
+							]]>
+						</fx:Script>
+						
+						<s:Rect width="100%" height="100%">
+							<s:fill>
+								<s:SolidColor color="{_color}"/>
+							</s:fill>
+						</s:Rect>
+						
+						<s:Label text="DataAccordion item {itemIndex}" color="0xffffff" horizontalCenter="0"
verticalCenter="0"/>
+						
+					</s:ItemRenderer>
+				</fx:Component>
+			</st:itemRenderer>
+		</st:DataAccordion>
+		
+		<s:HGroup>
+			<s:Button label="Select item 0" click="dataAccordion.selectedIndex=0;"/>
+			<s:Button label="Select item 1" click="dataAccordion.selectedIndex=1;"/>
+			<s:Button label="Select item 2" click="dataAccordion.selectedIndex=2;"/>
+		</s:HGroup>
+		
+	</s:Panel>
+</s:Application>

Added: incubator/flex/whiteboard/navigators/examples/src/DataNavigatorExample.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/src/DataNavigatorExample.mxml?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/src/DataNavigatorExample.mxml (added)
+++ incubator/flex/whiteboard/navigators/examples/src/DataNavigatorExample.mxml Sun Jan  8
22:14:13 2012
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+					   xmlns:s="library://ns.adobe.com/flex/spark" 
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:st="library://ns.tink.ws/flex/spark">
+	
+	<s:Panel title="DataNavigator Example" bottom="10" left="10" right="10" top="10">
+		
+		<s:layout>
+			<s:VerticalLayout paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10"/>
+		</s:layout>
+		
+		<st:DataNavigator id="navigator" width="100%" height="100%">
+			<st:dataProvider>
+				<s:ArrayList>
+					<fx:Object label="Item 0" color="0x0000ff"/>
+					<fx:Object label="Item 1" color="0xff0000"/>
+					<fx:Object label="Item 2" color="0x00ff00"/>
+				</s:ArrayList>
+			</st:dataProvider>
+			<st:itemRenderer>
+				<fx:Component>
+					<s:ItemRenderer width="100%" height="100%">
+						
+						<fx:Script>
+							<![CDATA[
+								
+								[Bindable]
+								private var _color:uint;
+								
+								override public function set data( value:Object ):void
+								{
+									super.data = value;
+									if( data ) _color = data.color
+								}
+								
+							]]>
+						</fx:Script>
+						
+						<s:Rect width="100%" height="100%">
+							<s:fill>
+								<s:SolidColor color="{_color}"/>
+							</s:fill>
+						</s:Rect>
+						
+						<s:Label text="DataNavigator item {itemIndex}" color="0xffffff" horizontalCenter="0"
verticalCenter="0"/>
+						
+					</s:ItemRenderer>
+				</fx:Component>
+			</st:itemRenderer>
+		</st:DataNavigator>
+		
+		<s:ButtonBar dataProvider="{navigator}"/>
+		
+	</s:Panel>
+	
+</s:Application>

Added: incubator/flex/whiteboard/navigators/examples/src/NavigatorExample.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/src/NavigatorExample.mxml?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/src/NavigatorExample.mxml (added)
+++ incubator/flex/whiteboard/navigators/examples/src/NavigatorExample.mxml Sun Jan  8 22:14:13
2012
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+					   xmlns:s="library://ns.adobe.com/flex/spark" 
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:st="library://ns.tink.ws/flex/spark">
+	
+	<s:Panel title="Navigator Example" bottom="10" left="10" right="10" top="10">
+		
+		<s:layout>
+			<s:VerticalLayout paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10"/>
+		</s:layout>
+		
+		<st:Navigator id="navigator" width="100%" height="100%" creationPolicy="all">
+			<s:BorderContainer id="Item0" width="100%" height="100%" backgroundColor="0x0000ff">
+				<s:Label text="Accordion item 0" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+			<s:BorderContainer id="Item1" width="100%" height="100%" backgroundColor="0xff0000">
+				<s:Label text="Accordion item 1" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+			<s:BorderContainer id="Item2" width="100%" height="100%" backgroundColor="0x00ff00">
+				<s:Label text="Accordion item 2" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+		</st:Navigator>
+		
+		<s:ButtonBar dataProvider="{navigator}"/>
+		
+	</s:Panel>
+	
+</s:Application>

Added: incubator/flex/whiteboard/navigators/examples/src/TabNavigatorExample.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/navigators/examples/src/TabNavigatorExample.mxml?rev=1228976&view=auto
==============================================================================
--- incubator/flex/whiteboard/navigators/examples/src/TabNavigatorExample.mxml (added)
+++ incubator/flex/whiteboard/navigators/examples/src/TabNavigatorExample.mxml Sun Jan  8
22:14:13 2012
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
+					   xmlns:s="library://ns.adobe.com/flex/spark" 
+					   xmlns:mx="library://ns.adobe.com/flex/mx"
+					   xmlns:st="library://ns.tink.ws/flex/spark">
+	
+	<s:Panel title="Navigator Example" bottom="10" left="10" right="10" top="10">
+		
+		<s:layout>
+			<s:VerticalLayout paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10"/>
+		</s:layout>
+		
+		<st:Navigator id="navigator" width="100%" height="100%"
+					  borderColor="0xa1a1a1"
+					  skinClass="ws.tink.spark.skins.containers.TabNavigatorSkin">
+			<s:BorderContainer id="Item0" width="100%" height="100%" backgroundColor="0x0000ff">
+				<s:Label text="Accordion item 0" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+			<s:BorderContainer id="Item1" width="100%" height="100%" backgroundColor="0xff0000">
+				<s:Label text="Accordion item 1" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+			<s:BorderContainer id="Item2" width="100%" height="100%" backgroundColor="0x00ff00">
+				<s:Label text="Accordion item 2" color="0xffffff" horizontalCenter="0" verticalCenter="0"/>
+			</s:BorderContainer>
+		</st:Navigator>
+		
+	</s:Panel>
+	
+</s:Application>



Mime
View raw message