You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ti...@apache.org on 2012/02/15 23:21:17 UTC
svn commit: r1244764 - in
/incubator/flex/whiteboard/tink/navigators/examples/src:
AccordionLayoutExamples.mxml CarouselLayoutExamples.mxml
CoverflowLayoutExamples.mxml
Author: tink
Date: Wed Feb 15 22:21:17 2012
New Revision: 1244764
URL: http://svn.apache.org/viewvc?rev=1244764&view=rev
Log:
Tidied up some of the options for the layouts.
Modified:
incubator/flex/whiteboard/tink/navigators/examples/src/AccordionLayoutExamples.mxml
incubator/flex/whiteboard/tink/navigators/examples/src/CarouselLayoutExamples.mxml
incubator/flex/whiteboard/tink/navigators/examples/src/CoverflowLayoutExamples.mxml
Modified: incubator/flex/whiteboard/tink/navigators/examples/src/AccordionLayoutExamples.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/tink/navigators/examples/src/AccordionLayoutExamples.mxml?rev=1244764&r1=1244763&r2=1244764&view=diff
==============================================================================
--- incubator/flex/whiteboard/tink/navigators/examples/src/AccordionLayoutExamples.mxml (original)
+++ incubator/flex/whiteboard/tink/navigators/examples/src/AccordionLayoutExamples.mxml Wed Feb 15 22:21:17 2012
@@ -48,7 +48,7 @@
direction="{direction.selectedItem.label}" buttonRotation="{buttonRotation.selectedItem.label}"
minElementSize="{minElementSize.value}" useScrollRect="{useScrollRect.selected}"
easer="{easer.selectedItem.ease}" duration="{duration.value}"
- useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem.label}"/>
+ useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem}"/>
</st:layout>
<s:BorderContainer id="Item0" width="100%" height="100%" backgroundColor="0x0000ff">
@@ -268,7 +268,7 @@
<s:HGroup horizontalAlign="center" verticalAlign="middle" gap="0">
<s:Label text="easer:" fontWeight="bold" fontSize="8"/>
- <s:ButtonBar id="easer" fontSize="8">
+ <s:ButtonBar id="easer" fontSize="8" requireSelection="true">
<s:dataProvider>
<s:ArrayList>
<fx:Object label="Linear" ease="{new Linear( 0, 1 )}"/>
@@ -296,11 +296,11 @@
<fx:Divider/>
<s:Label text="scrollBarDirection:" fontWeight="bold" enabled="{useScrollBarForNavigation.selected}" fontSize="8"/>
- <s:ButtonBar id="scrollBarDirection" enabled="{useScrollBarForNavigation.selected}" fontSize="8">
+ <s:ButtonBar id="scrollBarDirection" enabled="{useScrollBarForNavigation.selected}" fontSize="8" requireSelection="true">
<s:dataProvider>
<s:ArrayList>
- <fx:Object label="vertical"/>
- <fx:Object label="horizontal"/>
+ <fx:String>vertical</fx:String>
+ <fx:String>horizontal</fx:String>
</s:ArrayList>
</s:dataProvider>
</s:ButtonBar>
Modified: incubator/flex/whiteboard/tink/navigators/examples/src/CarouselLayoutExamples.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/tink/navigators/examples/src/CarouselLayoutExamples.mxml?rev=1244764&r1=1244763&r2=1244764&view=diff
==============================================================================
--- incubator/flex/whiteboard/tink/navigators/examples/src/CarouselLayoutExamples.mxml (original)
+++ incubator/flex/whiteboard/tink/navigators/examples/src/CarouselLayoutExamples.mxml Wed Feb 15 22:21:17 2012
@@ -103,7 +103,7 @@
projectionCenterX="{projectionCenterX.value}" projectionCenterY="{projectionCenterY.value}"
fieldOfView="{fieldOfView.value}"
easer="{easer.selectedItem.ease}" duration="{duration.value}"
- useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem.label}"/>
+ useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem}"/>
</st:layout>
<s:BorderContainer width="20%" height="20%" backgroundColor="0xff0000">
@@ -158,7 +158,7 @@
<st:DataNavigator id="dataNavigator" width="400" height="300">
<st:layout>
- <st:CarouselLayout useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem.label}"
+ <st:CarouselLayout useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem}"
angle="{angle.value}" numUnselectedElements="{numUnselectedElements.value}"
rotateX="{rotateX.selectedItem.label}" rotateY="{rotateY.selectedItem.label}"
easer="{easer.selectedItem.ease}" duration="{duration.value}"
@@ -397,7 +397,7 @@
<s:HGroup horizontalAlign="center" verticalAlign="middle" gap="0">
<s:Label text="easer:" fontWeight="bold" fontSize="8"/>
- <s:ButtonBar id="easer" fontSize="8">
+ <s:ButtonBar id="easer" fontSize="8" requireSelection="true">
<s:dataProvider>
<s:ArrayList>
<fx:Object label="Linear" ease="{new Linear( 0, 1 )}"/>
@@ -425,11 +425,11 @@
<fx:Divider/>
<s:Label text="scrollBarDirection:" fontWeight="bold" enabled="{useScrollBarForNavigation.selected}" fontSize="8"/>
- <s:ButtonBar id="scrollBarDirection" enabled="{useScrollBarForNavigation.selected}" fontSize="8">
+ <s:ButtonBar id="scrollBarDirection" enabled="{useScrollBarForNavigation.selected}" fontSize="8" requireSelection="true">
<s:dataProvider>
<s:ArrayList>
- <fx:Object label="vertical"/>
- <fx:Object label="horizontal"/>
+ <fx:String>vertical</fx:String>
+ <fx:String>horizontal</fx:String>
</s:ArrayList>
</s:dataProvider>
</s:ButtonBar>
Modified: incubator/flex/whiteboard/tink/navigators/examples/src/CoverflowLayoutExamples.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/tink/navigators/examples/src/CoverflowLayoutExamples.mxml?rev=1244764&r1=1244763&r2=1244764&view=diff
==============================================================================
--- incubator/flex/whiteboard/tink/navigators/examples/src/CoverflowLayoutExamples.mxml (original)
+++ incubator/flex/whiteboard/tink/navigators/examples/src/CoverflowLayoutExamples.mxml Wed Feb 15 22:21:17 2012
@@ -52,7 +52,7 @@
verticalDisplacement="{verticalDisplacement.value}" selectedVerticalDisplacement="{selectedVerticalDisplacement.value}"
projectionCenterX="{projectionCenterX.value}" projectionCenterY="{projectionCenterY.value}" fieldOfView="{fieldOfView.value}"
easer="{easer.selectedItem.ease}" duration="{duration.value}"
- useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem.label}"/>
+ useScrollBarForNavigation="{useScrollBarForNavigation.selected}" scrollBarDirection="{scrollBarDirection.selectedItem}"/>
</st:layout>
<s:BorderContainer width="20%" height="20%" backgroundColor="0xff0000">
@@ -337,7 +337,7 @@
<s:HGroup horizontalAlign="center" verticalAlign="middle" gap="0">
<s:Label text="easer:" fontWeight="bold" fontSize="8"/>
- <s:ButtonBar id="easer" fontSize="8">
+ <s:ButtonBar id="easer" fontSize="8" requireSelection="true">
<s:dataProvider>
<s:ArrayList>
<fx:Object label="Linear" ease="{new Linear( 0, 1 )}"/>
@@ -365,11 +365,11 @@
<fx:Divider/>
<s:Label text="scrollBarDirection:" fontWeight="bold" enabled="{useScrollBarForNavigation.selected}" fontSize="8"/>
- <s:ButtonBar id="scrollBarDirection" enabled="{useScrollBarForNavigation.selected}" fontSize="8">
+ <s:ButtonBar id="scrollBarDirection" enabled="{useScrollBarForNavigation.selected}" fontSize="8" requireSelection="true">
<s:dataProvider>
<s:ArrayList>
- <fx:Object label="vertical"/>
- <fx:Object label="horizontal"/>
+ <fx:String>vertical</fx:String>
+ <fx:String>horizontal</fx:String>
</s:ArrayList>
</s:dataProvider>
</s:ButtonBar>