package com.mycompany.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.layout.VLayout;

public class TestEntry implements EntryPoint {

	public void onModuleLoad() {

		VLayout layout = new VLayout();
		final TestForm testForm = new TestForm();
		testForm.fetchData();
		layout.addMember(testForm);

		IButton save = new IButton("save");
		save.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {

			@Override
			public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {
				testForm.saveData();
			}
		});
		layout.addMember(save);
		layout.draw();
	}

}
