<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   imSmartInput.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

****************************************************************************
-->



<?import href="box://aimToolkit/content/gadgets.box"?>
<?import href="box://aimToolkit/theme/toolkit.box"?>
<?import href="box://imApp/content/imSmartInputStyles.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"> 


    <gadget id="imSmartInput" type="box" language="jscript" script="box://imApp/content/imSmartInput.js">
    <script language="jscript" href="box://imApp/content/screenNameParsing.js"/>

        <attributes emptyFieldText="" screenName="" smartboxSeparator="" searchColumns="35|4|3|42" formatStrings="^1^&lt;~1~&gt;|^2^ ^3^&lt;~1~&gt;|^3^; ^2^&lt;~1~&gt;|^4^ -&lt;~1~&gt;" 
            customButtonLabel="" hideCustomButton="true"
            requiredColumn="1" focusMode="defer" expandable="false" hscrollable="true"/>
        <parts>
        
            <box:aolSmartInput id="inputBox"
                inherits="accName,accNameAt,accUseLabel,expandable,expandedHeight,smartBoxId,filter,hscrollable,$fontSize,$margin=forceMargin,$padding=forceMargin" 
                on:modified="gadget:editToAttribute();">
                <box:binding elementSource="_gadget" targetProperty="customButtonLabel" path="customButtonLabel" method="oneWay"/>
                <box:binding elementSource="_gadget" targetProperty="hideCustomButton" path="hideCustomButton" method="oneWay"/>
                <box:binding elementSource="_gadget" targetProperty="disabled" path="disabled" method="oneWay"/>
                <box:binding elementSource="_gadget" targetProperty="smartboxSeparator" path="smartboxSeparator" method="oneWay"/>
                <box:binding elementSource="_gadget" targetProperty="autoSeparator" path="autoSeparator" method="oneWay"/>
                <box:binding elementSource="_gadget" targetProperty="hintText" path="hintText" method="oneWay"/>
            </box:aolSmartInput>
        </parts>
        <behavior>
            <reaction event="presented"    action="gadget:initSmartInput();" />
            <reaction event="sceneChanged" action="gadget:initSmartInput();" />
            <reaction event="blur" action="gadget:onFocusLost();" />
            <reaction event="attributeSet" attributeName="text" action="gadget:attributeToEdit();"/>
            <reaction event="keyPress" keyCode="DELETE" action="gadget:stopPropagation();" />
        </behavior>
    </gadget>
</library>