﻿<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   bblGrid.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) 2004-2005 America Online, Inc.  All rights reserved.
      This software contains valuable confidential and proprietary
      information of America Online, Inc. 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 M E R I C A   O N L I N E   C O N F I D E N T I A L

****************************************************************************
-->

<!DOCTYPE window SYSTEM "box://plaxoApp/resources/plaxoStrings.dtd">

<?import href="box://boxelyToolkit/theme/toolkit.box"?>
<?import href="box://plaxoApp/content/plaxoToolkit.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"> 

		
		<!-- BBL Cells -->
		<style tag="bblCell" inherits="#baseText" s:flex="1" s:maxWidth="auto" s:vAlign="center" />

	    <gadget id="bblCell" type="control" >
			<attributes focusMode="ignore" autoTooltip="aolCell" accRole="staticText" tooltipAlign="overlap" blockEvents="false" />
			<parts>
				<box:text id="sn" s:flex="1" inherits="value=value" s:crop="right" s:maxWidth="auto"/>
			</parts>
		</gadget>


		<style tag="bblCheckCell" inherits="#baseText" s:flex="1" s:maxWidth="auto" />

	    <gadget id="bblCheckCell" type="control" language="jscript" script="box://plaxoApp/content/gadget/bblCheckCell.js">
			<attributes focusMode="ignore" autoTooltip="aolCell" accRole="staticText" tooltipAlign="overlap" blockEvents="false" cellToggled="false" />
			<parts>
				<box:aolCheckButton focusMode="ignore" s:marginTop="-2" id="chkLabel" s:flex="1" inherits="label=value" s:crop="right" s:maxWidth="auto" >
					<box:binding elementSource="_gadget" targetProperty="toggled" path="cellToggled" method="twoWay"/>
				</box:aolCheckButton>
			</parts>
			<behavior>
				<reaction event="attributeSet" attributeName="cellToggled" action="gadget:cellToggled();"/>
			</behavior>
		</gadget>	

		<style tag="bblComboCell" inherits="#baseText" padding="3 4 2 2" s:flex="1" s:maxWidth="auto" s:vAlign="center" />

	    <gadget id="bblComboCell" type="control">
			<attributes focusMode="ignore" autoTooltip="aolCell" accRole="staticText" tooltipAlign="overlap" blockEvents="false" />
			<parts>
				<box:plaxoComboBox focusMode="ignore" id="combo" s:flex="1" inherits="label=value" s:crop="right" s:maxWidth="auto" disableUpdateLabel="true" collapsed="true"/>
			</parts>
		</gadget>

		<style tag="plaxoListItem" id="plaxoListItem" fill="#00E9EDFA">
			<attribute name="hoverRowStroke" value="true" stroke="#9CC7E9"/>
			<state name="hovered" fill="#ffE9EDFA" />
			<state name="selected" fill="#FFDB6B"/>
			<state name="focused" stroke="#2191E9" strokeWidth="1" strokeLayer="above" strokePattern="dotted"/>
		</style>

		<gadget id="plaxoListItem" type="control" > 
			<attributes focusMode="defer" selectableMode="item" engaged="true" blockEvents="false" accRole="listItem"/>
		</gadget>




		<!-- BBL Grid --> 
		<style id="bblGrid" s:padding="2" s:overflow="scroll" s:flex="1" />		

		<gadget id="bblGrid" language="jscript" script="box://plaxoApp/content/gadget/bblGrid.js">
			<parts>
			    <!-- tabBox, aolTabPanels, hbox added to work around boxely bug where list view won't scroll -->
			    <box:tabBox s:flex="1" s:maxWidth="auto" s:maxHeigh="auto">
			    <box:aolTabPanels s:flex="1" s:maxWidth="auto" s:maxHeigh="auto">
			    <box:hbox style="hbox2" s:flex="1">

				<box:aolListBox s:flex="1" id="innerListBox" style="bblGrid" >
					<box:columns header="true" s:maxWidth="auto" style="plaxoColumn2Back">
						<box:plaxoColumn2 s:flex="1" name="&plaxoStrings.bblgrid.name;" s:fill="none" imgCollapsed="true" />
						<box:plaxoColumn2 s:flex="1" name="&plaxoStrings.bblgrid.sn;" s:fill="none" imgCollapsed="true" />
						<!--box:plaxoColumn2 s:flex="1" name="&plaxoStrings.bblgrid.group;" s:fill="none" imgCollapsed="true" /-->
					</box:columns>

					<!-- List will be loaded automatically -->
					<box:rows id="bblRows" >

					</box:rows>
				</box:aolListBox>
			    </box:hbox>
			    </box:aolTabPanels>
			    </box:tabBox>

			</parts>
			<behavior>
				<reaction event="initialized" action="gadget:onConstructed();"/>
				<reaction event="mouseOver" action="gadget:OnHover(true);"/>
				<reaction event="mouseOut" action="gadget:OnHover(false);"/>
				<reaction event="click" action="gadget:OnClick();"/>
				<reaction event="focus" action="gadget:OnFocus();"/>
				<reaction event="command" action="gadget:OnCommand();"/>
				<reaction event="keyPress" keyCode="UP"   ctrl="false" alt="false" action="gadget:onSelectionChange();"/>
				<reaction event="keyPress" keyCode="DOWN" ctrl="false" alt="false" action="gadget:onSelectionChange();"/>
				<reaction event="keyPress" keyCode="HOME" ctrl="false" alt="false" action="gadget:onSelectionChange();"/>
				<reaction event="keyPress" keyCode="END"  ctrl="false" alt="false" action="gadget:onSelectionChange();"/>
				<reaction event="keyPress" keyCode="LEFT" action="gadget:onSelectionChange();"/>
				<reaction event="keyPress" keyCode="PAGEUP"    ctrl="false" alt="false" action="gadget:onSelectionChange();"/>
				<reaction event="keyPress" keyCode="PAGEDOWN"  ctrl="false" alt="false" action="gadget:onSelectionChange();"/>
				<reaction event="keyPress" keyCode="SPACE"   ctrl="false" alt="false" action="gadget:onSelectionToggle();"/>
				<reaction event="keyPress" keyCode="ENTER"   ctrl="false" alt="false" action="gadget:onSelectionDefault();"/>
			</behavior>
		</gadget>

</library>
