package mcb.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.ComboBoxItem;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class TestComboBox implements EntryPoint {
    /**
     * This is the entry point method.
     */
    public void onModuleLoad() {
        final DynamicForm form = new DynamicForm();  
        form.setWidth(250);  
  
        ComboBoxItem cbItem = new ComboBoxItem();  
        cbItem.setTitle("Select");  
        cbItem.setHint("Select...");
        cbItem.setShowHintInField(true);
        cbItem.setType("comboBox");  
        cbItem.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse");  
  
        form.setFields(cbItem);  
        form.draw();
    }
}
