利用者向け情報

開発者向け情報

[sandbox.akabana]/trunk/yui-frameworks/yui-command/src/main/flex/jp/akb7/yui/cmd/SequenceCommand.as

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 704 by e1arkw, Fri Apr 10 18:24:17 2009 JST revision 708 by e1arkw, Sat Apr 11 18:48:10 2009 JST
# Line 22  package org.seasar.akabana.yui.command Line 22  package org.seasar.akabana.yui.command
22    
23      public class SequenceCommand extends AbstractComplexCommand      public class SequenceCommand extends AbstractComplexCommand
24      {      {
25            protected var currentCommandIndex:int;
26    
27            public function SequenceCommand(){
28                super();
29                currentCommandIndex = 0;
30            }
31    
32          public override function start(...args):Command          public override function start(...args):Command
33          {          {
34              currentCommandIndex = 0;              currentCommandIndex = 0;
# Line 30  package org.seasar.akabana.yui.command Line 37  package org.seasar.akabana.yui.command
37              return this;              return this;
38          }          }
39    
40          protected override function commandCompleteEventHandler(event:CommandEvent):void{          protected override function childCommandCompleteEventHandler(event:CommandEvent):void{
41              if( childCompleteEventHandler != null ){              if( childCompleteEventHandler != null ){
42                  childCompleteEventHandler(event);                  childCompleteEventHandler(event);
43              }              }
# Line 42  package org.seasar.akabana.yui.command Line 49  package org.seasar.akabana.yui.command
49              }              }
50          }          }
51    
52          protected override function commandErrorEventHandler(event:CommandEvent):void{          protected override function childCommandErrorEventHandler(event:CommandEvent):void{
53                if( childErrorEventHandler != null ){
54                    childErrorEventHandler(event);
55                }
56              dispatchErrorEvent(event);              dispatchErrorEvent(event);
57          }          }
58    
59            protected function doStartCommand():void{
60                var command:Command = commands[ currentCommandIndex ];
61                command.start.apply(null,commandArguments);
62            }
63      }      }
64  }  }

Legend:
Removed from v.704  
changed lines
  Added in v.708

Repository Top
ViewVC Help  
ViewVC logotype
Powered by ViewVC