package org.example.nestedGrid.client;

import java.util.LinkedHashMap;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.SelectItem;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class NestedGrid implements EntryPoint {
	
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		
		RootPanel.getBodyElement().removeChild(RootPanel.get("loadingWrapper").getElement());
		DynamicForm form = new DynamicForm ();
		SelectItem pippo = new SelectItem ();
		LinkedHashMap<String,String> values = new LinkedHashMap<String,String> ();
		values.put("value1", "value1");
		values.put("value2", "value2");
		pippo.setValueMap(values);
		//pippo.setRequired(true);
		form.setItems(pippo);
        RootPanel.get("gui").add(form);

	}
}
