home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2012 April / ME_04_2012.iso / Video-Tutorial / iPhoto / media / player.swf / scripts / mx / styles / StyleProxy.as < prev   
Encoding:
Text File  |  2011-11-11  |  4.4 KB  |  166 lines

  1. package mx.styles
  2. {
  3.    import mx.core.mx_internal;
  4.    
  5.    use namespace mx_internal;
  6.    
  7.    public class StyleProxy implements IAdvancedStyleClient
  8.    {
  9.       mx_internal static const VERSION:String = "4.5.0.20967";
  10.       
  11.       private var _filterMap:Object;
  12.       
  13.       private var _source:IStyleClient;
  14.       
  15.       private var _advancedSource:IAdvancedStyleClient;
  16.       
  17.       public function StyleProxy(param1:IStyleClient, param2:Object)
  18.       {
  19.          super();
  20.          this.filterMap = param2;
  21.          this.source = param1;
  22.       }
  23.       
  24.       public function get filterMap() : Object
  25.       {
  26.          return this._filterMap;
  27.       }
  28.       
  29.       public function set filterMap(param1:Object) : void
  30.       {
  31.          this._filterMap = param1;
  32.       }
  33.       
  34.       public function get source() : IStyleClient
  35.       {
  36.          return this._source;
  37.       }
  38.       
  39.       public function set source(param1:IStyleClient) : void
  40.       {
  41.          this._source = param1;
  42.          this._advancedSource = param1 as IAdvancedStyleClient;
  43.       }
  44.       
  45.       public function get className() : String
  46.       {
  47.          return this._source.className;
  48.       }
  49.       
  50.       public function get inheritingStyles() : Object
  51.       {
  52.          return this._source.inheritingStyles;
  53.       }
  54.       
  55.       public function set inheritingStyles(param1:Object) : void
  56.       {
  57.       }
  58.       
  59.       public function get nonInheritingStyles() : Object
  60.       {
  61.          return null;
  62.       }
  63.       
  64.       public function set nonInheritingStyles(param1:Object) : void
  65.       {
  66.       }
  67.       
  68.       public function get styleDeclaration() : CSSStyleDeclaration
  69.       {
  70.          return this._source.styleDeclaration;
  71.       }
  72.       
  73.       public function set styleDeclaration(param1:CSSStyleDeclaration) : void
  74.       {
  75.          this._source.styleDeclaration = this.styleDeclaration;
  76.       }
  77.       
  78.       public function get styleName() : Object
  79.       {
  80.          if(this._source.styleName is IStyleClient)
  81.          {
  82.             return new StyleProxy(IStyleClient(this._source.styleName),this.filterMap);
  83.          }
  84.          return this._source.styleName;
  85.       }
  86.       
  87.       public function set styleName(param1:Object) : void
  88.       {
  89.          this._source.styleName = param1;
  90.       }
  91.       
  92.       public function get id() : String
  93.       {
  94.          return !!this._advancedSource ? this._advancedSource.id : null;
  95.       }
  96.       
  97.       public function get styleParent() : IAdvancedStyleClient
  98.       {
  99.          return !!this._advancedSource ? this._advancedSource.styleParent : null;
  100.       }
  101.       
  102.       public function set styleParent(param1:IAdvancedStyleClient) : void
  103.       {
  104.       }
  105.       
  106.       public function styleChanged(param1:String) : void
  107.       {
  108.          return this._source.styleChanged(param1);
  109.       }
  110.       
  111.       public function getStyle(param1:String) : *
  112.       {
  113.          return this._source.getStyle(param1);
  114.       }
  115.       
  116.       public function setStyle(param1:String, param2:*) : void
  117.       {
  118.          this._source.setStyle(param1,param2);
  119.       }
  120.       
  121.       public function clearStyle(param1:String) : void
  122.       {
  123.          this._source.clearStyle(param1);
  124.       }
  125.       
  126.       public function getClassStyleDeclarations() : Array
  127.       {
  128.          return this._source.getClassStyleDeclarations();
  129.       }
  130.       
  131.       public function notifyStyleChangeInChildren(param1:String, param2:Boolean) : void
  132.       {
  133.          return this._source.notifyStyleChangeInChildren(param1,param2);
  134.       }
  135.       
  136.       public function regenerateStyleCache(param1:Boolean) : void
  137.       {
  138.          this._source.regenerateStyleCache(param1);
  139.       }
  140.       
  141.       public function registerEffects(param1:Array) : void
  142.       {
  143.          return this._source.registerEffects(param1);
  144.       }
  145.       
  146.       public function stylesInitialized() : void
  147.       {
  148.          if(this._advancedSource)
  149.          {
  150.             this._advancedSource.stylesInitialized();
  151.          }
  152.       }
  153.       
  154.       public function matchesCSSState(param1:String) : Boolean
  155.       {
  156.          return !!this._advancedSource ? this._advancedSource.matchesCSSState(param1) : false;
  157.       }
  158.       
  159.       public function matchesCSSType(param1:String) : Boolean
  160.       {
  161.          return !!this._advancedSource ? this._advancedSource.matchesCSSType(param1) : false;
  162.       }
  163.    }
  164. }
  165.  
  166.