package com.ssdi.test.client;


/* 
 * Smart GWT (GWT for SmartClient) 
 * Copyright 2008 and beyond, Isomorphic Software, Inc. 
 * 
 * Smart GWT is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU Lesser General Public License version 3 
 * as published by the Free Software Foundation.  Smart GWT is also 
 * available under typical commercial license terms - see 
 * http://smartclient.com/license 
 * 
 * This software 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. 
 */  
  
 
import com.smartgwt.client.data.Record;
import com.smartgwt.client.data.RecordList;
import com.smartgwt.client.widgets.grid.ListGrid;  
import com.smartgwt.client.widgets.grid.ListGridField;  


  
import com.smartgwt.client.widgets.layout.VLayout;
import com.google.gwt.core.client.EntryPoint;  
  
public class TestsmartGwtProject implements EntryPoint {  
  
     
	public void onModuleLoad() {
		 final VLayout layout = new VLayout();

		layout.setWidth("60%");
		layout.setHeight("30%");
		ListGrid listGrid = new ListGrid();
		listGrid.setShowAllRecords(true);
		
		ListGridField groupPathField = new ListGridField("GroupPath",
				"GroupPath");
		groupPathField.setHoverWrap(false);
		groupPathField.setShowHover(true);
		
		ListGridField groupPathField1 = new ListGridField("GroupPath1",
				"GroupPath");
		groupPathField1.setHoverWrap(false);
		groupPathField1.setShowHover(true);
		
		ListGridField groupPathField2 = new ListGridField("GroupPath2",
				"GroupPath");
		groupPathField2.setHoverWrap(false);
		groupPathField2.setShowHover(true);
		
		listGrid.setFields(groupPathField,groupPathField1,groupPathField2);
		listGrid.setCanResizeFields(true);
		listGrid.setHoverWidth(300);
		listGrid.setHoverWrap(false);
		RecordList recList = new RecordList();

		Record record= new Record();
		record.setAttribute("GroupPath", "test");
		record.setAttribute("GroupPath1", "test >> test");
		record.setAttribute("GroupPath2", "test >> test >> test >> testtest >> test >> test >> test >> test test >> test >> test");

		recList.add(record);
		listGrid .setData(recList);
			 layout.addMember(listGrid);
		    layout.draw();
	}

}  