<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   behaviors.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"?>



<library xmlns="http://www.aol.com/boxely/resource.xsd"
         persists="true">

    <behavior>


        <reaction event="mouseOver" action="toolkit:Point"/>

        <reaction event="mouseDown" action="toolkit:Focus"/>

        <reaction event="keyPress" keyCode="TAB" shift="false" action="toolkit:FocusNext"/>
        <reaction event="keyPress" keyCode="TAB" shift="true" action="toolkit:FocusPrevious"/>

        <reaction event="mouseDown" action="toolkit:Press"/>
        <reaction event="mouseUp" action="toolkit:Release"/>

        <reaction event="keyDown" keyCode="SPACE" action="toolkit:Press"/>
        <reaction event="keyUp" keyCode="SPACE" action="toolkit:Release"/>

        <reaction event="command" message="expand" action="toolkit:ToggleInflated"/>

        <reaction event="mouseDown" button="1" action="toolkit:OpenPopup"/>
        <reaction event="click" button="2" action="toolkit:OpenContext"/>
        <reaction event="pointHold" action="toolkit:OpenTooltip"/>
    </behavior>


    <behavior id="selectable">
        <reaction event="keyPress" keyCode="UP"     ctrl="false" alt="false" shift="false" action="toolkit:SelectUp"/>
        <reaction event="keyPress" keyCode="DOWN"   ctrl="false" alt="false" shift="false" action="toolkit:SelectDown"/>
        <reaction event="keyPress" keyCode="UP"     ctrl="false" alt="false" shift="true" action="toolkit:SelectUpExtend"/>
        <reaction event="keyPress" keyCode="DOWN"   ctrl="false" alt="false" shift="true" action="toolkit:SelectDownExtend"/>

        <reaction event="keyPress" keyCode="HOME"    ctrl="false" alt="false" shift="false" action="toolkit:SelectHome"/>
        <reaction event="keyPress" keyCode="END"     ctrl="false" alt="false" shift="false" action="toolkit:SelectEnd"/>

    </behavior>


    <behavior id="listBox" inherits="#selectable">
        <reaction event="keyPress" keyCode="LEFT" action="toolkit:ContractRow"/>
        <reaction event="keyPress" keyCode="RIGHT" action="toolkit:ExpandRow"/>

        <reaction event="mouseWheel" detail="1" action="toolkit:MouseWheelScrollUp"/>
        <reaction event="mouseWheel" detail="-1" action="toolkit:MouseWheelScrollDown"/>

        <reaction event="keyPress" keyCode="HOME"    ctrl="false" alt="false" shift="true" action="toolkit:SelectHomeExtend"/>
        <reaction event="keyPress" keyCode="END"     ctrl="false" alt="false" shift="true" action="toolkit:SelectEndExtend"/>

        <reaction event="keyPress" keyCode="PAGEUP"    ctrl="false" alt="false" shift="false" action="toolkit:SelectPageUp"/>
        <reaction event="keyPress" keyCode="PAGEDOWN"  ctrl="false" alt="false" shift="false" action="toolkit:SelectPageDown"/>
        <reaction event="keyPress" keyCode="PAGEUP"    ctrl="false" alt="false" shift="true" action="toolkit:SelectPageUpExtend"/>
        <reaction event="keyPress" keyCode="PAGEDOWN"  ctrl="false" alt="false" shift="true" action="toolkit:SelectPageDownExtend"/>

        <reaction event="keyPress" keyCode="UP"     ctrl="true" alt="false" shift="false" action="toolkit:CursorUp"/>
        <reaction event="keyPress" keyCode="DOWN"   ctrl="true" alt="false" shift="false" action="toolkit:CursorDown"/>
        <reaction event="keyPress" keyCode="PAGEUP"    ctrl="true" alt="false" shift="false" action="toolkit:CursorPageUp"/>
        <reaction event="keyPress" keyCode="PAGEDOWN"  ctrl="true" alt="false" shift="false" action="toolkit:CursorPageDown"/>
        <reaction event="keyPress" keyCode="SPACE"  ctrl="false" alt="false" shift="false" action="toolkit:CursorSelect"/>
        <reaction event="keyPress" keyCode="SPACE"  ctrl="true" alt="false" shift="false" action="toolkit:ToggleSelect"/>
        
        <reaction event="keyPress" keyCode="A" ctrl="true" alt="false" shift="false" action="toolkit:SelectAll"/>
        
    </behavior>


    <behavior id="commandable">
        <reaction event="click" button="1" action="toolkit:Command"/>
        <reaction event="keyUp" keyCode="SPACE" action="toolkit:Command"/>
    </behavior>



    <behavior id="commandableGroupRow">
        <reaction event="doubleClick" button="1" action="toolkit:Command"/>
    </behavior>



    <behavior id="checkbutton" inherits="#commandable">
        <reaction event="doubleClick" button="1" action="toolkit:Command"/>
    </behavior>


    <behavior id="radioBox">
        <reaction event="keyPress" keyCode="UP" action="toolkit:SelectUp"/>
        <reaction event="keyPress" keyCode="DOWN" action="toolkit:SelectDown"/>
        <reaction event="keyPress" keyCode="LEFT" action="toolkit:SelectUp"/>
        <reaction event="keyPress" keyCode="RIGHT" action="toolkit:SelectDown"/>
    </behavior>



    <behavior id="tabBox">
        <reaction event="keyPress" keyCode="TAB" ctrl="true" shift="false" action="gadget:onNextTab();"/>
        <reaction event="keyPress" keyCode="TAB" shift="true" ctrl="true" action="gadget:onPrevTab();"/>
        <reaction event="keyPress" keyCode="PAGEDOWN" ctrl="true" shift="false" action="gadget:onNextTab();"/>
        <reaction event="keyPress" keyCode="PAGEUP" ctrl="true" shift="false" action="gadget:onPrevTab();"/>
    </behavior>



    <behavior id="tabs">
        <reaction event="keyPress" keyCode="LEFT" action="toolkit:SelectUp"/>
        <reaction event="keyPress" keyCode="RIGHT" action="toolkit:SelectDown"/>
        <reaction event="keyDown" keyCode="HOME" action="toolkit:SelectHome"/>
        <reaction event="keyDown" keyCode="END" action="toolkit:SelectEnd"/>
    </behavior>



    <behavior id="slider">
        <reaction event="keyPress" keyCode="UP" action="toolkit:NudgeUp"/>
        <reaction event="keyPress" keyCode="DOWN" action="toolkit:NudgeDown"/>
        <reaction event="keyPress" keyCode="LEFT" action="toolkit:NudgeUp"/>
        <reaction event="keyPress" keyCode="RIGHT" action="toolkit:NudgeDown"/>
        <reaction event="keyPress" keyCode="HOME" action="toolkit:SetMin"/>
        <reaction event="keyPress" keyCode="END" action="toolkit:SetMax"/>
        <reaction event="keyPress" keyCode="PAGEUP" action="toolkit:NudgePageUp"/>
        <reaction event="keyPress" keyCode="PAGEDOWN" action="toolkit:NudgePageDown"/>
        <reaction event="mouseWheel" detail="1" action="toolkit:NudgePageUp"/>
        <reaction event="mouseWheel" detail="-1" action="toolkit:NudgePageDown"/>
    </behavior>


    <behavior id="input">
        <reaction event="invalidInput" action="toolkit:InvalidInput"/>
    </behavior>


    <behavior id="dialog">
        <reaction event="keyPress" keyCode="ENTER" action="toolkit:AcceptDialog"/>
        <reaction event="keyPress" keyCode="ESCAPE" action="toolkit:CancelDialog"/>
    </behavior>



    <behavior id="menuBar">
    </behavior>


    <behavior id="menu">

        <reaction event="mouseOut" action="toolkit:MouseOutMenuItem"/>
    </behavior>

    <behavior id="menuPopup">
    </behavior>


    <behavior id="menuitem">
        <reaction event="mouseUp" button="1" action="toolkit:PopupCommand"/>

        <reaction event="mouseOut" action="toolkit:MouseOutMenuItem"/>
    </behavior>


</library>
