package com.ssdi.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.Canvas;
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 TestsmartGwtProject implements EntryPoint {

	Record[] responseRecords;
	VLayout layout;

	public void onModuleLoad() {

		// Canvas
		Canvas mainCanvas = new Canvas();
		mainCanvas.setHeight(400);
		mainCanvas.setMargin(25);
		mainCanvas.setAlign(Alignment.CENTER);

		// Display Button
		Button btnShowButton = new Button();
		btnShowButton.setTitle("SHOW");
		btnShowButton.setAlign(Alignment.CENTER);
		btnShowButton.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {
				// TODO Auto-generated method stub
				ChangesDisplayWindows SecuritySettingChangeConfirmation = new ChangesDisplayWindows();

				SecuritySettingChangeConfirmation.DisplayDetailes();

			}
		});

		// Display Canvas
		mainCanvas.addChild(btnShowButton);
		mainCanvas.show();

	}

}
