     private function buttonBar_keyDownHandler(event:KeyboardEvent):void
     {
 		var currentButton:IFocusManagerComponent;
-		var item:Object;
 		var index:int;
 		var renderer:Object;
 

    /**
     *  @private
     */
    override protected function itemSelected(item:Object, selected:Boolean):void
    {
        var item:Object = dataGroup.getItemRenderer(item);
        
        if (item)
        {
            if ("selected" in item)
                item.selected = selected;
            else
            {
                // TODO: localize below (and other messages)
                throw new Error("The item needs to support the \"selected\" property " + 
                        "for selection to work.  An easy way to accomplish this is by wrapping " + 
                        "your component in a DefaultComplexItemRenderer");
            }
        }
    }
        
    /**
     *  Returns true if the item is selected.
     */
    public function isItemSelected(item:Object):Boolean
    {
        return item == selectedItem;
    }
        
    /**

import flash.ui.Keyboard;

import mx.components.baseClasses.FxListBase;
import mx.core.IFactory;
import mx.events.ItemExistenceChangedEvent;
import mx.managers.IFocusManagerComponent;

[IconFile("FxButtonBar.png")]
