CommandButton.as

Go to the documentation of this file.
00001 import gugga.components.Button;
00002 import gugga.common.ICommand;
00003 import gugga.commands.CommandManager;
00004 
00008 class gugga.components.CommandButton extends Button 
00009 {
00010         private var mCommand:ICommand;
00011         public function get Command() : ICommand { return mCommand; }
00012         public function set Command(aValue:ICommand) : Void { mCommand = aValue; }
00013         
00014         private function onRelease() : Void
00015         {
00016                 super.onRelease();
00017                 CommandManager.Instance.execute(mCommand);
00018         }
00019 }

Generated on Fri May 11 17:12:42 2007 for GuggaFramework by  doxygen 1.5.2