﻿<?xml version="1.0" encoding="UTF-8"?>
<!--
****************************************************************************

     File Name:   permGrid.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"> 

		
		<style tag="permImgCell" s:padding="1">
			<attribute name="perm" value="off" />
			<attribute name="permhover" value="off" />
		</style>
		
		<gadget id="permImgCell" type="control" language="jscript" script="box://plaxoApp/content/gadget/permImgCell.js">
			<attributes accRole="staticText" />
			<parts>
				<box:image id="icon" inherits="src=icon" s:padding="2 0 0 3" />
			</parts>
			<behavior inherits="box://boxelyToolkit/content/behaviors.box#commandable">
				<reaction event="mouseOver" action="gadget:onMouseOver();" />
				<reaction event="mouseOut" action="gadget:onMouseOut();" />
				<reaction event="command" action="gadget:onCommand();" />
				<reaction event="keyPress" action="gadget:onKeyPressed();" />
			</behavior>
		</gadget>

		
		<!-- Perm Row -->
		<style tag="permRow" style="rowContainer" s:stroke="#ECECEC" s:strokeWidth="1" s:clip="1 1 0 1" s:maxWidth="auto"/>

		<gadget id="permRow" inherits="#plaxoListItem">
			<parts>
				<box:aolLabel id="contact" inherits="value=contact" s:flex="1" s:maxWidth="auto" s:crop="right" s:padding="4 2 2 2" />
				<box:permImgCell focusMode="ignore" id="work" icon="#plaxobmp.smallcase_back" accReadText="true" />
				<box:permImgCell focusMode="ignore" id="home" icon="#plaxobmp.smallhouse_back" accReadText="true" />
			</parts>
		</gadget>

		<style tag="permInfoRow" style="rowContainer" s:stroke="#ECECEC" s:strokeWidth="1" s:clip="1 1 0 1" />

		<gadget id="permInfoRow" inherits="#plaxoListItem">
			<parts>
				<box:aolLabel id="contact" inherits="value=contact" s:flex="1" s:minWidth="200" s:width="200" s:padding="4 2 2 2" />
			</parts>
		</gadget>


		<!-- Perm Grid --> 
		<style id="permGrid" s:stroke="#7F9DB9" s:strokeWidth="1" s:padding="2" s:overflow="scroll" s:flex="1" />		

		<gadget id="permGrid" language="jscript" script="box://plaxoApp/content/gadget/permGrid.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 id="innerListBox" style="permGrid" >
					<box:columns header="true" s:maxWidth="auto" style="plaxoColumnBack" s:flex="1"> 
						<box:plaxoColumn name="&plaxoStrings.permgrid.label;" imgCollapsed="true" s:flex="1" s:maxWidth="auto" />
						<box:plaxoColumn s:minWidth="22" s:width="22" img="#plaxobmp.smallcase" imgCollapsed="false" lblCollapsed="true" />
						<box:plaxoColumn s:minWidth="22" s:width="22" img="#plaxobmp.smallhouse"  imgCollapsed="false" lblCollapsed="true" />
					</box:columns>

					<!-- List will be loaded automatically -->
					<box:rows id="permRows" >
						<box:permRow id="row" contact="&plaxoStrings.permgrid.loading;" />
					</box:rows>
				</box:aolListBox>
			    </box:hbox>
			    </box:aolTabPanels>
			    </box:tabBox>
			</parts>
			<behavior>
				<reaction event="initialized" action="gadget:onConstructed();"/>
			</behavior>
		</gadget>

</library>