         var index:int = event.index;
         
         if (renderer)
-		{
+        {
             renderer.addEventListener("click", item_clickHandler);
-			if (renderer is IFocusManagerComponent)
-				IFocusManagerComponent(renderer).focusEnabled = false;
-			if (renderer is IVisualElement)
-				IVisualElement(renderer).owner = this; 
-			if (renderer is IItemRenderer)
-				IItemRenderer(renderer).allowDeselection = !requiresSelection;
-		}
+            if (renderer is IFocusManagerComponent)
+                IFocusManagerComponent(renderer).focusEnabled = false;
+            if (renderer is IVisualElement)
+                IVisualElement(renderer).owner = this; 
+            if (renderer is IItemRenderer)
+                IItemRenderer(renderer).allowDeselection = !requiresSelection;
+        }
             
         if (isItemIndexSelected(index))
             itemSelected(index, true);

     */
    private function buttonBar_keyUpHandler(event:KeyboardEvent):void
    {
		var currentRenderer:IItemRenderer;
		var renderer:IItemRenderer;

		if (event.eventPhase == EventPhase.BUBBLING_PHASE)
			return;

		if (!enabled)
			return;

        switch (event.keyCode)
        {
            case Keyboard.SPACE:
            {
				currentRenderer = dataGroup.getElementAt(focusedIndex) as IItemRenderer;
				if (!currentRenderer || (currentRenderer.selected && requiresSelection))
					return;
				currentRenderer.dispatchEvent(event);
                break;
            }            
        }
	}

    /**
     *  @private
     */
    private function drawButtonFocus(index:int, focused:Boolean):void
    {
		var n:int = dataProvider.length;
        if (n > 0 && index < n)
        {
			var renderer:IItemRenderer = 
				dataGroup.getElementAt(index) as IItemRenderer;
			if (renderer)
				renderer.showFocusIndicator = focused;
        }
    }
}

    //
    //--------------------------------------------------------------------------

    private var requiresSelectionChanging:Boolean;
    
    //----------------------------------
    //  requiresSelection
    //---------------------------------- 
    
    /**
     *  @private
     */
    override public function set requiresSelection(value:Boolean):void
    {
        super.requiresSelection = value;
        requiresSelectionChanging = true;
    }

    //----------------------------------
    //  dataProvider
    //----------------------------------
     
