package ca.diotte.client;

/*Olivier*/
import ca.diotte.client.ItemSelectorWidget.ItemSelector;


import ca.diotte.shared.FieldVerifier;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class olivier implements EntryPoint {
  /**
   * The message displayed to the user when the server cannot be reached or
   * returns an error.
   */
  private static final String SERVER_ERROR = "An error occurred while "
      + "attempting to contact the server. Please check your network "
      + "connection and try again.";

	/*Olivier*/
	private static final String[] startContacts = {
			"Richard M. Stallman",
			"Linus B. Torvalds",
			"Dennis Ritchie",
			"Kenneth Thompson",
			"Brian W. Kernighan",
			"Rob Pike",
			"Alan Shugart",
			"John Von Newman",
		 	};

	private static final String[] types = {
			"CPU",
			"RAM",
			"OS",
			"Hard drive type",
			"PFC",
			};

  /**
   * Create a remote service proxy to talk to the server-side Greeting service.
   */
  private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class);

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
		ItemSelector contactsSel = new ItemSelector(startContacts);
		contactsSel.setBorderWidth(5);

		RootPanel.get().add(contactsSel);
  }
}
