<?xml version="1.0" encoding="utf-8"?>
<!--
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - JaDOrT: JASMINe Deployment Orchestration Tool
  - Copyright (C) 2008-2009 Bull S.A.S.
  - Copyright (C) 2008-2009 France Telecom R&D
  - Contact: jasmine@ow2.org
  -
  - This library is free software; you can redistribute it and/or
  - modify it under the terms of the GNU Lesser General Public
  - License as published by the Free Software Foundation; either
  - version 2.1 of the License, or any later version.
  -
  - This library is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  - Lesser General Public License for more details.
  -
  - You should have received a copy of the GNU Lesser General Public
  - License along with this library; if not, write to the Free Software
  - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  - USA
  -
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - $Id: Finished.mxml 3500 2009-04-22 13:57:09Z alitokmen $
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
           horizontalScrollPolicy="off"
           width="100%"
           height="100%">

    <mx:Script>
    <![CDATA[
        import org.ow2.jasmine.jadort.client.flex.model.*;
        import com.adobe.cairngorm.control.CairngormEventDispatcher;

        [Bindable]
        public var model : JadortModelLocator = JadortModelLocator.getInstance();
    ]]>
    </mx:Script>

    <mx:DataGrid width="100%" id="serversCanvas" rowCount="{model.serverProgressList.length}" dataProvider="{model.serverProgressList}" textAlign="center" x="0" y="10">
        <mx:columns>
            <mx:DataGridColumn dataField="name" headerText="Server Name" width="100" />
            <mx:DataGridColumn dataField="state" headerText="Status" width="70" />
            <mx:DataGridColumn width="110" dataField="progress" itemRenderer="org.ow2.jasmine.jadort.client.flex.view.ServerWorkerProgressbarItemRenderer" headerText="Progress" />
            <mx:DataGridColumn dataField="state" itemRenderer="org.ow2.jasmine.jadort.client.flex.view.ServerErrorItemRenderer" headerText="Action" editable="true" />
        </mx:columns>
    </mx:DataGrid>
    <mx:DataGrid width="100%" rowCount="{model.workerProgressList.length}" visible="{model.workerProgressList.length>0}" dataProvider="{model.workerProgressList}" textAlign="center" x="0" y="{serversCanvas.y + serversCanvas.height + 20}">
        <mx:columns>
            <mx:DataGridColumn dataField="name" headerText="Worker Name" width="100" />
            <mx:DataGridColumn dataField="state" headerText="Status" width="70" />
            <mx:DataGridColumn width="110" dataField="progress" itemRenderer="org.ow2.jasmine.jadort.client.flex.view.ServerWorkerProgressbarItemRenderer" headerText="Progress" />
            <mx:DataGridColumn dataField="state" itemRenderer="org.ow2.jasmine.jadort.client.flex.view.WorkerErrorItemRenderer" headerText="Action" editable="true" />
        </mx:columns>
    </mx:DataGrid>
</mx:Canvas>
