[virtualcommons-svn] SF.net SVN: virtualcommons:[520] web/trunk
Status: Beta
Brought to you by:
alllee
From: <al...@us...> - 2010-06-15 22:57:36
|
Revision: 520 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=520&view=rev Author: alllee Date: 2010-06-15 22:57:30 +0000 (Tue, 15 Jun 2010) Log Message: ----------- Seema's initial Flex front-end for the web-based field experiments, focused on game configuration. Added Paths: ----------- web/trunk/src/ web/trunk/src/main/ web/trunk/src/main/flex/ web/trunk/src/main/flex/edu/ web/trunk/src/main/flex/edu/asu/ web/trunk/src/main/flex/edu/asu/commons/ web/trunk/src/main/flex/edu/asu/commons/flex/ web/trunk/src/main/flex/edu/asu/commons/flex/config/ web/trunk/src/main/flex/edu/asu/commons/flex/config/Forestree.mxml web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/ web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/GameConfiguration.mxml web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/ResourceConfiguration.mxml web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/StageConfiguration.mxml web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/WizardStep.mxml web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/stageConfig/ web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/stageConfig/Voting.mxml web/trunk/src/main/flex/edu/asu/commons/flex/config/wizard/ web/trunk/src/main/flex/edu/asu/commons/flex/config/wizard/Wizard.mxml web/trunk/src/main/java/ web/trunk/src/main/resources/ web/trunk/src/main/resources/images/ web/trunk/src/main/resources/images/Picture10.jpg web/trunk/src/main/resources/images/TreeLess.jpg web/trunk/src/main/resources/images/ViewResult.png web/trunk/src/main/resources/images/bg-header.png web/trunk/src/main/resources/images/bg-main-corner-sprite.png web/trunk/src/main/resources/images/bg-main.png web/trunk/src/main/resources/images/body.jpg web/trunk/src/main/resources/images/livesearchbghilight.jpg web/trunk/src/main/resources/images/loading.gif web/trunk/src/main/resources/images/tree3.jpg web/trunk/src/main/resources/images/tree4.jpg Added: web/trunk/src/main/flex/edu/asu/commons/flex/config/Forestree.mxml =================================================================== --- web/trunk/src/main/flex/edu/asu/commons/flex/config/Forestree.mxml (rev 0) +++ web/trunk/src/main/flex/edu/asu/commons/flex/config/Forestree.mxml 2010-06-15 22:57:30 UTC (rev 520) @@ -0,0 +1,37 @@ +<?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:commons="edu.asu.commons.flex.config.wizard.*" + xmlns:wizardStep="edu.asu.commons.flex.config.steps.*" + width="100%" height="100%"> + + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <fx:Script> + <![CDATA[ + + ]]> + </fx:Script> + + + <commons:Wizard id="wizExperimentConfiguration"> + <commons:layout> + <s:BasicLayout/> + </commons:layout> + <wizardStep:WizardStep title="Stage Configuration"> + <wizardStep:StageConfiguration id="wizStepStageConfiguration1"> + + </wizardStep:StageConfiguration> + + </wizardStep:WizardStep> + <!-- <wizardStep:WizardStep title="Resource Configuration"> + <wizardStep:ResourceConfiguration id="wizStepresourceConfiguraiton"> + </wizardStep:ResourceConfiguration> + </wizardStep:WizardStep> --> + + </commons:Wizard> + + +</s:Application> Property changes on: web/trunk/src/main/flex/edu/asu/commons/flex/config/Forestree.mxml ___________________________________________________________________ Added: svn:executable + * Added: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/GameConfiguration.mxml =================================================================== --- web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/GameConfiguration.mxml (rev 0) +++ web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/GameConfiguration.mxml 2010-06-15 22:57:30 UTC (rev 520) @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"> + <s:layout> + <s:BasicLayout/> + </s:layout> + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <s:VGroup left="50" right="50" top="20" bottom="50"> + <s:Label text="Game Configuration" horizontalCenter="-92" verticalCenter="-117" textAlign="center" verticalAlign="middle" fontWeight="bold" width="243" height="18" fontSize="14" paddingLeft="50"/> + + <mx:Form paddingTop="5" paddingLeft="5" borderVisible="false" paddingRight="0" paddingBottom="0"> + <mx:FormItem label="Title" borderVisible="false"> + <s:TextInput/> + </mx:FormItem> + <mx:FormItem label="Select the Game" borderVisible="false"> + <s:DropDownList width="127"></s:DropDownList> + </mx:FormItem> + <mx:FormItem label="Money" borderVisible="false"> + <s:TextInput/> + </mx:FormItem> + </mx:Form> + + + </s:VGroup> + +</s:Group> Property changes on: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/GameConfiguration.mxml ___________________________________________________________________ Added: svn:executable + * Added: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/ResourceConfiguration.mxml =================================================================== --- web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/ResourceConfiguration.mxml (rev 0) +++ web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/ResourceConfiguration.mxml 2010-06-15 22:57:30 UTC (rev 520) @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx" + width="100%" height="100%" x="54" y="0" horizontalAlign="center" verticalAlign="middle" gap="5"> + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + + </fx:Declarations> + <fx:Script> + <![CDATA[ + import mx.collections.ArrayList; + import mx.events.FlexEvent; + /*[Bindable] + private var groupVariables:ArrayList = new ArrayList(null); + + public function set GroupVaribles():void + { + groupVariables.addItem(new String("n")); + groupVariables.addItem(new String("h")); + } + + public function get GroupVariables():ArrayList + { + return groupVariables; + }*/ + + protected function vgroup1_initializeHandler(event:FlexEvent):void + { + // TODO Auto-generated method stub + } + /*public function assignImage(imgUrl:String):void + { + imgA.source = imgUrl; + imgA.visible = true; + } + + override protected function updateDisplayList(w:Number,h:Number):void + { + imgA.width = w; + imgA.height = h; + super.updateDisplayList(w,h); + } */ + + ]]> + </fx:Script> + <mx:Label text="Resource Configuration" fontSize="14" fontStyle="normal" fontWeight="bold"/> + <s:HGroup width="75%" height="20%"> + <mx:Form id="frmResource" paddingTop="10" paddingLeft="10" borderVisible="false" width="50%"> + <mx:FormItem label="Resource Type" borderVisible="false"> + <s:TextInput id="txtResourceType"/> + </mx:FormItem> + <mx:FormItem label="Resource Unit" borderVisible="false"> + <s:TextInput id="txtResourceUnit"/> + </mx:FormItem> + + </mx:Form> + <mx:Panel width="50%" height="100%" dropShadowVisible="false" title="Select the Image" horizontalAlign="left" verticalAlign="middle"> + <s:HGroup width="100%" height="100%" verticalAlign="middle" requestedColumnCount="4" paddingLeft="10" paddingTop="0" gap="20"> + <s:Graphic buttonMode="true" + mouseEnabledWhereTransparent="false" + useHandCursor="true"> + <s:Rect id="rectPlain" + width="30" height="30" + x="0" y="0"> + <s:fill> + <s:SolidColor color="green" /> + + </s:fill> + </s:Rect> + </s:Graphic> + <mx:Image source="@Embed(source='../images/tree4.JPG')" buttonMode="true" useHandCursor="true" maintainAspectRatio="true" width="30" height="30"/> + <mx:Image source="@Embed(source='../images/Picture10.jpg')" buttonMode="true" useHandCursor="true" maintainAspectRatio="true" width="30" height="30"/> + <mx:Image source="@Embed(source='../images/tree3.jpg')" buttonMode="true" useHandCursor="true" maintainAspectRatio="true" width="30" height="30"/> + + </s:HGroup> + + </mx:Panel> + </s:HGroup> + + <s:HGroup verticalAlign="middle" horizontalAlign="center" requestedColumnCount="2" height="30%" width="75%"> + <s:List id="lstGroupVariables" borderVisible="true" fontSize="12" height="59" fontWeight="bold" textAlign="center"> + <s:layout> + <s:VerticalLayout horizontalAlign="center" requestedRowCount="1"/> + </s:layout> + <s:dataProvider> + <mx:ArrayCollection> + <fx:String>n</fx:String> + <fx:String>h</fx:String> + </mx:ArrayCollection> + </s:dataProvider> + </s:List> + <s:List id="lstGlobalVariables"> + <s:layout> + <s:HorizontalLayout verticalAlign="middle" requestedColumnCount="1"/> + </s:layout> + </s:List> + + </s:HGroup> + + <s:VGroup horizontalAlign="center" verticalAlign="middle" gap="5" paddingTop="20" paddingBottom="20" requestedRowCount="2" height="30%" width="75%"> + <s:Button id="btnNewGlobalVariable" label="New Global Variable" click="{frmNewGloblVariable.visible=true}" > + </s:Button> + <mx:Form id="frmNewGloblVariable" visible="true" borderVisible="false" paddingLeft="10"> + <mx:FormItem label="Global Variable Name"> + <s:TextInput id="txtGlobalVarName"/> + </mx:FormItem> + <mx:FormItem label="Global Variable Description"> + <s:TextInput id="txtGlobalVarDescription"/> + </mx:FormItem> + <mx:FormItem label="Global Variable Value"> + <s:TextInput id="txtGlobalVarValue"/> + </mx:FormItem> + </mx:Form> + <s:HGroup verticalAlign="middle" horizontalAlign="center" bottom="20" left="20"> + <s:Button id="btnAddGlobalVariable" label="Add" > + </s:Button> + <s:Button id="btnCancel" label="Cancel" > + </s:Button> + </s:HGroup> + + </s:VGroup> + <s:VGroup horizontalAlign="center" requestedRowCount="5" paddingBottom="10" paddingTop="10" height="20%" width="75%" gap="10"> + <s:HGroup> + <s:Button id="btnEqual" label="=" > + </s:Button> + <s:Button id="btnPlus" label="+" > + </s:Button> + <s:Button id="btnMinus" label="-" > + </s:Button> + <s:Button id="btnMultiply" label="*" > + </s:Button> + <s:Button id="btnDivide" label="/" > + </s:Button> + + </s:HGroup> + <s:TextInput id="txtEquation" paddingLeft="5" paddingRight="5" paddingBottom="5" width="350" x="64"/> + <s:Button label="Reset" id="btnReset"/> + + </s:VGroup> + + +</s:VGroup> Property changes on: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/ResourceConfiguration.mxml ___________________________________________________________________ Added: svn:executable + * Added: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/StageConfiguration.mxml =================================================================== --- web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/StageConfiguration.mxml (rev 0) +++ web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/StageConfiguration.mxml 2010-06-15 22:57:30 UTC (rev 520) @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" + horizontalAlign="center" + creationComplete="vgroup1_creationCompleteHandler(event)"> + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <fx:Script> + <![CDATA[ + import mx.collections.ArrayCollection; + import mx.events.FlexEvent; + import mx.controls.Alert; + + import spark.events.IndexChangeEvent; + + + [Bindable] + protected var stageNames:ArrayCollection = new ArrayCollection(); + + public function getDays():Number + { + return days.value; + + } + public function getHours():Number + { + return hours.value; + + } + public function getMinutes():Number + { + return minutes.value; + + } + public function getSeconds():Number + { + return seconds.value; + + } + + //get from server + + public function get StageNames():ArrayCollection + { + + return stageNames; + } + + public function set StageNames(stgNames:ArrayCollection):void + { + stageNames = stgNames; + } + + + + protected function vgroup1_creationCompleteHandler(event:FlexEvent):void + { + stageNames.addItem("-Select-"); + stageNames.addItem("Pre-experiment"); + stageNames.addItem("Simple"); + stageNames.addItem("Practice"); + stageNames.addItem("Voting"); + stageNames.addItem("Survey"); + stageNames.addItem("Debriefing"); + + //drpdwnStageNames.dataProvider = stageNames; + + } + + + protected function drpdwnStageNames_changeHandler(event:IndexChangeEvent):void + { + // TODO Auto-generated method stub + Alert.show(drpdwnStageNames.selectedItem); + switch(drpdwnStageNames.selectedItem) + { + case "Simple": + frmItemNumberOfRounds.visible=true; + break; + + case "Practice": + frmItemNumberOfRounds.visible=true; + break; + + case "Voting": + frmItemNumberOfRounds.visible=false; + break; + + case "Survey": + frmItemNumberOfRounds.visible=false; + break; + + case "Debriefing": + frmItemNumberOfRounds.visible=false; + break; + + } + } + + ]]> + </fx:Script> + <s:Label text="Stage Configuration" id="lblStageConfiguration" fontWeight="bold" fontSize="14" paddingTop="10"/> + + + <s:HGroup width="100%" requestedColumnCount="2" paddingTop="10" verticalAlign="middle"> + + <mx:Form label="Stage Configuration" width="80%" height="100%" paddingTop="16" borderVisible="true"> + <mx:FormItem label="Select the Stage" fontWeight="bold"> + <s:DropDownList id="drpdwnStageNames" fontWeight="normal" dataProvider="{stageNames}" change="drpdwnStageNames_changeHandler(event)"></s:DropDownList> + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem label="Sequence Number" fontWeight="bold"> + <s:TextInput fontWeight="normal"/> + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem label="Stage Description" width="90%" height="30%" fontWeight="bold"> + <mx:RichTextEditor id="rchtxtStageDescription" title="Stage Description" width="100%" height="300" fontWeight="normal" dropShadowVisible="false" borderVisible="true"/> + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem label="Duration(hr:min:sec)" fontWeight="bold" width="100%"> + <mx:HBox> + <mx:NumericStepper id="days" minimum="0" maximum="10" stepSize="1" change="{getDays()}" paddingLeft="0" paddingRight="0" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="hours" minimum="0" maximum="12" stepSize="1" change="{getHours()}" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="minutes" minimum="0" maximum="60" stepSize="1" change="{getMinutes()}" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="seconds" minimum="0" maximum="60" stepSize="1" change="{getSeconds()}" width="45" fontWeight="normal"/> + </mx:HBox> + + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem id="frmItemNumberOfRounds" label="Number of Rounds" fontWeight="bold" visible="false"> + <s:NumericStepper fontWeight="normal" width="45" minimum="0" maximum="20" stepSize="1"/> + </mx:FormItem> + </mx:Form> + <mx:Spacer width="2%"/> + <s:Group id="grpCustomComponents"> + + </s:Group> + <s:List height="50%" width="15%"> + <s:layout> + <s:VerticalLayout horizontalAlign="center" paddingTop="20"/> + </s:layout> + + </s:List> + + </s:HGroup> + +</s:VGroup> Property changes on: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/StageConfiguration.mxml ___________________________________________________________________ Added: svn:executable + * Added: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/WizardStep.mxml =================================================================== --- web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/WizardStep.mxml (rev 0) +++ web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/WizardStep.mxml 2010-06-15 22:57:30 UTC (rev 520) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"> + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <fx:Script> + <![CDATA[ + + private var _title:String; + + public function set title(title:String):void + { + this._title = title; + } + + public function get title():String + { + return this._title; + } + + ]]> + </fx:Script> +</s:Group> Property changes on: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/WizardStep.mxml ___________________________________________________________________ Added: svn:executable + * Added: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/stageConfig/Voting.mxml =================================================================== --- web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/stageConfig/Voting.mxml (rev 0) +++ web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/stageConfig/Voting.mxml 2010-06-15 22:57:30 UTC (rev 520) @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" horizontalAlign="center" paddingTop="10"> + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <s:Label text="Voting" id="lblVoting" fontWeight="bold" fontSize="14" width="50" x="269"/> + <mx:Form width="100%"> + <mx:FormItem label="Enable Communication" fontWeight="bold"> + <s:CheckBox fontWeight="normal"/> + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem label="Communication Duration(hr:min:sec)" fontWeight="bold" width="100%"> + <mx:HBox> + <mx:NumericStepper id="numstepComDays" minimum="0" maximum="10" stepSize="1" change="{getDays()}" paddingLeft="0" paddingRight="0" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="numstepComHours" minimum="0" maximum="12" stepSize="1" change="{getHours()}" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="numstepComMinutes" minimum="0" maximum="60" stepSize="1" change="{getMinutes()}" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="numstepComSeconds" minimum="0" maximum="60" stepSize="1" change="{getSeconds()}" width="45" fontWeight="normal"/> + </mx:HBox> + + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem label="Rule" fontWeight="bold"> + <s:DropDownList fontWeight="normal"></s:DropDownList> + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem label="Rule Description" width="90%" height="30%" fontWeight="bold"> + <mx:RichTextEditor id="rchtxtRuleDescription" title="Rule Description" width="100%" height="300" fontWeight="normal" dropShadowVisible="false" borderVisible="true" enabled="false"/> + </mx:FormItem> + <mx:Spacer height="5"/> + <mx:FormItem label="Voting Duration(hr:min:sec)" fontWeight="bold" width="100%"> + <mx:HBox> + <mx:NumericStepper id="numstepVotingDays" minimum="0" maximum="10" stepSize="1" change="{getDays()}" paddingLeft="0" paddingRight="0" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="numstepVotingHours" minimum="0" maximum="12" stepSize="1" change="{getHours()}" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="numstepVotingMinutes" minimum="0" maximum="60" stepSize="1" change="{getMinutes()}" width="45" fontWeight="normal"/> + <mx:Label text=":" textAlign="center"/> + <mx:NumericStepper id="numstepVotingSeconds" minimum="0" maximum="60" stepSize="1" change="{getSeconds()}" width="45" fontWeight="normal"/> + </mx:HBox> + + </mx:FormItem> + + </mx:Form> + +</s:VGroup> Property changes on: web/trunk/src/main/flex/edu/asu/commons/flex/config/steps/stageConfig/Voting.mxml ___________________________________________________________________ Added: svn:executable + * Added: web/trunk/src/main/flex/edu/asu/commons/flex/config/wizard/Wizard.mxml =================================================================== --- web/trunk/src/main/flex/edu/asu/commons/flex/config/wizard/Wizard.mxml (rev 0) +++ web/trunk/src/main/flex/edu/asu/commons/flex/config/wizard/Wizard.mxml 2010-06-15 22:57:30 UTC (rev 520) @@ -0,0 +1,150 @@ +<?xml version="1.0" encoding="utf-8"?> +<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/mx" enabled="true" + borderVisible="false" creationComplete="pnlConfiguration_creationCompleteHandler(event)" + width="100%" height="100%" title="{currentStepTitle}"> + <s:layout> + <s:VerticalLayout horizontalAlign="center"/> + </s:layout> + + <fx:Declarations> + <!-- Place non-visual elements (e.g., services, value objects) here --> + </fx:Declarations> + <fx:Script> + <![CDATA[ + import mx.collections.ArrayCollection; + import mx.events.FlexEvent; + + [Bindable] + private var _wizardSteps:ArrayCollection; + + [Bindable] + public var steps:uint = 0; + + [Bindable] + public var currentStepTitle:String = ""; + + [Bindable] + private var totalSteps:uint = 0; + + + private var wizardChildren:ArrayCollection; + + public function nextStep():void + { + if ( steps + 1 <= totalSteps ) + { + steps++; + checkTitle(); + changeView(); + + } + } + + public function checkTitle():void + { + if ( _wizardSteps && _wizardSteps.length > 0 && steps <= totalSteps ) + { + if ( steps < totalSteps ) + { + /*var wvo:WizardStepVO = _wizardViews.getItemAt(steps) as WizardStepVO; + if ( wvo ) + { + currentStepTitle = wvo.name; + }*/ + } + else + { + currentStepTitle = "FINISH"; + } + } + else + { + currentStepTitle = ""; + } + } + + private function changeView(next:Boolean=true):void + { + var vstr:String = "view"; + var pstr:String = "view"; + + var thestep:uint = 0; + + + if ( next ) + { + thestep = steps; + } + else + { + thestep = steps + 1 ; + } + + if ( thestep >= wizardChildrenGroup.numElements ) + { + throw Error("Data in wizardViews does not match amount of children in WizardPanel (There is no child " + vstr + ")"); + return; + } + if ( steps >= 0 ) + { + var prevobj:Object = wizardChildrenGroup.getElementAt(thestep - 1); + + // playStepMoveEffect(next, thestep - 1, prevobj, false); + + prevobj.visible = true; + } + + var nextobj:Object = wizardChildrenGroup.getElementAt(thestep ); + nextobj.visible = true; + + // playStepMoveEffect(next, thestep, nextobj, true); + } + + protected function pnlConfiguration_creationCompleteHandler(event:FlexEvent):void + { + // TODO Auto-generated method stub + + } + [Bindable] + public function get wizardSteps():ArrayCollection + { + return wizardSteps; + } + + public function set wizardSteps(arr:ArrayCollection):void + { + wizardSteps = arr; + if ( wizardSteps ) + totalSteps = _wizardSteps.length; + checkTitle(); + } + + ]]> + </fx:Script> + <s:controlBarContent> + <!--<s:HGroup> + <s:Label text="Experiment Configuration" id="lblCurrentStepTitle" fontWeight="bold" fontSize="12" fontFamily="Georgia" verticalAlign="middle" color="#500918" paddingLeft="30"/> + <mx:Spacer width="96" /> + <s:Label text="Steps: 1 2 3" id="lblSteps" fontWeight="bold" fontSize="12" fontFamily="Georgia" verticalAlign="middle" color="#500918" paddingLeft="50"/> + </s:HGroup> --> + <s:HGroup height="10%" width="100%" gap="20" requestedColumnCount="3" paddingLeft="30" paddingTop="10" paddingRight="30" paddingBottom="10" verticalAlign="middle"> + <s:Button label="Previous" enabled="{steps > 0}"/> + <mx:Spacer width="65%"/> + <s:Button label="Next" enabled="={steps < totalSteps}"/> + </s:HGroup> + + </s:controlBarContent> +<!-- add wizard steps here --> + <s:VGroup> + + <s:Group id="wizardChildrenGroup" left="40" right="40" top="40" bottom="60"> + + </s:Group> + + + + </s:VGroup> + +</s:Panel> Property changes on: web/trunk/src/main/flex/edu/asu/commons/flex/config/wizard/Wizard.mxml ___________________________________________________________________ Added: svn:executable + * Added: web/trunk/src/main/resources/images/Picture10.jpg =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/Picture10.jpg ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/TreeLess.jpg =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/TreeLess.jpg ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/ViewResult.png =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/ViewResult.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/bg-header.png =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/bg-header.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/bg-main-corner-sprite.png =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/bg-main-corner-sprite.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/bg-main.png =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/bg-main.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/body.jpg =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/body.jpg ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/livesearchbghilight.jpg =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/livesearchbghilight.jpg ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/loading.gif =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/loading.gif ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/tree3.jpg =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/tree3.jpg ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: web/trunk/src/main/resources/images/tree4.jpg =================================================================== (Binary files differ) Property changes on: web/trunk/src/main/resources/images/tree4.jpg ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |