<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   tabGadgets.box

****************************************************************************
   C O P Y R I G H T   A N D   C O N F I D E N T I A L I T Y   N O T I C E
****************************************************************************

//      Copyright (c) 2006 AOL LLC.  All rights reserved.
//      This software contains valuable confidential and proprietary
//      information of AOL LLC. and is subject to applicable
//      licensing agreements.  Unauthorized reproduction, transmission or
//      distribution of this file and its contents is a violation of
//      applicable laws.
//
//            A O L   C O N F I D E N T I A L

****************************************************************************
-->


<?boxely version="1.0"?>

<!DOCTYPE window SYSTEM "box://aimToolkit/resources/localization.dtd">



<?import href="box://aimToolkit/content/core/coreGadgets.box"?>

<library xmlns="http://www.aol.com/boxely/resource.xsd"
         xmlns:box="http://www.aol.com/boxely/box.xsd"
         xmlns:s="http://www.aol.com/boxely/style.xsd"
         xmlns:on="http://www.aol.com/boxely/reaction.xsd"
         persists="true">
         

    <gadget id="tabBox" type="box" language="jscript" code="box://aimToolkit/content/tabPack/tabBox.js">
        <attributes focusMode="defer"/>
        <behavior inherits="box://aimToolkit/content/behaviors.box#tabBox"/>
    </gadget>


    <gadget id="aolTabs" type="select" language="jscript" code="box://aimToolkit/content/tabPack/aolTabs.js">
        <attributes id="tabs" cursorMode="wrap" focusMode="normal" axis="x" accRole="pageTabList"/>
        <behavior inherits="box://aimToolkit/content/behaviors.box#tabs">
            <reaction event="initialized" action="gadget:onConstructed();"/>
        </behavior>
    </gadget>


    <gadget id="aolTabPanels" type="deck" language="jscript" code="box://aimToolkit/content/tabPack/aolTabPanels.js">
        <attributes selectableMode="block"/>
        <behavior>
            <reaction event="initialized" action="gadget:onConstructed();"/>
        </behavior>
    </gadget>


    <gadget id="aolTab" type="control" inherits="#aolButton">
        <attributes selectableMode="item" focusMode="defer" accRole="pageTab"/>
    </gadget>


    <gadget id="aolVerticalTab" type="control" inherits="#aolButton">
        <attributes selectableMode="item" focusMode="defer" accRole="pageTab"/>
    </gadget>



    <gadget id="aolTabScroller" language="jscript"  code="box://aimToolkit/content/tabPack/aolTabScroller.js">
        <attributes axis="y" chevronUp="#chevron.up" chevronDown="#chevron.down" chevronLeft="#chevron.left" chevronRight="#chevron.right"
                    enableMouseScrolling="true" alwaysDisplayPageButtons="false" prevTooltip="" nextTooltip="" accRole="ignore"/>
        <parts>
            <box:binding elementSource="gadget:contentArea" path="overflowed" targetProperty="contentChildOverflowed" method="twoWay"/>

            <box:box id="mainContainer" inherits="axis" accRole="ignore">
                <box:aolButton id="upButton" hideLabel="true" on:command="gadget:onPageUp();" inherits="tooltip=prevTooltip" accRole="ignore"/>
                <box:box id="contentArea" inherits="axis" on:mouseMove="gadget:mouseOver();" accRole="ignore">
                    <box:box id="contentBox" inherits="axis" accRole="ignore">
                        <box:content/>
                    </box:box>
                    <box:reaction event="attributeSet" attributeName="overflowed" action="gadget:onOverflowUpdate();"/>
                </box:box>
                <box:aolButton id="downButton" hideLabel="true" on:command="gadget:onPageDown();" inherits="tooltip=nextTooltip" accRole="ignore"/>
            </box:box>
        </parts>
        <behavior>
            <reaction event="layout" action="gadget:onLayout();"/>
            <reaction event="boxCreated" action="gadget:boxCreated();"/>
            <reaction event="boxDestroyed" action="gadget:boxDestroyed();"/>
            <reaction event="attributeSet" attributeName="axis" action="gadget:setAxis();"/>
            <reaction event="attributeSet" attributeName="alwaysDisplayPageButtons" action="gadget:updateOverflow();"/>
        </behavior>
    </gadget>
</library>