home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / managers / CursorManager.as next >
Encoding:
Text File  |  2008-10-29  |  2.8 KB  |  114 lines

  1. package mx.managers
  2. {
  3.    import mx.core.Singleton;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class CursorManager
  9.    {
  10.       private static var _impl:ICursorManager;
  11.       
  12.       private static var implClassDependency:CursorManagerImpl;
  13.       
  14.       mx_internal static const VERSION:String = "3.0.0.0";
  15.       
  16.       public static const NO_CURSOR:int = 0;
  17.       
  18.       public function CursorManager()
  19.       {
  20.          super();
  21.       }
  22.       
  23.       public static function set currentCursorYOffset(param1:Number) : void
  24.       {
  25.          impl.currentCursorYOffset = param1;
  26.       }
  27.       
  28.       mx_internal static function registerToUseBusyCursor(param1:Object) : void
  29.       {
  30.          impl.registerToUseBusyCursor(param1);
  31.       }
  32.       
  33.       public static function get currentCursorID() : int
  34.       {
  35.          return impl.currentCursorID;
  36.       }
  37.       
  38.       public static function getInstance() : ICursorManager
  39.       {
  40.          return impl;
  41.       }
  42.       
  43.       public static function removeBusyCursor() : void
  44.       {
  45.          impl.removeBusyCursor();
  46.       }
  47.       
  48.       public static function setCursor(param1:Class, param2:int = 2, param3:Number = 0, param4:Number = 0) : int
  49.       {
  50.          return impl.setCursor(param1,param2,param3,param4);
  51.       }
  52.       
  53.       public static function set currentCursorID(param1:int) : void
  54.       {
  55.          impl.currentCursorID = param1;
  56.       }
  57.       
  58.       mx_internal static function unRegisterToUseBusyCursor(param1:Object) : void
  59.       {
  60.          impl.unRegisterToUseBusyCursor(param1);
  61.       }
  62.       
  63.       private static function get impl() : ICursorManager
  64.       {
  65.          if(!_impl)
  66.          {
  67.             _impl = ICursorManager(Singleton.getInstance("mx.managers::ICursorManager"));
  68.          }
  69.          return _impl;
  70.       }
  71.       
  72.       public static function removeAllCursors() : void
  73.       {
  74.          impl.removeAllCursors();
  75.       }
  76.       
  77.       public static function setBusyCursor() : void
  78.       {
  79.          impl.setBusyCursor();
  80.       }
  81.       
  82.       public static function showCursor() : void
  83.       {
  84.          impl.showCursor();
  85.       }
  86.       
  87.       public static function hideCursor() : void
  88.       {
  89.          impl.hideCursor();
  90.       }
  91.       
  92.       public static function removeCursor(param1:int) : void
  93.       {
  94.          impl.removeCursor(param1);
  95.       }
  96.       
  97.       public static function get currentCursorXOffset() : Number
  98.       {
  99.          return impl.currentCursorXOffset;
  100.       }
  101.       
  102.       public static function get currentCursorYOffset() : Number
  103.       {
  104.          return impl.currentCursorYOffset;
  105.       }
  106.       
  107.       public static function set currentCursorXOffset(param1:Number) : void
  108.       {
  109.          impl.currentCursorXOffset = param1;
  110.       }
  111.    }
  112. }
  113.  
  114.