利用者向け情報

開発者向け情報

[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 1672 by e1arkw, Fri Aug 12 09:51:02 2011 JST revision 1678 by e1arkw, Sat Aug 13 16:17:22 2011 JST
# Line 22  package org.seasar.akabana.yui.command Line 22  package org.seasar.akabana.yui.command
22    
23          protected var _currentCommandIndex:int;          protected var _currentCommandIndex:int;
24    
25          protected override function run():void{          protected final override function runAsync():void{
26              _currentCommandIndex = 0;              _currentCommandIndex = 0;
27              if( _commands.length > 0 ){              if( _commands.length > 0 ){
28                  doStartCommands();                  doStartCommands();
29              } else {              } else {
30                  doDoneCommand();                  doneAsync();
31              }              }
32          }          }
33    
34          protected override function childCommandCompleteEventHandler(event:CommandEvent):void{          protected final override function childCommandCompleteEventHandler(event:CommandEvent):void{
35              _lastCommand = event.command;              _lastCommand = event.command;
36              if( _childCompleteEventListener.handler != null ){              if( _childCompleteEventListener.handler != null ){
37                  _childCompleteEventListener.handler(event);                  _childCompleteEventListener.handler(event);
# Line 49  package org.seasar.akabana.yui.command Line 49  package org.seasar.akabana.yui.command
49                      if( _lastCommand is AbstractComplexCommand ){                      if( _lastCommand is AbstractComplexCommand ){
50                          args = _arguments;                          args = _arguments;
51                      } else {                      } else {
52                          args = [pendingResult];                          if( hasPendingResult ){
53                                args = [pendingResult];
54                            } else {
55                                args = _arguments;
56                            }
57                      }                      }
58                  }                  }
59    
60                  doStartCommandAt(_currentCommandIndex,args);                  doStartCommandAt(_currentCommandIndex,args);
61              } else {              } else {
62                  doDone();                  completeAsync();
63              }              }
64          }          }
65    
66          protected override function childCommandErrorEventHandler(event:CommandEvent):void{          protected final override function childCommandErrorEventHandler(event:CommandEvent):void{
67              _lastCommand = event.command;              _lastCommand = event.command;
68              if( _childErrorEventListener.handler != null ){              if( _childErrorEventListener.handler != null ){
69                  _childErrorEventListener.handler(event);                  _childErrorEventListener.handler(event);
70              }              }
71              doFailedCommand(event.data);              faildAsync(event.data);
72          }          }
73    
74          protected function doStartCommands():void{          protected final function doStartCommands():void{
75              _currentCommandIndex = 0;              _currentCommandIndex = 0;
76    
77              doStartCommandAt(_currentCommandIndex,_arguments);              doStartCommandAt(_currentCommandIndex,_arguments);

Legend:
Removed from v.1672  
changed lines
  Added in v.1678

Repository Top
ViewVC Help  
ViewVC logotype
Powered by ViewVC