  *
  *  @includeExample examples/FxButtonBarExample.mxml
  */
-public class FxButtonBar extends FxListBase
+public class FxButtonBar extends FxListBase implements IFocusManagerComponent
 {
     include "../core/Version.as";
 

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

        switch (event.keyCode)
        {
            case Keyboard.UP:
            case Keyboard.LEFT:
            {
				focusManager.showFocusIndicator = true;
				currentButton = focusManager.getFocus();
		        index = dataGroup.getItemIndexForRenderer(
		                  currentButton as IVisualElement);
				if (index > 0)
				{
					renderer = dataGroup.getRendererForItemAt(index-1);
					IFocusManagerComponent(renderer).setFocus();
				}

                break;

	 *  Attempt to lift the focused button above the others
	 *  so that the focus ring can show.
     */
    private function adjustLayering(focusedIndex:int):void
    {
		var n:int = dataProvider.length;
		for (var i:int = 0; i < n; i++)
		{
			var renderer:IVisualElement = IVisualElement(dataGroup.getRendererForItemAt(i));
			if (i == focusedIndex)
				renderer.layer = 1;
			else
				renderer.layer = 0;
		}
	}

