package com.smartgwt.sample.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.layout.VLayout;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Testcase implements EntryPoint {

    /**
     * This is the entry point method.
     */
    public void onModuleLoad() {
    	VLayout vLayout = new VLayout();
    	
		vLayout.setWidth100();
		vLayout.setHeight100();
		Button button = new Button("ClickMe");
		button.addClickHandler(new ClickHandler() {
			@Override
			public void onClick(ClickEvent event) {
				new MyModalWindow().show();
			}
		});
		vLayout.addMember(button);
		vLayout.draw();
    }
    
}
