package com.dclear.smartgwt.testbed.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.BlurbItem;
import com.smartgwt.client.widgets.layout.VLayout;

public class SmartGwtTestbedEntryPoint implements EntryPoint {

	/* (non-Javadoc)
	 * @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
	 */
	@Override
	public void onModuleLoad() {
		VLayout container = new VLayout(5);
		container.setBorder("2p dashed blue");
		
		DynamicForm form = new DynamicForm();
		DateTextItem dateTextItem = new DateTextItem("dateChooserField", "Date chooser field");
		form.setFields(dateTextItem, new BlurbItem("selectedDate"));
		container.addChild(form);
		
		container.draw();
		dateTextItem.setIcons(dateTextItem.getIcon(null));
	}
}
