         
         setCurrentStateNeeded = true;
         
-        addEventListener(ToolTipEvent.TOOL_TIP_SHOW, toolTipShowHandler);           
+        addEventListener(ToolTipEvent.TOOL_TIP_SHOW, 
+						 GridItemRenderer.toolTipShowHandler);           
     }
     
     //--------------------------------------------------------------------------

    public function discard(willBeRecycled:Boolean):void
    {
    }
    
    //--------------------------------------------------------------------------
    //
    //  Event Handlers
    //
    //-------------------------------------------------------------------------- 
    
    // TODO (hmuller) - this code should be common with DefaultGridItemRenderer
    private function toolTipShowHandler(event:ToolTipEvent):void
    {
        var toolTip:IToolTip = event.toolTip;
        
        toolTip.text = column.itemToDataTip(data);  // Lazily compute the tooltip text
        
        // Move the origin of the tooltip to the origin of this item renderer
        
        var sm:ISystemManager = systemManager.topLevelSystemManager;
        var sbRoot:DisplayObject = sm.getSandboxRoot();
        var screen:Rectangle = sm.getVisibleApplicationRect(null, true);
        var pt:Point = new Point(0, 0);
        pt = localToGlobal(pt);
        pt = sbRoot.globalToLocal(pt);          
        
        toolTip.move(pt.x, Math.round(pt.y + (height - toolTip.height) / 2));
        
        var screenRight:Number = screen.x + screen.width;
        pt.x = toolTip.x;
        pt.y = toolTip.y;
        pt = sbRoot.localToGlobal(pt);
        if (pt.x + toolTip.width > screenRight)
            toolTip.move(toolTip.x - (pt.x + toolTip.width - screenRight), toolTip.y);
    }
}
}
import flash.geom.Point;
import flash.geom.Rectangle;

import mx.core.ILayoutDirectionElement;
import mx.core.IToolTip;
import mx.core.IUIComponent;
import mx.core.LayoutDirection;
import mx.core.mx_internal;
import mx.events.FlexEvent;
import mx.events.ToolTipEvent;
import mx.managers.ISystemManager;
import mx.managers.ToolTipManager;

import spark.components.Grid;
import spark.components.Group;
