@namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @font-face { src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); fontFamily: MyVera; embedAsCFF: true; } @font-face { src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); fontFamily: MyVera; fontStyle: italic; embedAsCFF: true; } @font-face { src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); fontFamily: MyVera; fontWeight: bold; embedAsCFF: true; } @font-face { src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); fontFamily: MyVeraHalo; embedAsCFF: false; } @font-face { src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); fontFamily: MyVeraHalo; fontStyle: italic; embedAsCFF: false; } @font-face { src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); fontFamily: MyVeraHalo; fontWeight: bold; embedAsCFF: false; } .parent1 { fontSize: 32; color:#ff0000; } .child1 { fontSize: 12; color:#00ff00; fontStyle:italic; fontWeight:bold; } .child2 { fontSize: 24; color:#E851E3; } .mystyle1 { fontSize: 24; color:#0000ff; } s|DataGrid s|GridColumnHeaderGroup{ fontAntiAliasType: "normal"; fontFamily: MyVera; fontLookup: "embeddedCFF"; } mx|TextInput, mx|ComboBox { fontFamily: MyVeraHalo; fontAntiAliasType: normal; kerning: "off"; } .style1{ borderColor:#00ff00; contentBackgroundColor:#8DE851; alternatingRowColors:#77E851,#F00AE8; } .style2{ alternatingRowColors:#FF0000; } .style3{ direction:"rtl"; locale:"fr-FR"; } .style4{ caretColor:#E01B3C; symbolColor:#2BE01B; rollOverColor:#F58122; selectionColor:#6DD5E3; } .style5{ caretColor:#E09B1B; symbolColor:#000000; rollOverColor:#F224F2; selectionColor:#24E8F2; } global{ fontFamily: MyVera; fontAntiAliasType: normal; kerning: "off"; } IRClassColl.length) n=0; return IRClassColl[n]; } public function refreshUI():void { ArrayCollection(dataGrid.dataProvider).refresh(); } public function checkIR(dataGrid:DataGrid, rowIndex:int, columnIndex:int):String { var ir:GridItemRenderer=GridItemRenderer(dataGrid.grid.getItemRendererAt(rowIndex,columnIndex)); var boundsH:Number=ir.getLayoutBoundsHeight(); var boundsW:Number=ir.getLayoutBoundsWidth(); var h:Number=ir.height; var w:Number=ir.width; trace("boundsH="+boundsH+";boundsW="+boundsW+";direct height="+h+";direct width="+w); var r2:Rectangle=dataGrid.grid.getCellBounds(rowIndex,columnIndex); var h2:Number=r2.height; var w2:Number=r2.width; trace("cellbounds: h="+h2+";w="+w2); var rh:Number=dataGrid.grid.getRowBounds(rowIndex).height; var rh2:Number=dataGrid.rowHeight; var cw:Number=dataGrid.grid.getColumnBounds(columnIndex).width; var g2:GridColumn=GridColumn(dataGrid.columns.getItemAt(columnIndex)); var cw2:Number=GridColumn(dataGrid.columns.getItemAt(columnIndex)).width; var errMsg:String=""; trace("dataGrid.rowHeight="+rh2+";columnBounds.width="+cw); if (h!=h2 || w!=w2) errMsg+="ItemRenderer.boundsHeight/width not expected comparing cell bounds: ("+h+","+w+");("+h2+","+w2+")"+"\n"; if (h!=rh || w!=cw) errMsg+="ItemRenderer.boundsHeight/width not expected, comparing row/columnBounds("+h+","+w+");("+rh+","+cw+")"+"\n"; return errMsg; } ]]> ProductD ProductP ProductF ProductT ProductC ProductD ProductP ProductF ProductT ProductC