Not sure if I’m doing this right, or if the interface is already in the framework, but here’s what I garnered from trying to make a cell renderer for the DataGrid:
<code>interface CellRenderer
{
// Returns the preferred height of a cell
function getPreferredHeight(Void):Number;
// Returns the preferred width of a cell
function getPreferredWidth(Void):Number;
// Sets the width and height of a cell
function setSize(width:Number, height:Number):Void;
// Sets the content to be displayed in the cell
function setValue(suggested, item, selected:Boolean):Void;
}</code>
I think if you throw that in an as file, and then #include it, you can then do:
<code>class YourClass implements CellRenderer{}</code>
At any rate, I’m using it that way, and if it breaks, or doesn’t compile, I’ll let you all know.