[HostComponent("spark.components.DataGrid")] 0)) { dataGrid.styleManager.getColorNames(colors); // lazily replace color names with ints rowBackgroundFillColor.color = colors[rowIndex % colors.length]; } else { // This should be the same as bgFill.color. rowBackgroundFillColor.color = 0xFFFFFF; } } ]]> static private const exclusions:Array = ["scroller", "background"]; static private const contentFill:Array = ["bgFill"]; /** * @private */ override public function get colorizeExclusions():Array {return exclusions;} /** * @private */ override public function get contentItems():Array {return contentFill}; /** * @private */ override protected function initializationComplete():void { useChromeColor = true; super.initializationComplete(); } /** * @private */ override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { if (getStyle("borderVisible") == true) { border.visible = true; background.left = background.top = background.right = background.bottom = 1; scroller.minViewportInset = 1; } else { border.visible = false; background.left = background.top = background.right = background.bottom = 0; scroller.minViewportInset = 0; } borderStroke.color = getStyle("borderColor"); borderStroke.alpha = getStyle("borderAlpha"); super.updateDisplayList(unscaledWidth, unscaledHeight); }